summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-10 02:20:00 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-10 02:20:00 +0000
commit36bff6b9bf5265c4d02fc6256dd5b3c81db709ff (patch)
tree64b964098a55061701fd85fa5ecc465891dbe696 /libc
parent3720c42fcc3645f08053087b29e8f44cf9aeb438 (diff)
Do hidden __*stat*
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/fstat.c5
-rw-r--r--libc/sysdeps/linux/common/fstat64.c4
-rw-r--r--libc/sysdeps/linux/common/fstatfs.c4
-rw-r--r--libc/sysdeps/linux/common/lstat.c5
-rw-r--r--libc/sysdeps/linux/common/lstat64.c4
-rw-r--r--libc/sysdeps/linux/common/stat.c5
-rw-r--r--libc/sysdeps/linux/common/stat64.c4
-rw-r--r--libc/sysdeps/linux/common/statfs.c4
8 files changed, 23 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/common/fstat.c b/libc/sysdeps/linux/common/fstat.c
index 0116aeaaa..208227a7e 100644
--- a/libc/sysdeps/linux/common/fstat.c
+++ b/libc/sysdeps/linux/common/fstat.c
@@ -17,7 +17,7 @@
#define __NR___syscall_fstat __NR_fstat
static inline _syscall2(int, __syscall_fstat, int, fd, struct kernel_stat *, buf);
-int fstat(int fd, struct stat *buf)
+int attribute_hidden __fstat(int fd, struct stat *buf)
{
int result;
struct kernel_stat kbuf;
@@ -28,7 +28,8 @@ int fstat(int fd, struct stat *buf)
}
return result;
}
+strong_alias(__fstat,fstat)
#if ! defined __NR_fstat64 && defined __UCLIBC_HAS_LFS__
-weak_alias(fstat, fstat64);
+weak_alias(fstat,fstat64)
#endif
diff --git a/libc/sysdeps/linux/common/fstat64.c b/libc/sysdeps/linux/common/fstat64.c
index 3534e21f3..87621beab 100644
--- a/libc/sysdeps/linux/common/fstat64.c
+++ b/libc/sysdeps/linux/common/fstat64.c
@@ -19,7 +19,7 @@
static inline _syscall2(int, __syscall_fstat64,
int, filedes, struct kernel_stat64 *, buf);
-int fstat64(int fd, struct stat64 *buf)
+int attribute_hidden __fstat64(int fd, struct stat64 *buf)
{
int result;
struct kernel_stat64 kbuf;
@@ -30,4 +30,6 @@ int fstat64(int fd, struct stat64 *buf)
}
return result;
}
+strong_alias(__fstat64,fstat64)
+
#endif /* __UCLIBC_HAS_LFS__ */
diff --git a/libc/sysdeps/linux/common/fstatfs.c b/libc/sysdeps/linux/common/fstatfs.c
index 1eac16a3a..9a7cf303b 100644
--- a/libc/sysdeps/linux/common/fstatfs.c
+++ b/libc/sysdeps/linux/common/fstatfs.c
@@ -9,4 +9,6 @@
#include "syscalls.h"
#include <sys/vfs.h>
-_syscall2(int, fstatfs, int, fd, struct statfs *, buf);
+#define __NR___fstatfs __NR_fstatfs
+attribute_hidden _syscall2(int, __fstatfs, int, fd, struct statfs *, buf);
+strong_alias(__fstatfs,fstatfs)
diff --git a/libc/sysdeps/linux/common/lstat.c b/libc/sysdeps/linux/common/lstat.c
index b5b0e635e..8cacd4e78 100644
--- a/libc/sysdeps/linux/common/lstat.c
+++ b/libc/sysdeps/linux/common/lstat.c
@@ -18,7 +18,7 @@
static inline _syscall2(int, __syscall_lstat,
const char *, file_name, struct kernel_stat *, buf);
-int lstat(const char *file_name, struct stat *buf)
+int attribute_hidden __lstat(const char *file_name, struct stat *buf)
{
int result;
struct kernel_stat kbuf;
@@ -29,7 +29,8 @@ int lstat(const char *file_name, struct stat *buf)
}
return result;
}
+strong_alias(__lstat,lstat)
#if ! defined __NR_lstat64 && defined __UCLIBC_HAS_LFS__
-weak_alias(lstat, lstat64);
+weak_alias(lstat,lstat64)
#endif
diff --git a/libc/sysdeps/linux/common/lstat64.c b/libc/sysdeps/linux/common/lstat64.c
index 90c3cf79c..f3ae083f1 100644
--- a/libc/sysdeps/linux/common/lstat64.c
+++ b/libc/sysdeps/linux/common/lstat64.c
@@ -19,7 +19,7 @@
static inline _syscall2(int, __syscall_lstat64, const char *, file_name,
struct kernel_stat64 *, buf);
-int lstat64(const char *file_name, struct stat64 *buf)
+int attribute_hidden __lstat64(const char *file_name, struct stat64 *buf)
{
int result;
struct kernel_stat64 kbuf;
@@ -30,4 +30,6 @@ int lstat64(const char *file_name, struct stat64 *buf)
}
return result;
}
+strong_alias(__lstat64,lstat64)
+
#endif /* __UCLIBC_HAS_LFS__ */
diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
index e5b2f0a51..cefbd5f8e 100644
--- a/libc/sysdeps/linux/common/stat.c
+++ b/libc/sysdeps/linux/common/stat.c
@@ -17,7 +17,7 @@
static inline _syscall2(int, __syscall_stat,
const char *, file_name, struct kernel_stat *, buf);
-int stat(const char *file_name, struct stat *buf)
+int attribute_hidden __stat(const char *file_name, struct stat *buf)
{
int result;
struct kernel_stat kbuf;
@@ -28,7 +28,8 @@ int stat(const char *file_name, struct stat *buf)
}
return result;
}
+strong_alias(__stat,stat)
#if ! defined __NR_stat64 && defined __UCLIBC_HAS_LFS__
-weak_alias(stat, stat64);
+weak_alias(stat,stat64)
#endif
diff --git a/libc/sysdeps/linux/common/stat64.c b/libc/sysdeps/linux/common/stat64.c
index 215f0a54c..d539906dd 100644
--- a/libc/sysdeps/linux/common/stat64.c
+++ b/libc/sysdeps/linux/common/stat64.c
@@ -19,7 +19,7 @@
static inline _syscall2(int, __syscall_stat64,
const char *, file_name, struct kernel_stat64 *, buf);
-int stat64(const char *file_name, struct stat64 *buf)
+int attribute_hidden __stat64(const char *file_name, struct stat64 *buf)
{
int result;
struct kernel_stat64 kbuf;
@@ -30,4 +30,6 @@ int stat64(const char *file_name, struct stat64 *buf)
}
return result;
}
+strong_alias(__stat64,stat64)
+
#endif /* __UCLIBC_HAS_LFS__ */
diff --git a/libc/sysdeps/linux/common/statfs.c b/libc/sysdeps/linux/common/statfs.c
index 4e31217b2..f8aa9d3ba 100644
--- a/libc/sysdeps/linux/common/statfs.c
+++ b/libc/sysdeps/linux/common/statfs.c
@@ -16,8 +16,8 @@
static inline _syscall2(int, __syscall_statfs,
const char *, path, struct statfs *, buf);
-int statfs(const char *path, struct statfs * buf)
+int attribute_hidden __statfs(const char *path, struct statfs * buf)
{
return __syscall_statfs(path, buf);
}
-
+strong_alias(__statfs,statfs)