mirror of git://sourceware.org/git/glibc.git
This patch consolidates Linux getdirentries{64} implementation on just
the default sysdeps/unix/sysv/linux/getdirentries{64} ones. The default
implementation handles the Linux requirements:
* getdirentries is only built for _DIRENT_MATCHES_DIRENT64 being 0.
* getdirentries64 is always built and aliased to getdents for ABIs
that define _DIRENT_MATCHES_DIRENT64 to 1.
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/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
_DIRENT_MATCHES_DIRENT64 is not defined.
* sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
is defined.
* sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
* sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
|
||
|---|---|---|
| .. | ||
| Versions | ||
| aio_read.c | ||
| aio_read64.c | ||
| aio_write.c | ||
| aio_write64.c | ||
| dl-fxstatat64.c | ||
| fstatfs64.c | ||
| fstatvfs.c | ||
| fstatvfs64.c | ||
| fxstat.c | ||
| fxstat64.c | ||
| fxstatat.c | ||
| fxstatat64.c | ||
| internal_statvfs64.c | ||
| lio_listio.c | ||
| lio_listio64.c | ||
| lxstat.c | ||
| lxstat64.c | ||
| sendfile64.c | ||
| statfs64.c | ||
| statvfs.c | ||
| statvfs64.c | ||
| syscalls.list | ||
| xstat.c | ||
| xstat64.c | ||