mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 20:51:11 +00:00
e1b33bba7c
Mark internal statfs functions with attribute_hidden to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/sys/statfs.h (__fstatfs): Add attribute_hidden. (__statfs64): Likewise. (__fstatfs64): Likewise. * include/sys/statvfs.h (__statvfs64): Likewise. (__fstatvfs64): Likewise. * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise. (__statfs_filesize_max): Likewise. (__statfs_symlinks): Likewise. (__statfs_chown_restricted): Likewise.
18 lines
491 B
C
18 lines
491 B
C
#ifndef _SYS_STATFS_H
|
|
#include <io/sys/statfs.h>
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern int __statfs (const char *__file, struct statfs *__buf);
|
|
libc_hidden_proto (__statfs)
|
|
extern int __fstatfs (int __fildes, struct statfs *__buf)
|
|
attribute_hidden;
|
|
extern int __statfs64 (const char *__file, struct statfs64 *__buf)
|
|
attribute_hidden;
|
|
extern int __fstatfs64 (int __fildes, struct statfs64 *__buf)
|
|
attribute_hidden;
|
|
|
|
# endif /* !_ISOMAC */
|
|
#endif
|