cuserid: support invocation with a null pointer argument
[musl.git] / src / unistd / setuid.c
blob602ecbbf44b3d06b11a73196a13e9046eb217cb7
1 #include <unistd.h>
2 #include "syscall.h"
3 #include "libc.h"
5 int setuid(uid_t uid)
7 return __setxid(SYS_setuid, uid, 0, 0);