seteuid.c 116 B

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