Allow __socket to be redefined.

This commit is contained in:
Ulrich Drepper 1998-01-21 17:03:20 +00:00
parent 5faf38aeab
commit 41fe80e1bc
2 changed files with 16 additions and 8 deletions

View File

@ -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)

View File

@ -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)