From: Ulrich Drepper Date: Fri, 30 Jan 1998 17:28:46 +0000 (+0000) Subject: Make __libc_xxx the main name and __xxx a weak alias. X-Git-Tag: cvs/before-sparc-2_0_x-branch~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02950ebf0d7f696904a3501c11fb0fcf8c0555f1;p=thirdparty%2Fglibc.git Make __libc_xxx the main name and __xxx a weak alias. --- diff --git a/sysdeps/unix/sysv/linux/accept.S b/sysdeps/unix/sysv/linux/accept.S index 9639986ce42..dfb47d580d4 100644 --- a/sysdeps/unix/sysv/linux/accept.S +++ b/sysdeps/unix/sysv/linux/accept.S @@ -1,3 +1,4 @@ #define socket accept +#define __socket __libc_accept #include -strong_alias (__accept, __libc_accept) +weak_alias (__libc_accept, __accept) diff --git a/sysdeps/unix/sysv/linux/connect.S b/sysdeps/unix/sysv/linux/connect.S index 1de78ad0756..3f3cc618e6f 100644 --- a/sysdeps/unix/sysv/linux/connect.S +++ b/sysdeps/unix/sysv/linux/connect.S @@ -1,3 +1,4 @@ #define socket connect +#define __socket __libc_connect #include -strong_alias (__connect, __libc_connect) +weak_alias (__libc_connect, __connect) diff --git a/sysdeps/unix/sysv/linux/recv.S b/sysdeps/unix/sysv/linux/recv.S index beb128e12f1..5763d17d1dd 100644 --- a/sysdeps/unix/sysv/linux/recv.S +++ b/sysdeps/unix/sysv/linux/recv.S @@ -1,3 +1,4 @@ #define socket recv +#define __socket __libc_recv #include -strong_alias (__recv, __libc_recv) +weak_alias (__libc_recv, __recv) diff --git a/sysdeps/unix/sysv/linux/recvfrom.S b/sysdeps/unix/sysv/linux/recvfrom.S index 7ff4e0db176..3b2b6509d77 100644 --- a/sysdeps/unix/sysv/linux/recvfrom.S +++ b/sysdeps/unix/sysv/linux/recvfrom.S @@ -1,3 +1,4 @@ #define socket recvfrom +#define __socket __libc_recvfrom #include -strong_alias (__recvfrom, __libc_recvfrom) +weak_alias (__libc_recvfrom, __recvfrom) diff --git a/sysdeps/unix/sysv/linux/recvmsg.S b/sysdeps/unix/sysv/linux/recvmsg.S index 9eeb5c984aa..c62cc289b59 100644 --- a/sysdeps/unix/sysv/linux/recvmsg.S +++ b/sysdeps/unix/sysv/linux/recvmsg.S @@ -1,3 +1,4 @@ #define socket recvmsg +#define __socket __libc_recvmsg #include -strong_alias (__recvmsg, __libc_recvmsg) +weak_alias (__libc_recvmsg, __recvmsg) diff --git a/sysdeps/unix/sysv/linux/send.S b/sysdeps/unix/sysv/linux/send.S index 991d39d484b..253897787c7 100644 --- a/sysdeps/unix/sysv/linux/send.S +++ b/sysdeps/unix/sysv/linux/send.S @@ -1,3 +1,4 @@ #define socket send +#define __socket __libc_send #include -strong_alias (__send, __libc_send) +weak_alias (__libc_send, __send) diff --git a/sysdeps/unix/sysv/linux/sendmsg.S b/sysdeps/unix/sysv/linux/sendmsg.S index 215547c3fcb..1743846babf 100644 --- a/sysdeps/unix/sysv/linux/sendmsg.S +++ b/sysdeps/unix/sysv/linux/sendmsg.S @@ -1,3 +1,4 @@ #define socket sendmsg +#define __socket __libc_sendmsg #include -strong_alias (__sendmsg, __libc_sendmsg) +weak_alias (__libc_sendmsg, __sendmsg) diff --git a/sysdeps/unix/sysv/linux/sendto.S b/sysdeps/unix/sysv/linux/sendto.S index 39683be107c..eb82cc1f17d 100644 --- a/sysdeps/unix/sysv/linux/sendto.S +++ b/sysdeps/unix/sysv/linux/sendto.S @@ -1,3 +1,4 @@ #define socket sendto +#define __socket __libc_sendto #include -strong_alias (__sendto, __libc_sendto) +weak_alias (__libc_sendto, __sendto)