]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/local-setxid.h
RISC-V: Build Infastructure
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / local-setxid.h
CommitLineData
1b8373f4
UD
1/* SETxID functions which only have to change the local thread and
2 none of the possible other threads. */
1b8373f4
UD
3#include <sysdep.h>
4
21708942 5#ifdef __NR_setresuid32
1b8373f4 6# define local_seteuid(id) INLINE_SYSCALL (setresuid32, 3, -1, id, -1)
1b8373f4 7#else
21708942 8# define local_seteuid(id) INLINE_SYSCALL (setresuid, 3, -1, id, -1)
1b8373f4
UD
9#endif
10
11
21708942 12#ifdef __NR_setresgid32
1b8373f4 13# define local_setegid(id) INLINE_SYSCALL (setresgid32, 3, -1, id, -1)
1b8373f4 14#else
21708942 15# define local_setegid(id) INLINE_SYSCALL (setresgid, 3, -1, id, -1)
1b8373f4 16#endif