glibc/sysdeps
Joseph Myers 74385da564 Remove __ASSUME_O_CLOEXEC / O_CLOEXEC conditionals in sysdeps/unix/sysv/linux/.
This patch removes conditionals on __ASSUME_O_CLOEXEC, and on
O_CLOEXEC being defined, in sysdeps/unix/sysv/linux/, now that
O_CLOEXEC support can be unconditionally assumed.

The patch is conservative in what it changes and further followup
cleanups may be possible.  It may be possible to remove dl-opendir.c,
but the patch does not do so, just removing a redundant undefine and
redefine of __ASSUME_O_CLOEXEC.  Also, __ASSUME_O_CLOEXEC is defined
unconditionally for Hurd as well as Linux.  Thus, if we decide that
O_CLOEXEC support is a required feature of any glibc port, we could
remove __ASSUME_O_CLOEXEC and all conditionals on it throughout glibc,
rather than just cleaning up sysdeps/unix/sysv/linux/.

Tested x86_64 that the disassembly of installed shared libraries is
unchanged by this patch.

	* sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
	not undefine and redefine.
	* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
	[O_CLOEXEC]: Make code unconditional.
	(__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
	* sysdeps/unix/sysv/linux/shm_open.c: Do not include
	<kernel-features.h>.
	[O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
	conditional variable definition.
	(shm_open) [O_CLOEXEC]: Make code unconditional.
	(shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
	code.
2014-06-25 20:29:45 +00:00
..
aarch64 [AArch64] Add optimized strchr. 2014-06-19 11:03:59 +01:00
alpha Alpha: Define TLS_DEFINE_INIT_TP 2014-06-11 12:23:35 -07:00
arm Optimize fesetenv 2014-06-24 15:05:23 +00:00
generic Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
gnu
hppa
i386 Move USE_REGPARMS define to sysdeps/i386/configure.ac. 2014-06-25 20:26:14 +00:00
ia64 [BZ #6803] Set errno for scalbln, scalbn 2014-06-20 07:48:20 +05:30
ieee754 Fix exp10 spurious underflows (bug 16560). 2014-06-25 11:33:22 +00:00
init_array
m68k m68k: Add compat symbols for scalbln* 2014-06-25 09:38:09 +02:00
mach
microblaze
mips MIPS: Move NPTL public headers to sysdeps/mips/nptl/. 2014-06-23 09:25:41 -07:00
nptl
posix sysdeps/posix/tempname.c: Merge from gnulib 2014-06-25 10:52:51 +01:00
powerpc Move base_machine and machine settings from configure.ac to sysdeps preconfigure fragments. 2014-06-25 17:52:56 +00:00
pthread
s390 Move base_machine and machine settings from configure.ac to sysdeps preconfigure fragments. 2014-06-25 17:52:56 +00:00
sh Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
sparc Move base_machine and machine settings from configure.ac to sysdeps preconfigure fragments. 2014-06-25 17:52:56 +00:00
tile
unix Remove __ASSUME_O_CLOEXEC / O_CLOEXEC conditionals in sysdeps/unix/sysv/linux/. 2014-06-25 20:29:45 +00:00
wordsize-32
wordsize-64
x86 x86: Consolidate unnecessary nptl/ subdirectories. 2014-06-24 19:17:43 -07:00
x86_64 Fix exp10 spurious underflows (bug 16560). 2014-06-25 11:33:22 +00:00