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. */
|
The .S files for the other calls just #define socket and #include this. */
|
||||||
|
|
||||||
.globl P(__,socket)
|
#ifndef __socket
|
||||||
ENTRY (P(__,socket))
|
#define __socket P(__,socket)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
.globl __socket
|
||||||
|
ENTRY (__socket)
|
||||||
|
|
||||||
/* Do the system call trap. */
|
/* Do the system call trap. */
|
||||||
swi SYS_ify(socketcall)
|
swi SYS_ify(socketcall)
|
||||||
|
@ -44,6 +48,6 @@ ENTRY (P(__,socket))
|
||||||
/* Successful; return the syscall's value. */
|
/* Successful; return the syscall's value. */
|
||||||
RETINSTR(mov,pc,r14)
|
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. */
|
The .S files for the other calls just #define socket and #include this. */
|
||||||
|
|
||||||
.globl P(__,socket)
|
#ifndef __socket
|
||||||
ENTRY (P(__,socket))
|
#define __socket P(__,socket)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
.globl __socket
|
||||||
|
ENTRY (__socket)
|
||||||
|
|
||||||
/* Save registers. */
|
/* Save registers. */
|
||||||
move.l %d2, %a0
|
move.l %d2, %a0
|
||||||
|
@ -56,6 +60,6 @@ ENTRY (P(__,socket))
|
||||||
|
|
||||||
/* Successful; return the syscall's value. */
|
/* Successful; return the syscall's value. */
|
||||||
rts
|
rts
|
||||||
PSEUDO_END (P(__,socket))
|
PSEUDO_END (__socket)
|
||||||
|
|
||||||
weak_alias (P(__,socket), socket)
|
weak_alias (__socket, socket)
|
||||||
|
|
Loading…
Reference in New Issue