diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-09-21 19:32:34 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-09-21 19:32:34 +0200 |
commit | e92718552e1d17b8eccbffb88bf5bbb2235c4596 (patch) | |
tree | 8747a4fd69c1f86287b17e76d299cb76cfe6da3a /sysdeps/unix/sysv/linux/olddirent.h | |
parent | 4c09aa31b1aeea1329674109eb02d4ba506b0ad2 (diff) | |
download | glibc-e92718552e1d17b8eccbffb88bf5bbb2235c4596.zip glibc-e92718552e1d17b8eccbffb88bf5bbb2235c4596.tar.gz glibc-e92718552e1d17b8eccbffb88bf5bbb2235c4596.tar.bz2 |
Linux: Use readdir64_r for compat __old_readdir64_r (bug 32128)
It is not necessary to do the conversion at the getdents64
layer for readdir64_r. Doing it piecewise for readdir64
is slightly simpler and allows deleting __old_getdents64.
This fixes bug 32128 because readdir64_r handles the length
check correctly.
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/olddirent.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/olddirent.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/olddirent.h b/sysdeps/unix/sysv/linux/olddirent.h index 239f790..065ca41 100644 --- a/sysdeps/unix/sysv/linux/olddirent.h +++ b/sysdeps/unix/sysv/linux/olddirent.h @@ -34,8 +34,6 @@ extern struct __old_dirent64 *__old_readdir64 (DIR *__dirp); libc_hidden_proto (__old_readdir64); extern int __old_readdir64_r (DIR *__dirp, struct __old_dirent64 *__entry, struct __old_dirent64 **__result); -extern __ssize_t __old_getdents64 (int __fd, char *__buf, size_t __nbytes) - attribute_hidden; int __old_scandir64 (const char * __dir, struct __old_dirent64 *** __namelist, int (*__selector) (const struct __old_dirent64 *), |