summaryrefslogtreecommitdiff
path: root/legacy/evil/src/lib/pwd.h
blob: cfd211a83b2134de2e7b0186e8a91b1c0f012bcc (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
44
45
46
47
48
49
50
51
52
53
54
#ifndef __EVIL_PWD_H__
#define __EVIL_PWD_H__


#include <time.h>

#include <Evil.h>


#ifdef EAPI
# undef EAPI
#endif /* EAPI */

#ifdef _WIN32
# ifdef EFL_EVIL_PWD_BUILD
#  ifdef DLL_EXPORT
#   define EAPI __declspec(dllexport)
#  else
#   define EAPI
#  endif /* ! DLL_EXPORT */
# else
#  define EAPI __declspec(dllimport)
# endif /* ! EFL_EVIL_PWD_BUILD */
#endif /* _WIN32 */


#ifdef __cplusplus
extern "C" {
#endif


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);


#ifdef __cplusplus
}
#endif


#endif /* __EVIL_PWD_H__ */