diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-15 15:20:11 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-15 15:20:11 +0000 |
commit | 8d0348abfd99992b3dde621b1d8a991a94218c6a (patch) | |
tree | eafbc1b5bc91db62ade579a6bc122279adda3ca4 | |
parent | bfaefca65199201e361298fbf388782b0aa8456f (diff) |
Hide __libc_fcntl[64]. Change weak __libc_fcntl* fcntl* to strong
-rw-r--r-- | libc/misc/internals/__uClibc_main.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/__syscall_fcntl.c | 8 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/__syscall_fcntl64.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 42f971f99..c9f005d08 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -74,7 +74,7 @@ const char *__progname = 0; # define O_NOFOLLOW 0 #endif -extern int __libc_fcntl(int fd, int cmd, ...); +extern int __libc_fcntl(int fd, int cmd, ...) attribute_hidden; extern int __libc_open(const char *file, int flags, ...); static void __check_one_fd(int fd, int mode) diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c index e2215b59a..75750d18e 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl.c @@ -12,14 +12,14 @@ #include <fcntl.h> #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64 -extern int __libc_fcntl64(int fd, int cmd, ...); +extern int __libc_fcntl64(int fd, int cmd, ...) attribute_hidden; #endif #define __NR___syscall_fcntl __NR_fcntl static inline _syscall3(int, __syscall_fcntl, int, fd, int, cmd, long, arg); -int __libc_fcntl(int fd, int cmd, ...) +int attribute_hidden __libc_fcntl(int fd, int cmd, ...) { long arg; va_list list; @@ -39,7 +39,7 @@ int __libc_fcntl(int fd, int cmd, ...) return (__syscall_fcntl(fd, cmd, arg)); } -weak_alias(__libc_fcntl, fcntl); +strong_alias(__libc_fcntl, fcntl) #if ! defined __NR_fcntl64 && defined __UCLIBC_HAS_LFS__ -weak_alias(__libc_fcntl, fcntl64); +strong_alias(__libc_fcntl, fcntl64) #endif diff --git a/libc/sysdeps/linux/common/__syscall_fcntl64.c b/libc/sysdeps/linux/common/__syscall_fcntl64.c index bf7082969..a131591bd 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl64.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl64.c @@ -14,7 +14,7 @@ #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64 #define __NR___syscall_fcntl64 __NR_fcntl64 static inline _syscall3(int, __syscall_fcntl64, int, fd, int, cmd, long, arg); -int __libc_fcntl64(int fd, int cmd, ...) +int attribute_hidden __libc_fcntl64(int fd, int cmd, ...) { long arg; va_list list; @@ -26,5 +26,5 @@ int __libc_fcntl64(int fd, int cmd, ...) return (__syscall_fcntl64(fd, cmd, arg)); } -weak_alias(__libc_fcntl64, fcntl64); +strong_alias(__libc_fcntl64, fcntl64) #endif |