glibc/sysdeps
Adhemerval Zanella 456b3c08b6 io: Refactor close_range and closefrom
Now that Hurd implementis both close_range and closefrom (f2c996597d),
we can make close_range() a base ABI, and make the default closefrom()
implementation on top of close_range().

The generic closefrom() implementation based on __getdtablesize() is
moved to generic close_range().  On Linux it will be overriden by
the auto-generation syscall while on Hurd it will be a system specific
implementation.

The closefrom() now calls close_range() and __closefrom_fallback().
Since on Hurd close_range() does not fail, __closefrom_fallback() is an
empty static inline function set by__ASSUME_CLOSE_RANGE.

The __ASSUME_CLOSE_RANGE also allows optimize Linux
__closefrom_fallback() implementation when --enable-kernel=5.9 or
higher is used.

Finally the Linux specific tst-close_range.c is moved to io and
enabled as default.  The Linuxism and CLOSE_RANGE_UNSHARE are
guarded so it can be built for Hurd (I have not actually test it).

Checked on x86_64-linux-gnu, i686-linux-gnu, and with a i686-gnu
build.
2021-11-24 09:09:37 -03:00
..
aarch64
alpha
arc
arm
csky
generic elf: Introduce GLRO (dl_libc_freeres), called from __libc_freeres 2021-11-17 12:20:29 +01:00
gnu
hppa
htl
hurd
i386
ia64
ieee754
m68k
mach io: Refactor close_range and closefrom 2021-11-24 09:09:37 -03:00
microblaze
mips
nios2
nptl nptl: Extract <bits/atomic_wide_counter.h> from pthread_cond_common.c 2021-11-17 12:20:13 +01:00
posix
powerpc powerpc: Define USE_PPC64_NOTOC iff compiler supports it 2021-11-22 14:49:11 -03:00
pthread nptl: Do not set signal mask on second setjmp return [BZ #28607] 2021-11-24 08:59:54 +01:00
riscv
s390 s390: Use long branches across object boundaries (jgh instead of jh) 2021-11-10 15:21:37 +01:00
sh
sparc
unix io: Refactor close_range and closefrom 2021-11-24 09:09:37 -03:00
wordsize-32
wordsize-64
x86 x86: Double size of ERMS rep_movsb_threshold in dl-cacheinfo.h 2021-11-06 16:18:08 -05:00
x86_64 x86-64: Create microbenchmark infrastructure for libmvec 2021-11-16 11:37:39 -08:00