seteuid.c 139 B

123456789
  1. #include <unistd.h>
  2. #include <stdio.h>
  3. #include <errno.h>
  4. #include <sys/types.h>
  5. int seteuid(uid_t uid)
  6. {
  7. return setreuid(-1, uid);
  8. }