1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- cmd.id[0] = arg1
- __SETXID_1 (cmd, arg1); cmd.id[1] = arg2
- __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = arg3
- INLINE_SYSCALL (name, nr, args)
- ({ \
- int __result; \
- if (__builtin_expect (__libc_pthread_functions_init, 0)) \
- { \
- struct xid_command __cmd; \
- __cmd.syscall_no = __NR_
- __SETXID_
- __result = PTHFCT_CALL (ptr__nptl_setxid, (&__cmd)); \
- } \
- else \
- __result = INLINE_SYSCALL (name, nr, args); \
- __result; \
- })
- ({ \
- extern __typeof (__nptl_setxid) __nptl_setxid __attribute__((weak));\
- int __result; \
- if (__builtin_expect (__nptl_setxid != NULL, 0)) \
- { \
- struct xid_command __cmd; \
- __cmd.syscall_no = __NR_
- __SETXID_
- __result =__nptl_setxid (&__cmd); \
- } \
- else \
- __result = INLINE_SYSCALL (name, nr, args); \
- __result; \
- })
|