Hash :
06b8c126
Author :
Date :
2009-10-20T06:09:29
fdutimensat: new module Needed for coreutils copy.c to be rewritten to use fts. * modules/fdutimensat: New file. * lib/fdutimensat.c (fdutimensat): Likewise. * lib/utimens.h (fdutimensat, lutimensat): Declare new functions. * MODULES.html.sh (File system functions): Mention module. * modules/fdutimensat-tests: New test. * tests/test-fdutimensat.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
#include <time.h>
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 <fcntl.h>
# include <sys/stat.h>
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