svn commit: trunk/uClibc/libc/sysdeps/linux/common

psm at uclibc.org psm at uclibc.org
Tue Dec 13 21:21:00 UTC 2005


Author: psm
Date: 2005-12-13 13:20:44 -0800 (Tue, 13 Dec 2005)
New Revision: 12874

Log:
Do hidden fcntl*

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
   trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c	2005-12-13 21:14:37 UTC (rev 12873)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c	2005-12-13 21:20:44 UTC (rev 12874)
@@ -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 __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 __fcntl(int fd, int cmd, ...)
 {
 	long arg;
 	va_list list;
@@ -30,7 +30,7 @@
 
 	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 +38,10 @@
 	}
 	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

Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c	2005-12-13 21:14:37 UTC (rev 12873)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c	2005-12-13 21:20:44 UTC (rev 12874)
@@ -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 __fcntl64(int fd, int cmd, ...)
 {
 	long arg;
 	va_list list;
@@ -25,6 +25,6 @@
 	va_end(list);
 	return (__syscall_fcntl64(fd, cmd, arg));
 }
-
-weak_alias(__libc_fcntl64, fcntl64)
+strong_alias(__fcntl64,fcntl64)
+weak_alias(__fcntl64,__libc_fcntl64)
 #endif




More information about the uClibc-cvs mailing list