Browse Source

Weaken all that I remember being used in libpthread

Peter S. Mazinger 18 years ago
parent
commit
22826bcb41

+ 8 - 8
libc/inet/socketcalls.c

@@ -52,7 +52,7 @@ int __libc_accept(int s, struct sockaddr *addr, socklen_t * addrlen)
 #endif
 libc_hidden_proto(accept)
 weak_alias(__libc_accept,accept)
-libc_hidden_def(accept)
+libc_hidden_weak(accept)
 #endif
 
 #ifdef L_bind
@@ -91,7 +91,7 @@ int __libc_connect(int sockfd, const struct sockaddr *saddr, socklen_t addrlen)
 #endif
 libc_hidden_proto(connect)
 weak_alias(__libc_connect,connect)
-libc_hidden_def(connect)
+libc_hidden_weak(connect)
 #endif
 
 #ifdef L_getpeername
@@ -190,7 +190,7 @@ ssize_t __libc_recv(int sockfd, __ptr_t buffer, size_t len, int flags)
 #endif
 libc_hidden_proto(recv)
 weak_alias(__libc_recv,recv)
-libc_hidden_def(recv)
+libc_hidden_weak(recv)
 #endif
 
 #ifdef L_recvfrom
@@ -217,7 +217,7 @@ ssize_t __libc_recvfrom(int sockfd, __ptr_t buffer, size_t len, int flags,
 #endif
 libc_hidden_proto(recvfrom)
 weak_alias(__libc_recvfrom,recvfrom)
-libc_hidden_def(recvfrom)
+libc_hidden_weak(recvfrom)
 #endif
 
 #ifdef L_recvmsg
@@ -238,7 +238,7 @@ ssize_t __libc_recvmsg(int sockfd, struct msghdr *msg, int flags)
 #endif
 libc_hidden_proto(recvmsg)
 weak_alias(__libc_recvmsg,recvmsg)
-libc_hidden_def(recvmsg)
+libc_hidden_weak(recvmsg)
 #endif
 
 #ifdef L_send
@@ -267,7 +267,7 @@ ssize_t __libc_send(int sockfd, const void *buffer, size_t len, int flags)
 #endif
 libc_hidden_proto(send)
 weak_alias(__libc_send,send)
-libc_hidden_def(send)
+libc_hidden_weak(send)
 #endif
 
 #ifdef L_sendmsg
@@ -288,7 +288,7 @@ ssize_t __libc_sendmsg(int sockfd, const struct msghdr *msg, int flags)
 #endif
 libc_hidden_proto(sendmsg)
 weak_alias(__libc_sendmsg,sendmsg)
-libc_hidden_def(sendmsg)
+libc_hidden_weak(sendmsg)
 #endif
 
 #ifdef L_sendto
@@ -315,7 +315,7 @@ ssize_t __libc_sendto(int sockfd, const void *buffer, size_t len, int flags,
 #endif
 libc_hidden_proto(sendto)
 weak_alias(__libc_sendto,sendto)
-libc_hidden_def(sendto)
+libc_hidden_weak(sendto)
 #endif
 
 #ifdef L_setsockopt

+ 2 - 2
libc/sysdeps/linux/common/__syscall_fcntl.c

@@ -50,10 +50,10 @@ libc_hidden_def(__libc_fcntl)
 
 libc_hidden_proto(fcntl)
 weak_alias(__libc_fcntl,fcntl)
-libc_hidden_def(fcntl)
+libc_hidden_weak(fcntl)
 #if ! defined __NR_fcntl64 && defined __UCLIBC_HAS_LFS__
 strong_alias(__libc_fcntl,__libc_fcntl64)
 libc_hidden_proto(fcntl64)
 weak_alias(__libc_fcntl,fcntl64)
-libc_hidden_def(fcntl64)
+libc_hidden_weak(fcntl64)
 #endif

+ 1 - 1
libc/sysdeps/linux/common/__syscall_fcntl64.c

@@ -32,5 +32,5 @@ libc_hidden_def(__libc_fcntl64)
 
 libc_hidden_proto(fcntl64)
 strong_alias(__libc_fcntl64,fcntl64)
-libc_hidden_def(fcntl64)
+libc_hidden_weak(fcntl64)
 #endif

+ 1 - 1
libc/sysdeps/linux/common/close.c

@@ -15,4 +15,4 @@ extern __typeof(close) __libc_close;
 _syscall1(int, __libc_close, int, fd);
 libc_hidden_proto(close)
 weak_alias(__libc_close,close)
-libc_hidden_def(close)
+libc_hidden_weak(close)

+ 2 - 2
libc/sysdeps/linux/common/getpid.c

@@ -17,5 +17,5 @@ extern __typeof(getpid) __libc_getpid;
 #define __NR___libc_getpid __NR_getpid
 _syscall0(pid_t, __libc_getpid);
 libc_hidden_proto(getpid)
-strong_alias(__libc_getpid, getpid)
-libc_hidden_def(getpid)
+weak_alias(__libc_getpid, getpid)
+libc_hidden_weak(getpid)

+ 1 - 1
libc/sysdeps/linux/common/llseek.c

@@ -38,5 +38,5 @@ loff_t __libc_lseek64(int fd, loff_t offset, int whence)
 #endif
 libc_hidden_proto(lseek64)
 weak_alias(__libc_lseek64,lseek64)
-libc_hidden_def(lseek64)
+libc_hidden_weak(lseek64)
 //strong_alias(__libc_lseek64,_llseek)

+ 1 - 1
libc/sysdeps/linux/common/lseek.c

@@ -19,4 +19,4 @@ libc_hidden_def(__libc_lseek)
 
 libc_hidden_proto(lseek)
 weak_alias(__libc_lseek,lseek)
-libc_hidden_def(lseek)
+libc_hidden_weak(lseek)

+ 1 - 1
libc/sysdeps/linux/common/open.c

@@ -40,7 +40,7 @@ libc_hidden_def(__libc_open)
 
 libc_hidden_proto(open)
 weak_alias(__libc_open,open)
-libc_hidden_def(open)
+libc_hidden_weak(open)
 
 int creat(const char *file, mode_t mode)
 {

+ 1 - 1
libc/sysdeps/linux/common/open64.c

@@ -36,5 +36,5 @@ int __libc_open64 (const char *file, int oflag, ...)
 }
 libc_hidden_proto(open64)
 weak_alias(__libc_open64,open64)
-libc_hidden_def(open64)
+libc_hidden_weak(open64)
 #endif /* __UCLIBC_HAS_LFS__ */

+ 1 - 1
libc/sysdeps/linux/common/read.c

@@ -15,4 +15,4 @@ extern __typeof(read) __libc_read;
 _syscall3(ssize_t, __libc_read, int, fd, __ptr_t, buf, size_t, count);
 libc_hidden_proto(read)
 weak_alias(__libc_read,read)
-libc_hidden_def(read)
+libc_hidden_weak(read)

+ 1 - 1
libc/sysdeps/linux/common/write.c

@@ -15,7 +15,7 @@ extern __typeof(write) __libc_write;
 _syscall3(ssize_t, __libc_write, int, fd, const __ptr_t, buf, size_t, count);
 libc_hidden_proto(write)
 weak_alias(__libc_write,write)
-libc_hidden_def(write)
+libc_hidden_weak(write)
 #if 0
 /* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o
  * which is a blatent GNU libc-ism... */