summaryrefslogtreecommitdiff
path: root/lib/utimens.h
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-09-17 15:08:29 -0600
committerEric Blake <eblake@redhat.com>2010-09-17 15:08:44 -0600
commit89b0db35db10a8beccaf83909c7f62f127fb5821 (patch)
tree716c39ed6294c0c0765d130b8ab01fcfabf89bd8 /lib/utimens.h
parent025fae6d61b82020179feb5c72d3747f1ce351c4 (diff)
downloadgnulib-89b0db35db10a8beccaf83909c7f62f127fb5821.tar.gz
fdutimens, fdutimensat: update signature, again
In general, merging: f<act>(fd,args) and <act>at(dir,name,args) should produce: fd<act>at(fd,dir,name,args) * lib/utimens.h (gl_futimens): Delete, and move signature... (fdutimens): ...here. (fdutimensat): Rearrange signature. (lutimensat): Rename variable for clarity. * lib/fdutimensat.c (fdutimensat): Update signature. * lib/utimens.c (fdutimens): Likewise. (gl_futimens): Delete. (utimens, lutimens): Update callers. * lib/futimens.c (futimens): Likewise. * tests/test-fdutimensat.c: Likewise. * tests/test-utimens.c: Likewise. * tests/test-futimens.h: Update comment. * NEWS: Mention this. Suggested by Paul Eggert. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'lib/utimens.h')
-rw-r--r--lib/utimens.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/utimens.h b/lib/utimens.h
index f651beebad..8c47cf93f8 100644
--- a/lib/utimens.h
+++ b/lib/utimens.h
@@ -1,6 +1,5 @@
#include <time.h>
-int fdutimens (char const *, int, struct timespec const [2]);
-int gl_futimens (int, char const *, struct timespec const [2]);
+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]);
@@ -8,13 +7,13 @@ int lutimens (char const *, struct timespec const [2]);
# include <fcntl.h>
# include <sys/stat.h>
-int fdutimensat (int dir, char const *name, int fd, struct timespec const [2],
+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 fd, char const *file, struct timespec const times[2])
+lutimensat (int dir, char const *file, struct timespec const times[2])
{
- return utimensat (fd, file, times, AT_SYMLINK_NOFOLLOW);
+ return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
}
#endif