Changeset 342 for asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src
- Timestamp:
- Apr 27, 2018, 2:26:14 PM (6 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src
- Files:
-
- 13 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 -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/misc/syscall.c
r337 r342 16 16 f=va_arg(ap, syscall_arg_t); 17 17 va_end(ap); 18 return __syscall_ret(__syscall (n,a,b,c,d,e,f));18 return __syscall_ret(__syscall_nr(n,a,b,c,d,e,f)); 19 19 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/__syscall_cp.c
r337 r342 2 2 #include "syscall.h" 3 3 4 #undef sccp 4 5 __attribute__((__visibility__("hidden"))) 5 6 long __syscall_cp_c(); … … 9 10 syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) 10 11 { 11 return (__syscall )(nr, u, v, w, x, y, z);12 return (__syscall_nr)(nr, u, v, w, x, y, z); 12 13 } 13 14 14 15 #ifndef __c2__ 15 16 weak_alias(sccp, __syscall_cp_c); 17 #else 18 long __syscall_cp_c(syscall_arg_t nr, 19 syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, 20 syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) 21 { 22 return sccp(nr, u, v, w, x, y, z); 23 } 16 24 #endif 17 25 -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/pthread_cancel.c
r337 r342 31 31 if ((st=(self=__pthread_self())->canceldisable) 32 32 && (st==PTHREAD_CANCEL_DISABLE || nr==SYS_close)) 33 return __syscall (nr, u, v, w, x, y, z);33 return __syscall_nr(nr, u, v, w, x, y, z); 34 34 35 35 r = __syscall_cp_asm(&self->cancel, nr, u, v, w, x, y, z); -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setegid.c
r337 r342 5 5 int setegid(gid_t egid) 6 6 { 7 return __setxid( SYS_setresgid, -1, egid, -1);7 return __setxid(__NR_setresgid, -1, egid, -1); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/seteuid.c
r337 r342 5 5 int seteuid(uid_t euid) 6 6 { 7 return __setxid( SYS_setresuid, -1, euid, -1);7 return __setxid(__NR_setresuid, -1, euid, -1); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setgid.c
r337 r342 5 5 int setgid(gid_t gid) 6 6 { 7 return __setxid( SYS_setgid, gid, 0, 0);7 return __setxid(__NR_setgid, gid, 0, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setregid.c
r337 r342 5 5 int setregid(gid_t rgid, gid_t egid) 6 6 { 7 return __setxid( SYS_setregid, rgid, egid, 0);7 return __setxid(__NR_setregid, rgid, egid, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setresgid.c
r337 r342 6 6 int setresgid(gid_t rgid, gid_t egid, gid_t sgid) 7 7 { 8 return __setxid( SYS_setresgid, rgid, egid, sgid);8 return __setxid(__NR_setresgid, rgid, egid, sgid); 9 9 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setresuid.c
r337 r342 6 6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) 7 7 { 8 return __setxid( SYS_setresuid, ruid, euid, suid);8 return __setxid(__NR_setresuid, ruid, euid, suid); 9 9 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setreuid.c
r337 r342 5 5 int setreuid(uid_t ruid, uid_t euid) 6 6 { 7 return __setxid( SYS_setreuid, ruid, euid, 0);7 return __setxid(__NR_setreuid, ruid, euid, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setuid.c
r337 r342 5 5 int setuid(uid_t uid) 6 6 { 7 return __setxid( SYS_setuid, uid, 0, 0);7 return __setxid(__NR_setuid, uid, 0, 0); 8 8 } -
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/unistd/setxid.c
r337 r342 14 14 struct ctx *c = p; 15 15 if (c->err>0) return; 16 int ret = -__syscall (c->nr, c->id, c->eid, c->sid);16 int ret = -__syscall_nr(c->nr, c->id, c->eid, c->sid); 17 17 if (ret && !c->err) { 18 18 /* If one thread fails to set ids after another has already
Note:
See TracChangeset
for help on using the changeset viewer.