about summary refs log tree commit diff
path: root/include/time.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-17 19:47:57 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-09-17 19:58:30 +0000
commit7ae60af75b78f408420512c58fd5a08ca7a88bad (patch)
tree51ef7f542c448a0717e69029f1b9dd164933c7bd /include/time.h
parent6841aed6c4abde1aa7015348496c86cadc227a1f (diff)
downloadglibc-7ae60af75b78f408420512c58fd5a08ca7a88bad.tar.gz
glibc-7ae60af75b78f408420512c58fd5a08ca7a88bad.tar.xz
glibc-7ae60af75b78f408420512c58fd5a08ca7a88bad.zip
hurd: Factorize at/non-at functions
Non-at functions can be implemented by just calling the corresponding at
function with AT_FDCWD and zero at_flags.

In the linkat case, the at behavior is different (O_NOLINK), so this introduces
__linkat_common to pass O_NOLINK as appropriate.

lstat functions can also be implemented with fstatat by adding
__fstatat64_common which takes a flags parameter in addition to the at_flags
parameter,

In the end this factorizes chmod, chown, link, lstat64, mkdir, readlink,
rename, stat64, symlink, unlink, utimes.

This also makes __lstat, __lxstat64, __stat and __xstat64 directly use
__fstatat64_common instead of __lstat64 or __stat64.
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index a64eff54f5..20abea69d4 100644
--- a/include/time.h
+++ b/include/time.h
@@ -196,6 +196,7 @@ extern int __utimensat64_helper (int fd, const char *file,
                                  const struct __timespec64 tsp[2], int flags);
 libc_hidden_proto (__utimensat64_helper);
 
+extern int __futimesat (int __fd, const char *__file, const struct timeval __tvp[2]);
 #if __TIMESIZE == 64
 # define __futimes64 __futimes
 # define __futimesat64 __futimesat