summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/local-setxid.h
blob: 97d787d9426973051a302676fc45e113cf3b526c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SETxID functions which only have to change the local thread and
   none of the possible other threads.  */
#include <sysdep.h>

#ifdef __NR_setresuid32
# define local_seteuid(id) INLINE_SYSCALL (setresuid32, 3, -1, id, -1)
#else
# define local_seteuid(id) INLINE_SYSCALL (setresuid, 3, -1, id, -1)
#endif


#ifdef __NR_setresgid32
# define local_setegid(id) INLINE_SYSCALL (setresgid32, 3, -1, id, -1)
#else
# define local_setegid(id) INLINE_SYSCALL (setresgid, 3, -1, id, -1)
#endif