* 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.
This commit is contained in:
Daniel Jacobowitz 2006-05-30 15:12:30 +00:00
parent 31e69e34ab
commit 023a0de155
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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.
2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/bits/mman.h: Update error message

View File

@ -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>