mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-10 00:32:27 +03:00
change the internal socketcall selection logic
only use SYS_socketcall if SYSCALL_USE_SOCKETCALL is defined internally, otherwise use direct syscalls. this commit does not change the current behaviour, it is preparation for adding direct syscall numbers for i386.
This commit is contained in:
parent
f9b8df464d
commit
a5e133bf29
@ -55,3 +55,5 @@ static inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a
|
||||
#define VDSO_USEFUL
|
||||
#define VDSO_CGT_SYM "__vdso_clock_gettime"
|
||||
#define VDSO_CGT_VER "LINUX_2.6"
|
||||
|
||||
#define SYSCALL_USE_SOCKETCALL
|
||||
|
@ -63,7 +63,7 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
|
||||
#define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__)
|
||||
#define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__))
|
||||
|
||||
#ifdef SYS_socket
|
||||
#ifndef SYSCALL_USE_SOCKETCALL
|
||||
#define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_##nm, a, b, c, d, e, f)
|
||||
#define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_##nm, a, b, c, d, e, f)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user