Merge from emacs-24; up to 2012-05-01T00:16:02Z!rgm@gnu.org
[bpt/emacs.git] / lib / utimens.h
CommitLineData
c8fff863
PE
1#include <time.h>
2int fdutimens (int, char const *, struct timespec const [2]);
3int utimens (char const *, struct timespec const [2]);
4int lutimens (char const *, struct timespec const [2]);
5
6#if GNULIB_FDUTIMENSAT
7# include <fcntl.h>
8# include <sys/stat.h>
9
10int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
11 int atflag);
12
13/* Using this function makes application code slightly more readable. */
14static inline int
15lutimensat (int dir, char const *file, struct timespec const times[2])
16{
17 return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
18}
19#endif