diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-07-25 05:30:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-07-25 05:30:10 +0000 |
commit | 3ff2c948beaad303e376e1ad778d1cd8693a3099 (patch) | |
tree | d1e1056f73464e90f4462d7536b50ea07dc0b43e /sysdeps/unix/sysv | |
parent | bdcebfc4c7cc4f08efaf84af19465893f69fd5ed (diff) | |
download | glibc-3ff2c948beaad303e376e1ad778d1cd8693a3099.tar.gz glibc-3ff2c948beaad303e376e1ad778d1cd8693a3099.tar.xz glibc-3ff2c948beaad303e376e1ad778d1cd8693a3099.zip |
* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if appropriate. * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and non-blocking mode by using socket, paccept, and inotify_init1.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/kernel-features.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index 5b41429f16..d5951317e4 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -497,3 +497,12 @@ #if __LINUX_KERNEL_VERSION >= 0x02061b # define __ASSUME_AT_EXECFN 1 #endif + +/* Support for various CLOEXEC and NONBLOCK flags was added for x86 and + x86-64 in 2.6.27. */ +#if __LINUX_KERNEL_VERSION >= 0x02061b \ + && (defined __i386__ || defined __x86_64__) +# define __ASSUME_SOCK_CLOEXEC 1 +# define __ASSUME_IN_NONBLOCK 1 +# define __ASSUME_PACCEPT 1 +#endif |