diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-07-31 20:12:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-07-31 20:12:34 +0000 |
commit | 46bc5d439335972d40c9b6af7ed0882c8eebad52 (patch) | |
tree | 6abd7942a71f952305a385806cbc546d60f6c4b1 /sysdeps/unix/sysv/linux | |
parent | 3c22738644a2bcc6a1a25812f057f10b3b1c1d4c (diff) | |
download | glibc-46bc5d439335972d40c9b6af7ed0882c8eebad52.tar.gz |
* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_O_CLOEXEC.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/kernel-features.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index 271b3fcdd5..e0d80a5b06 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -488,6 +488,14 @@ # define __ASSUME_FALLOCATE 1 #endif +/* Support for various CLOEXEC and NONBLOCK flags was added for x86, + x86-64, PPC, IA-64, SPARC< and S390 in 2.6.23. */ +#if __LINUX_KERNEL_VERSION >= 0x020617 \ + && (defined __i386__ || defined __x86_64__ || defined __powerpc__ \ + || defined __ia64__ || defined __sparc__ || defined __s390__) +# define __ASSUME_O_CLOEXEC 1 +#endif + /* Support for ADJ_OFFSET_SS_READ was added in 2.6.24. */ #if __LINUX_KERNEL_VERSION >= 0x020618 # define __ASSUME_ADJ_OFFSET_SS_READ 1 |