This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9685] __have_{sock_cloexec,pipe2} checks not valid with linux headers older than 2.6.27
- From: "vapier at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Dec 2008 09:06:31 -0000
- Subject: [Bug libc/9685] __have_{sock_cloexec,pipe2} checks not valid with linux headers older than 2.6.27
- References: <20081227035150.9685.vapier@gentoo.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From vapier at gentoo dot org 2008-12-29 09:06 -------
sysdeps/unix/sysv/linux/kernel-features.h omits __sh__ from the list as it does
have pipe2 in linux-2.6.27, but that's a different issue
the point of the way glibc is laid out is for arches to control features like
this. by binding sock_cloexec and pipe2 together without any sort of recourse,
you're basically saying that all other arches will be broken and there's nothing
they can do about it (regardless of whether they're in the "main" set of ports).
if you want to add another define like __ASSUME_SOCK_CLOEXEC_AND_PIPE2 and key
the __have_pipe2->__have_sock_cloexec define off of that vs dedicated storage,
then that would work as the other arches would be able to disable it.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9685
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.