summaryrefslogtreecommitdiff
path: root/nt/inc/pwd.h
blob: 54e477e966581383a523f76e24c4718d47658278 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _PWD_H_
#define _PWD_H_
/*
 * pwd.h doesn't exist on NT, so we put together our own.
 */

struct passwd {
    char     *pw_name;
    char     *pw_passwd;
    unsigned  pw_uid;  /* Vista's TrustedInstaller has a very large RID */
    unsigned  pw_gid;
    int       pw_quota;
    char     *pw_gecos;
    char     *pw_dir;
    char     *pw_shell;
};

typedef unsigned uid_t;
typedef uid_t gid_t;

extern unsigned getuid (void);
extern unsigned geteuid (void);

extern struct passwd * getpwnam (char *);
extern struct passwd * getpwuid (unsigned);


#endif /* _PWD_H_ */