[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: touch command
From: |
Eric Blake |
Subject: |
Re: touch command |
Date: |
Mon, 27 Aug 2007 19:38:17 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bob Proulx on 8/27/2007 6:55 PM:
> There is no lutimes(2) call and therefore way way to set the times on
> a symlink. This is why touch does not have a -h option. Since
> lchmod(2) is available the chmod command has a -h option and uses it
> to change the owner of the symlink.
But note that the next revision of POSIX will be adding futimensat, which
WILL support setting the (cosmetic) timestamp of symlinks. While draft 3
of the next POSIX revision does not mandate the addition of anything like
touch -h, it also does not forbid it, so there is a good chance that we
will be adding something along these lines once more systems implement
futimensat.
To learn more about the next revision of POSIX, including reading draft 3,
you must be a member of the Austin group (membership is free,
http://www.opengroup.org/austin/lists.html)
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG03yJ84KuGfSFAYARAsPQAJ9XG+dSaSS2wZs5uvRjBlshkrsEtACeMK4r
Ig2oBME4c2KsrIEJeSd3cMc=
=L237
-----END PGP SIGNATURE-----