summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-25 13:56:17 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-25 13:56:17 +0000
commitc9209d6f901c82cf0cd10d4ee17402cb7f9234ce (patch)
tree9551db053f2115deb3046183da4484265bcd2769 /libc
parent0b5983eaf4562a3e4b4a4136004a8349828eb6d9 (diff)
- hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/statfs/fstatfs64.c1
-rw-r--r--libc/misc/statfs/fstatvfs.c1
-rw-r--r--libc/misc/statfs/statfs64.c1
-rw-r--r--libc/misc/statfs/statvfs.c1
-rw-r--r--libc/stdlib/getpt.c1
-rw-r--r--libc/stdlib/grantpt.c1
-rw-r--r--libc/sysdeps/linux/common/fstatfs.c4
-rw-r--r--libc/sysdeps/linux/common/statfs.c5
-rw-r--r--libc/unistd/fpathconf.c1
-rw-r--r--libc/unistd/pathconf.c1
10 files changed, 2 insertions, 15 deletions
diff --git a/libc/misc/statfs/fstatfs64.c b/libc/misc/statfs/fstatfs64.c
index dc6027373..6bcc86540 100644
--- a/libc/misc/statfs/fstatfs64.c
+++ b/libc/misc/statfs/fstatfs64.c
@@ -27,7 +27,6 @@
/* Experimentally off - libc_hidden_proto(memcpy) */
extern __typeof(fstatfs) __libc_fstatfs;
-libc_hidden_proto(__libc_fstatfs)
/* Return information about the filesystem on which FD resides. */
/* libc_hidden_proto(fstatfs64) */
diff --git a/libc/misc/statfs/fstatvfs.c b/libc/misc/statfs/fstatvfs.c
index 547a9c36a..3f3d76a8b 100644
--- a/libc/misc/statfs/fstatvfs.c
+++ b/libc/misc/statfs/fstatvfs.c
@@ -48,7 +48,6 @@ extern int __REDIRECT_NTH (fstatfs, (int __fildes, struct statfs *__buf),
#endif
extern __typeof(fstatfs) __libc_fstatfs;
-libc_hidden_proto(__libc_fstatfs)
/* libc_hidden_proto(fstat) */
/* libc_hidden_proto(stat) */
/* libc_hidden_proto(fstatvfs) */
diff --git a/libc/misc/statfs/statfs64.c b/libc/misc/statfs/statfs64.c
index c73c6ae50..8bb1ad9ed 100644
--- a/libc/misc/statfs/statfs64.c
+++ b/libc/misc/statfs/statfs64.c
@@ -25,7 +25,6 @@
/* Experimentally off - libc_hidden_proto(memcpy) */
extern __typeof(statfs) __libc_statfs;
-libc_hidden_proto(__libc_statfs)
/* Return information about the filesystem on which FILE resides. */
/* libc_hidden_proto(statfs64) */
diff --git a/libc/misc/statfs/statvfs.c b/libc/misc/statfs/statvfs.c
index 9bfbe6ea9..42d2d0d17 100644
--- a/libc/misc/statfs/statvfs.c
+++ b/libc/misc/statfs/statvfs.c
@@ -35,7 +35,6 @@
/* libc_hidden_proto(endmntent) */
extern __typeof(statfs) __libc_statfs;
-libc_hidden_proto(__libc_statfs)
/* libc_hidden_proto(stat) */
/* libc_hidden_proto(statvfs) */
diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c
index 54555cf07..f39e79664 100644
--- a/libc/stdlib/getpt.c
+++ b/libc/stdlib/getpt.c
@@ -26,7 +26,6 @@
#include <sys/statfs.h>
extern __typeof(statfs) __libc_statfs;
-libc_hidden_proto(__libc_statfs)
/* libc_hidden_proto(open) */
/* libc_hidden_proto(close) */
diff --git a/libc/stdlib/grantpt.c b/libc/stdlib/grantpt.c
index 8c858506b..42a64b37c 100644
--- a/libc/stdlib/grantpt.c
+++ b/libc/stdlib/grantpt.c
@@ -39,7 +39,6 @@ int __unix_grantpt (int fd);
pseudo terminal in a safe way. */
static int pts_name (int fd, char **pts, size_t buf_len);
extern __typeof(statfs) __libc_statfs;
-libc_hidden_proto(__libc_statfs)
#endif
/* Change the ownership and access permission of the slave pseudo
diff --git a/libc/sysdeps/linux/common/fstatfs.c b/libc/sysdeps/linux/common/fstatfs.c
index 53b53cd61..fa0024ad8 100644
--- a/libc/sysdeps/linux/common/fstatfs.c
+++ b/libc/sysdeps/linux/common/fstatfs.c
@@ -22,12 +22,10 @@ extern int __REDIRECT_NTH (fstatfs, (int __fildes, struct statfs *__buf),
# endif
#endif
-extern __typeof(fstatfs) __libc_fstatfs;
-libc_hidden_proto(__libc_fstatfs)
+extern __typeof(fstatfs) __libc_fstatfs attribute_hidden;
#define __NR___libc_fstatfs __NR_fstatfs
_syscall2(int, __libc_fstatfs, int, fd, struct statfs *, buf)
#if defined __UCLIBC_LINUX_SPECIFIC__
-libc_hidden_def(__libc_fstatfs)
weak_alias(__libc_fstatfs,fstatfs)
#endif
diff --git a/libc/sysdeps/linux/common/statfs.c b/libc/sysdeps/linux/common/statfs.c
index e892fb376..2f8548d0d 100644
--- a/libc/sysdeps/linux/common/statfs.c
+++ b/libc/sysdeps/linux/common/statfs.c
@@ -12,13 +12,10 @@
#include <sys/param.h>
#include <sys/vfs.h>
-extern __typeof(statfs) __libc_statfs;
-libc_hidden_proto(__libc_statfs)
-
+extern __typeof(statfs) __libc_statfs attribute_hidden;
#define __NR___libc_statfs __NR_statfs
_syscall2(int, __libc_statfs, const char *, path, struct statfs *, buf)
#if defined __UCLIBC_LINUX_SPECIFIC__
-libc_hidden_def(__libc_statfs)
weak_alias(__libc_statfs,statfs)
#endif
diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c
index 67345b8e0..439525a2a 100644
--- a/libc/unistd/fpathconf.c
+++ b/libc/unistd/fpathconf.c
@@ -43,7 +43,6 @@ extern int fstatfs (int __fildes, struct statfs *__buf)
#endif
extern __typeof(fstatfs) __libc_fstatfs;
-libc_hidden_proto(__libc_fstatfs)
/* The Linux kernel headers mention this as a kind of generic value. */
#define LINUX_LINK_MAX 127
diff --git a/libc/unistd/pathconf.c b/libc/unistd/pathconf.c
index a5e6fdec5..9895e028a 100644
--- a/libc/unistd/pathconf.c
+++ b/libc/unistd/pathconf.c
@@ -32,7 +32,6 @@
//#include <sys/statvfs.h>
extern __typeof(statfs) __libc_statfs;
-libc_hidden_proto(__libc_statfs)
/* libc_hidden_proto(stat) */