Преглед на файлове

- hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.

Bernhard Reutner-Fischer преди 16 години
родител
ревизия
c9209d6f90

+ 0 - 1
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) */

+ 0 - 1
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) */

+ 0 - 1
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) */

+ 0 - 1
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) */

+ 0 - 1
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) */

+ 0 - 1
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

+ 1 - 3
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

+ 1 - 4
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

+ 0 - 1
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

+ 0 - 1
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) */