about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/kernel-features.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-07-12 18:48:39 +0000
committerUlrich Drepper <drepper@redhat.com>2003-07-12 18:48:39 +0000
commitf4e0175f01498be2d3d260b4c36b693bed5267f6 (patch)
tree6f598d07e7c708568edf97913b0a6c477b1c341a /sysdeps/unix/sysv/linux/kernel-features.h
parent327e16378980b7ee3ea753c5f763d704658e27c3 (diff)
downloadglibc-f4e0175f01498be2d3d260b4c36b693bed5267f6.tar.gz
glibc-f4e0175f01498be2d3d260b4c36b693bed5267f6.tar.xz
glibc-f4e0175f01498be2d3d260b4c36b693bed5267f6.zip
Update.
	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_UTIMES for x86 and kernels > 2.5.75.

	* sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
	second parameter == NULL.
	* sysdeps/unix/sysv/linux/utimes.c: New file.

2003-07-12  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
	a typo.

2003-07-12  Ulrich Drepper  <drepper@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index cb1d04ad93..3dba1de24f 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -346,8 +346,10 @@
 # define __ASSUME_TGKILL	1
 #endif
 
-/* The utimes syscall has been available for some architectures forever.  */
-#if defined __alpha__ || defined __ia64__ || defined __hppa_ \
-    || defined __sparc__
+/* The utimes syscall has been available for some architectures
+   forever.  For x86 it was introduced after 2.5.75.  */
+#if defined __alpha__ || defined __ia64__ || defined __hppa__ \
+    || defined __sparc__ \
+    || (__LINUX_KERNEL_VERSION > 132427 && defined __i386__)
 # define __ASSUME_UTIMES	1
 #endif