summaryrefslogtreecommitdiff
path: root/src/lib/evil/pwd.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-09-11 16:13:11 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-09-11 16:13:11 +0000
commitcd69ef4c8a66e7155967a8b661a014856979cf31 (patch)
tree4a351ae4a4ca91abf29c85254b85ea8da71f74b0 /src/lib/evil/pwd.h
parent59a9dfd11860888a35e96dfe51af63cea5cecfe1 (diff)
merge: add evil files
SVN revision: 76464
Diffstat (limited to 'src/lib/evil/pwd.h')
-rw-r--r--src/lib/evil/pwd.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/lib/evil/pwd.h b/src/lib/evil/pwd.h
new file mode 100644
index 0000000000..e7907cacbd
--- /dev/null
+++ b/src/lib/evil/pwd.h
@@ -0,0 +1,71 @@
1#ifndef __EVIL_PWD_H__
2#define __EVIL_PWD_H__
3
4
5/**
6 * @file pwd.h
7 * @brief The file that provides functions ported from Unix in pwd.h.
8 * @defgroup Evil_Pwd_Group Pwd.h functions
9 *
10 * This header provides functions ported from Unix in dirent.h.
11 *
12 * @{
13 */
14
15
16#include <time.h>
17
18#include <Evil.h>
19
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
26/**
27 * @struct passwd
28 * @brief A structure that describes a password.
29 */
30struct passwd {
31 char *pw_name; /**< user name */
32 char *pw_passwd; /**< encrypted password (always @c NULL) */
33 uid_t pw_uid; /**< user uid */
34 gid_t pw_gid; /**< user gid (always O) */
35 time_t pw_change; /**< password change time (always 0) */
36 char *pw_class; /**< user access class (always @c NULL) */
37 char *pw_gecos; /**< Honeywell login info */
38 char *pw_dir; /**< home directory */
39 char *pw_shell; /**< default shell */
40 time_t pw_expire; /**< account expiration (always O) */
41 int pw_fields; /**< internal: fields filled in (always O) */
42};
43
44/**
45 * @brief Return a passwd structure.
46 *
47 * @param uid The User ID
48 * @return A stacally allocated passwd structure.
49 *
50 * This function fills a static buffer @ref passwd with @p uid and the
51 * user name.
52 *
53 * Conformity: None.
54 *
55 * Supported OS: Windows XP, CE.
56 */
57EAPI struct passwd *getpwuid (uid_t uid);
58
59
60#ifdef __cplusplus
61}
62#endif
63
64
65
66/**
67 * @}
68 */
69
70
71#endif /* __EVIL_PWD_H__ */