glibc/include/sys/statvfs.h
H.J. Lu e1b33bba7c Mark internal statfs functions with attribute_hidden [BZ #18822]
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.
2017-10-01 15:18:25 -07:00

15 lines
362 B
C

#ifndef _SYS_STATVFS_H
#include <io/sys/statvfs.h>
#ifndef _ISOMAC
/* Now define the internal interfaces. */
extern int __statvfs64 (const char *__file, struct statvfs64 *__buf)
attribute_hidden;
extern int __fstatvfs64 (int __fildes, struct statvfs64 *__buf)
attribute_hidden;
libc_hidden_proto (statvfs)
libc_hidden_proto (fstatvfs)
#endif
#endif