aboutsummaryrefslogtreecommitdiff
path: root/include/sys/statvfs.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:18:09 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:18:25 -0700
commite1b33bba7c30b36be33fa8bb1e6cffbb65b97730 (patch)
tree101e3d18d9f9814916d1b27237d02f8e7867236c /include/sys/statvfs.h
parentb0f5678494d727b6868435dfc32b066ade6d3e49 (diff)
downloadglibc-e1b33bba7c30b36be33fa8bb1e6cffbb65b97730.zip
glibc-e1b33bba7c30b36be33fa8bb1e6cffbb65b97730.tar.gz
glibc-e1b33bba7c30b36be33fa8bb1e6cffbb65b97730.tar.bz2
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.
Diffstat (limited to 'include/sys/statvfs.h')
-rw-r--r--include/sys/statvfs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h
index fa30453..4cd1977 100644
--- a/include/sys/statvfs.h
+++ b/include/sys/statvfs.h
@@ -3,8 +3,10 @@
#ifndef _ISOMAC
/* Now define the internal interfaces. */
-extern int __statvfs64 (const char *__file, struct statvfs64 *__buf);
-extern int __fstatvfs64 (int __fildes, struct statvfs64 *__buf);
+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)