mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 06:50:07 +00:00
4587a421c5
Mark internal dirent functions with attribute_hidden to allow direct access within libc.so and libc.a without using GOT nor PLT. __readdir64 is hidden with libc_hidden_proto and libc_hidden_def since the exported readdir64 is an alias of __readdir64. [BZ #18822] * include/dirent.h (__opendir): Always add attribute_hidden. (__fdopendir): Likewise. (__closedir): Likewise. (__readdir): Likewise. (__readdir64): Add libc_hidden_proto. * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def. * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise. * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64): New alias.
9 lines
201 B
C
9 lines
201 B
C
#define __READDIR __readdir64
|
|
#define __GETDENTS __getdents64
|
|
#define DIRENT_TYPE struct dirent64
|
|
|
|
#include <sysdeps/posix/readdir.c>
|
|
|
|
libc_hidden_def (__readdir64)
|
|
weak_alias (__readdir64, readdir64)
|