| 1 | /* SETxID functions which only have to change the local thread and |
| 2 | none of the possible other threads. */ |
| 3 | #include <sysdep.h> |
| 4 | |
| 5 | #ifdef __NR_setresuid32 |
| 6 | # define local_seteuid(id) INLINE_SYSCALL (setresuid32, 3, -1, id, -1) |
| 7 | #else |
| 8 | # define local_seteuid(id) INLINE_SYSCALL (setresuid, 3, -1, id, -1) |
| 9 | #endif |
| 10 | |
| 11 | |
| 12 | #ifdef __NR_setresgid32 |
| 13 | # define local_setegid(id) INLINE_SYSCALL (setresgid32, 3, -1, id, -1) |
| 14 | #else |
| 15 | # define local_setegid(id) INLINE_SYSCALL (setresgid, 3, -1, id, -1) |
| 16 | #endif |
| 17 | |