This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ARM kernel features update


I created a kernel-features.h for ARM that added some new things, but I
didn't migrate the existing ARM-specific bits from the linux
kernel-features.h to here.  And later the __arm__ checks were removed
from that file.  This is particularly disastrous for EABI; if
__ASSUME_MMAP2_SYSCALL is set, mmap() calls mmap2, but otherwise the
ARM mmap() only calls mmap.  No point, they figured, in "falling back"
from the older syscall to the newer one.  But EABI doesn't have mmap,
only mmap2.

Committed.

-- 
Daniel Jacobowitz
CodeSourcery

2006-05-30  Daniel Jacobowitz  <dan@codesourcery.com>

	* sysdeps/unix/sysv/linux/arm/kernel-features.h: Add conditionals
	for __ASSUME_TRUNCATE64_SYSCALL, __ASSUME_MMAP2_SYSCALL,
	__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64, and
	__ASSUME_VFORK_SYSCALL.

Index: glibc/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h
===================================================================
--- glibc.orig/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h	2006-05-26 18:45:50.000000000 -0400
+++ glibc/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h	2006-05-26 18:47:27.000000000 -0400
@@ -28,4 +28,22 @@
 #define __ASSUME_NEW_GETRLIMIT_SYSCALL	1
 #endif
 
+/* On ARM the truncate64/ftruncate64/mmap2/stat64/lstat64/fstat64
+   syscalls were introduced in 2.3.35.  */
+#if __LINUX_KERNEL_VERSION >= 131875
+# define __ASSUME_TRUNCATE64_SYSCALL	1
+# define __ASSUME_MMAP2_SYSCALL		1
+# define __ASSUME_STAT64_SYSCALL	1
+#endif
+
+/* Arm got fcntl64 in 2.4.4.  */
+#if __LINUX_KERNEL_VERSION >= 132100
+# define __ASSUME_FCNTL64		1
+#endif
+
+/* The vfork syscall on arm was definitely available in 2.4.  */
+#if __LINUX_KERNEL_VERSION >= 132097 && defined __i386__
+# define __ASSUME_VFORK_SYSCALL		1
+#endif
+
 #include_next <kernel-features.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]