summaryrefslogtreecommitdiff
path: root/legacy/evil/src/lib/pwd.h
blob: 4a6b832a9a7ad89bb87a8262b42c05407258a0f4 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __EVIL_PWD_H__
#define __EVIL_PWD_H__


#include <time.h>

#include <Evil.h>


#ifdef __cplusplus
extern "C" {
#endif


#ifndef __CEGCC__


struct passwd {
   char    *pw_name;       /* user name */
   char    *pw_passwd;     /* encrypted password */
   uid_t    pw_uid;        /* user uid */
   gid_t    pw_gid;        /* user gid */
   time_t   pw_change;     /* password change time */
   char    *pw_class;      /* user access class */
   char    *pw_gecos;      /* Honeywell login info */
   char    *pw_dir;        /* home directory */
   char    *pw_shell;      /* default shell */
   time_t   pw_expire;     /* account expiration */
   int      pw_fields;     /* internal: fields filled in */
};

EAPI struct passwd * getpwuid (uid_t uid);


#endif /* ! __CEGCC__ */


#ifdef __cplusplus
}
#endif


#endif /* __EVIL_PWD_H__ */