X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Futimens.h;fp=lib%2Futimens.h;h=bb0326da5fc23b00cffba7081410f09f4df960f3;hb=c7e61475680fa226bd9b8bdd469cd66914e630f5;hp=0097aaaf7524d00906674963c7c1a7905e457a08;hpb=800deb09b422a73c1212233a93839a223ff59678;p=debian%2Fgzip diff --git a/lib/utimens.h b/lib/utimens.h index 0097aaa..bb0326d 100644 --- a/lib/utimens.h +++ b/lib/utimens.h @@ -1,3 +1,19 @@ #include -int futimens (int, char const *, struct timespec const [2]); +int fdutimens (char const *, int, struct timespec const [2]); +int gl_futimens (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 dir, char const *name, int fd, struct timespec const [2]); + +/* Using this function makes application code slightly more readable. */ +static inline int +lutimensat (int fd, char const *file, struct timespec const times[2]) +{ + return utimensat (fd, file, times, AT_SYMLINK_NOFOLLOW); +} +#endif