diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-05-10 21:44:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-05-10 21:44:41 +0000 |
commit | c27d2078135ca3df129850f87598660252d6906a (patch) | |
tree | edddcd9deaea803af9290a6bb8b78fd290a5708b /sysdeps/unix/sysv/linux/kernel-features.h | |
parent | 00afb11fc0a9282d7e2cbc51cd1c65bf1b79a5ae (diff) | |
download | glibc-c27d2078135ca3df129850f87598660252d6906a.tar.gz glibc-c27d2078135ca3df129850f87598660252d6906a.tar.xz glibc-c27d2078135ca3df129850f87598660252d6906a.zip |
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
UTIME_OMIT. * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT. * io/sys/stat.h: Declare utimensat, futimens. * io/utimensat.c: New file. * io/futimens.c: New file. * sysdeps/unix/sysv/linux/utimensat.c: New file. * sysdeps/unix/sysv/linux/futimens.c: New file. * io/Makefile (routines): Add utimensat, futimens. * io/Versions: Add utimensat, futimens to GLIBC_2.6. * sysdeps/unix/sysv/linux/lutimes.c: New file. * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if available. * include/sys/cdefs.h: Redefine __nonnull so that test for incorrect parameters in the libc code itself are not omitted.
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/kernel-features.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index e54f675dbe..ed32001544 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -458,3 +458,8 @@ #if __LINUX_KERNEL_VERSION >= 0x020612 # define __ASSUME_FUTEX_LOCK_PI 1 #endif + +/* Support for utimensat syscall was added in 2.6.22. */ +#if __LINUX_KERNEL_VERSION >= 0x020616 +# define __ASSUME_UTIMENSAT 1 +#endif |