X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Futimens.h;h=bb0326da5fc23b00cffba7081410f09f4df960f3;hb=8e974c4c1ec984772720c773220e365d97006974;hp=d42d792c21d758eeb2770bbf24eda09811067ef0;hpb=e7921f54c622e3b32e525f345bc34308821e4ae0;p=debian%2Fgzip diff --git a/lib/utimens.h b/lib/utimens.h index d42d792..bb0326d 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 (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