X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Futimens.h;h=8c47cf93f887dc05a2e84eb3349d61d91da22177;hb=ff2f086830480dfa85d1e98c46f8566feb657deb;hp=a36f27da9e670a32722c6606c5ec2287bdc2366c;hpb=10cf9b5e371bc4927b2b28354c19b62943dfe95e;p=gnulib.git diff --git a/lib/utimens.h b/lib/utimens.h index a36f27da9..8c47cf93f 100644 --- a/lib/utimens.h +++ b/lib/utimens.h @@ -1,2 +1,19 @@ -#include "timespec.h" +#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