This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

utimensat and AT_EMPTY_PATH


Given a file descriptor that refers to a symbolic link, is there a way
to call utimensat (or some other function) to update its timestamp?

I.e. what I would like to do is:

  utimensat(linkfd, "", times, AT_EMPTY_PATH);

Unlike futimens, utimensat *can* update the timestamp of a symlink
(verified with "strace touch -h ..."), but it doesn't seem to accept
AT_EMPTY_PATH.

Is there any non-racy way to do this?

--
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]