mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-01 23:40:22 +00:00
Allow __socket to be redefined.
This commit is contained in:
parent
5faf38aeab
commit
41fe80e1bc
@ -31,8 +31,12 @@
|
||||
|
||||
The .S files for the other calls just #define socket and #include this. */
|
||||
|
||||
.globl P(__,socket)
|
||||
ENTRY (P(__,socket))
|
||||
#ifndef __socket
|
||||
#define __socket P(__,socket)
|
||||
#endif
|
||||
|
||||
.globl __socket
|
||||
ENTRY (__socket)
|
||||
|
||||
/* Do the system call trap. */
|
||||
swi SYS_ify(socketcall)
|
||||
@ -44,6 +48,6 @@ ENTRY (P(__,socket))
|
||||
/* Successful; return the syscall's value. */
|
||||
RETINSTR(mov,pc,r14)
|
||||
|
||||
PSEUDO_END (P(__,socket))
|
||||
PSEUDO_END (__socket)
|
||||
|
||||
weak_alias (P(__,socket), socket)
|
||||
weak_alias (__socket, socket)
|
||||
|
@ -31,8 +31,12 @@
|
||||
|
||||
The .S files for the other calls just #define socket and #include this. */
|
||||
|
||||
.globl P(__,socket)
|
||||
ENTRY (P(__,socket))
|
||||
#ifndef __socket
|
||||
#define __socket P(__,socket)
|
||||
#endif
|
||||
|
||||
.globl __socket
|
||||
ENTRY (__socket)
|
||||
|
||||
/* Save registers. */
|
||||
move.l %d2, %a0
|
||||
@ -56,6 +60,6 @@ ENTRY (P(__,socket))
|
||||
|
||||
/* Successful; return the syscall's value. */
|
||||
rts
|
||||
PSEUDO_END (P(__,socket))
|
||||
PSEUDO_END (__socket)
|
||||
|
||||
weak_alias (P(__,socket), socket)
|
||||
weak_alias (__socket, socket)
|
||||
|
Loading…
Reference in New Issue
Block a user