C++程序  |  23行  |  367 B


#pragma once

typedef unsigned short __uid_t;
__inline __uid_t getuid(void){return 0;}
__inline int geteuid(void){return 1;}
__inline struct passwd* getpwnam (char* g){return 0;}


struct passwd
{
  char *pw_name;		
  char *pw_passwd;		
  __uid_t pw_uid;		
  __gid_t pw_gid;		
  char *pw_gecos;		
  char *pw_dir;			
  char *pw_shell;		
};

#define getpwuid(i) NULL