glibc/sysdeps
Adhemerval Zanella 942de61a89 Consolidate Linux readdir{64}{_r} implementation
This patch consolidates Linux readdir{64}{_r} implementation on just
the default sysdeps/unix/sysv/linux/readdir{64}{_r}.c ones.  The
default implementation handle the Linux requirements:

  * readdir{_r} is only built for _DIRENT_MATCHES_DIRENT64 being 0.

  * readdir64{_r} is always built and aliased to readdir{_r} for
    ABI that define _DIRENT_MATCHES_DIRENT64.

  * A compat symbol is added for readdir64{_r} for ABI that used to
    export the old non-LFS version.

Checked on aarch64-linux-gnu, x86_64-linux-gnu, i686-linux-gnu,
sparcv9-linux-gnu, sparc64-linux-gnu, powerpc-linux-gnu, and
powerpc64le-linux-gnu.

	* sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
	__READDIR_ALIAS): Undefine after usage.
	* sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
	__READDIR_R_ALIAS): Likewise.
	* sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
	* sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
	* sysdeps/unix/sysv/linux/readdir.c: New file.
	* sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
	* sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
	* sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2018-04-06 17:49:02 -03:00
..
aarch64 elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
alpha elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
arm Update ARM libm-test-ulps. 2018-04-05 17:10:03 -03:00
generic elf: Correct absolute (SHN_ABS) symbol run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
gnu Fix errno values 2018-03-20 03:10:57 +01:00
hppa elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
htl hurd: Avoid local PLTs in libpthread. 2018-04-02 18:08:37 +00:00
hurd hurd: Avoid more libc.so PLTs 2018-04-02 23:40:26 +00:00
i386 Update i386 libm-test-ulps. 2018-04-06 17:24:15 -03:00
ia64 elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
ieee754 [PATCH 7/7] sin/cos slow paths: refactor sincos implementation 2018-04-03 16:52:18 +01:00
init_array sysdeps/init_array: Add PREINIT_FUNCTION to crti.S 2018-01-29 10:22:26 -08:00
m68k elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
mach hurd: Avoid PLT for dirfd 2018-04-05 01:52:29 +02:00
microblaze elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
mips elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
nios2 elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
nptl Filter out NPTL internal signals (BZ #22391) 2018-04-03 13:30:49 -03:00
posix Consolidate Linux readdir{64}{_r} implementation 2018-04-06 17:49:02 -03:00
powerpc powerpc: Update sin, cos and sincos ULPs 2018-04-04 19:17:13 -03:00
pthread hurd: Avoid some PLTs in libc and librt 2018-04-02 19:07:52 +00:00
riscv elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
s390 S390: Regenerate ULPs. 2018-04-05 16:24:06 +02:00
sh elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
sparc Update SPARC libm-test-ulps. 2018-04-05 17:10:03 -03:00
tile elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
unix Consolidate Linux readdir{64}{_r} implementation 2018-04-06 17:49:02 -03:00
wordsize-32 Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
wordsize-64 Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
x86 Remove sysdeps/x86/fpu/bits/mathinline.h __finite inline. 2018-03-16 18:36:53 +00:00
x86_64 elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00