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

psm at uclibc.org psm at uclibc.org
Tue Nov 15 15:46:46 UTC 2005


Author: psm
Date: 2005-11-15 07:46:44 -0800 (Tue, 15 Nov 2005)
New Revision: 12266

Log:
Undo hiding __libc_fcntl[64], CANCELABLE_SYSCALL is not grep friendly ;-(, have to find some other way to make it internal to libc and libpthread

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


Changeset:
Modified: trunk/uClibc/libc/misc/internals/__uClibc_main.c
===================================================================
--- trunk/uClibc/libc/misc/internals/__uClibc_main.c	2005-11-15 15:32:32 UTC (rev 12265)
+++ trunk/uClibc/libc/misc/internals/__uClibc_main.c	2005-11-15 15:46:44 UTC (rev 12266)
@@ -76,7 +76,7 @@
 # define O_NOFOLLOW	0
 #endif
 
-extern int __libc_fcntl(int fd, int cmd, ...) attribute_hidden;
+extern int __libc_fcntl(int fd, int cmd, ...);
 extern int __libc_open(const char *file, int flags, ...);
 
 static void __check_one_fd(int fd, int mode)

Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c	2005-11-15 15:32:32 UTC (rev 12265)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c	2005-11-15 15:46:44 UTC (rev 12266)
@@ -12,14 +12,14 @@
 #include <fcntl.h>
 
 #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
-extern int __libc_fcntl64(int fd, int cmd, ...) attribute_hidden;
+extern int __libc_fcntl64(int fd, int cmd, ...);
 #endif
 
 #define __NR___syscall_fcntl __NR_fcntl
 static inline
 _syscall3(int, __syscall_fcntl, int, fd, int, cmd, long, arg);
 
-int attribute_hidden __libc_fcntl(int fd, int cmd, ...)
+int __libc_fcntl(int fd, int cmd, ...)
 {
 	long arg;
 	va_list list;
@@ -39,7 +39,7 @@
 	return (__syscall_fcntl(fd, cmd, arg));
 }
 
-strong_alias(__libc_fcntl, fcntl)
+weak_alias(__libc_fcntl, fcntl)
 #if ! defined __NR_fcntl64 && defined __UCLIBC_HAS_LFS__
-strong_alias(__libc_fcntl, fcntl64)
+weak_alias(__libc_fcntl, fcntl64)
 #endif

Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c	2005-11-15 15:32:32 UTC (rev 12265)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c	2005-11-15 15:46:44 UTC (rev 12266)
@@ -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 attribute_hidden __libc_fcntl64(int fd, int cmd, ...)
+int __libc_fcntl64(int fd, int cmd, ...)
 {
 	long arg;
 	va_list list;
@@ -26,5 +26,5 @@
 	return (__syscall_fcntl64(fd, cmd, arg));
 }
 
-strong_alias(__libc_fcntl64, fcntl64)
+weak_alias(__libc_fcntl64, fcntl64)
 #endif




More information about the uClibc-cvs mailing list