mirror of git://sourceware.org/git/glibc.git
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> |
||
---|---|---|
.. | ||
n32 | ||
n64 | ||
Makefile | ||
configure | ||
configure.ac | ||
fxstat64.c | ||
fxstatat64.c | ||
getdents64.c | ||
ipc_priv.h | ||
ldconfig.h | ||
ldd-rewrite.sed | ||
libBrokenLocale.abilist | ||
libanl.abilist | ||
libcrypt.abilist | ||
libdl.abilist | ||
libm.abilist | ||
libnsl.abilist | ||
libpthread.abilist | ||
librt.abilist | ||
libthread_db.abilist | ||
libutil.abilist | ||
lxstat64.c | ||
msgctl.c | ||
semctl.c | ||
shmctl.c | ||
statx_cp.c | ||
syscall.S | ||
xstat64.c |