vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

getuid.c (314B)


      1 #include <unistd.h>
      2 #include <errno.h>
      3 
      4 pid_t getpid(void) { return 1; }
      5 uid_t getuid(void) { return 0; }
      6 uid_t geteuid(void) { return 0; }
      7 gid_t getgid(void) { return 0; }
      8 gid_t getegid(void) { return 0; }
      9 
     10 int setuid(uid_t uid) { errno = EINVAL; return -1; }
     11 int setgid(gid_t gid) { errno = EINVAL; return -1; }