- Timestamp:
- Apr 27, 2018, 2:26:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/internal/syscall.h
r337 r342 21 21 typedef long syscall_arg_t; 22 22 #endif 23 23 #if 0 24 24 __attribute__((visibility("hidden"))) 25 25 long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), … … 44 44 #endif 45 45 #define __syscall7(n,a,b,c,d,e,f,g) (__syscall)(n,__scc(a),__scc(b),__scc(c),__scc(d),__scc(e),__scc(f),__scc(g)) 46 46 #endif 47 47 #define __SYSCALL_NARGS_X(a,b,c,d,e,f,g,h,n,...) n 48 48 #define __SYSCALL_NARGS(...) __SYSCALL_NARGS_X(__VA_ARGS__,7,6,5,4,3,2,1,0,) … … 50 50 #define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X(a,b) 51 51 #define __SYSCALL_DISP(b,...) __SYSCALL_CONCAT(b,__SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__) 52 52 #if 0 53 53 #define __syscall(...) __SYSCALL_DISP(__syscall,__VA_ARGS__) 54 54 #define syscall(...) __syscall_ret(__syscall(__VA_ARGS__)) 55 55 #endif 56 56 #define socketcall __socketcall 57 57 #define socketcall_cp __socketcall_cp 58 58 #if 0 59 59 #define __syscall_cp0(n) (__syscall_cp)(n,0,0,0,0,0,0) 60 60 #define __syscall_cp1(n,a) (__syscall_cp)(n,__scc(a),0,0,0,0,0) … … 67 67 #define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__) 68 68 #define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__)) 69 #endif 69 70 70 71 #ifndef SYSCALL_USE_SOCKETCALL
Note:
See TracChangeset
for help on using the changeset viewer.