diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-01-14 19:22:44 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-01-14 19:22:44 +0000 |
commit | 9138bf01b3b21ce23cfdf15fce3f30bb9a1fbc61 (patch) | |
tree | fb0ac2208e1a080dfae3f2ca5f1f90f568bf4165 /libc/sysdeps/linux/common/__syscall_fcntl.c | |
parent | 6e3c1938ff129fb5385a963ec600111aa6228bdc (diff) | |
download | uClibc-alpine-9138bf01b3b21ce23cfdf15fce3f30bb9a1fbc61.tar.bz2 uClibc-alpine-9138bf01b3b21ce23cfdf15fce3f30bb9a1fbc61.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/common/__syscall_fcntl.c')
-rw-r--r-- | libc/sysdeps/linux/common/__syscall_fcntl.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c index 701877c06..ca9aff5e7 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl.c @@ -11,15 +11,18 @@ #include <stdarg.h> #include <fcntl.h> +#undef __fcntl + #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64 -extern int __libc_fcntl64(int fd, int cmd, ...); +extern int __fcntl64(int fd, int cmd, ...) attribute_hidden; #endif +#undef fcntl #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 __fcntl(int fd, int cmd, ...) { long arg; va_list list; @@ -30,7 +33,7 @@ int __libc_fcntl(int fd, int cmd, ...) if (cmd == F_GETLK64 || cmd == F_SETLK64 || cmd == F_SETLKW64) { #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64 - return __libc_fcntl64(fd, cmd, arg); + return __fcntl64(fd, cmd, arg); #else __set_errno(ENOSYS); return -1; @@ -38,8 +41,10 @@ int __libc_fcntl(int fd, int cmd, ...) } return (__syscall_fcntl(fd, cmd, arg)); } - -weak_alias(__libc_fcntl, fcntl) +strong_alias(__fcntl,fcntl) +weak_alias(__fcntl,__libc_fcntl) #if ! defined __NR_fcntl64 && defined __UCLIBC_HAS_LFS__ -weak_alias(__libc_fcntl, fcntl64) +hidden_strong_alias(__fcntl,__fcntl64) +weak_alias(__fcntl,fcntl64) +weak_alias(__fcntl,__libc_fcntl64) #endif |