X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Futimens.h;h=8c47cf93f887dc05a2e84eb3349d61d91da22177;hb=0b3b74d5643737f6e78f93a40f34462baee64131;hp=d42d792c21d758eeb2770bbf24eda09811067ef0;hpb=d91f08f3ad9a9a3dce509a9977aabe6f47a8c4df;p=gnulib.git diff --git a/lib/utimens.h b/lib/utimens.h index d42d792c2..8c47cf93f 100644 --- a/lib/utimens.h +++ b/lib/utimens.h @@ -1,3 +1,19 @@ -#include "timespec.h" -int futimens (int, char const *, struct timespec const [2]); +#include +int fdutimens (int, char const *, struct timespec const [2]); int utimens (char const *, struct timespec const [2]); +int lutimens (char const *, struct timespec const [2]); + +#if GNULIB_FDUTIMENSAT +# include +# include + +int fdutimensat (int fd, int dir, char const *name, struct timespec const [2], + int atflag); + +/* Using this function makes application code slightly more readable. */ +static inline int +lutimensat (int dir, char const *file, struct timespec const times[2]) +{ + return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW); +} +#endif