summaryrefslogtreecommitdiff
path: root/include/nonunix/pwd.h
blob: a724ea211be31d05a423a8332f40bd2e546203d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#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