glibc/sysdeps/unix/sysv/linux/mips/mips64
Adhemerval Zanella edcda4c08a mips: Do not malloc on getdents64 fallback
This patch changes how the fallback getdents64 implementation calls
non-LFS getdents by replacing the scratch_buffer with static buffer
plus a loop on getdents calls.  This avoids the potential malloc
call on scratch_buffer_set_array_size for large input buffer size
at the cost of more getdents syscalls.

It also adds a small optimization for older kernels, where the first
ENOSYS failure for getdents64 disable subsequent calls.

Check the dirent tests on a mips64-linux-gnu with getdents64 code
disabled.

	* sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
	Add small optimization for older kernel to avoid issuing
	__NR_getdents64 on each call and replace scratch_buffer usage with
	a static allocated buffer.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2019-10-09 17:34:38 -03:00
..
n32 mips: Consolidate INTERNAL_VSYSCALL_CALL 2019-09-17 17:09:26 -03:00
n64 mips: Consolidate INTERNAL_VSYSCALL_CALL 2019-09-17 17:09:26 -03:00
Makefile nptl: Fix tst-cancel4 sendto tests 2018-03-05 18:09:08 -03:00
configure
configure.ac
fxstat64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fxstatat64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
getdents64.c mips: Do not malloc on getdents64 fallback 2019-10-09 17:34:38 -03:00
ipc_priv.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ldconfig.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ldd-rewrite.sed
libBrokenLocale.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libanl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libcrypt.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libdl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libm.abilist Make totalorder and totalordermag functions take pointer arguments. 2019-08-15 15:18:34 +00:00
libnsl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libpthread.abilist nptl: Move pthread_attr_setschedparam implementation into libc 2019-10-07 20:00:38 +02:00
librt.abilist Finish move of clock_* functions to libc. [BZ #24959] 2019-09-04 14:39:38 +02:00
libthread_db.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libutil.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
lxstat64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
msgctl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
semctl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shmctl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
statx_cp.c Add statx conditionals for wordsize-32 *xstat.c 2018-12-17 09:20:02 +08:00
syscall.S Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xstat64.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00