summaryrefslogtreecommitdiff
path: root/src/lib/evil/pwd.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2014-12-09 20:35:15 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-10 02:38:53 +0100
commitf52be78699a2a3165a74f37910eabefec68a977d (patch)
tree1525cd86db388e634c4beca3f23e0cbe25d6b337 /src/lib/evil/pwd.h
parent407f7bbb0b985c1083c71628dd08b0347f99a0aa (diff)
evil: add getpwnam() function
@feature Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evil/pwd.h')
-rw-r--r--src/lib/evil/pwd.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/lib/evil/pwd.h b/src/lib/evil/pwd.h
index 256c75ff57..a5ed996b2b 100644
--- a/src/lib/evil/pwd.h
+++ b/src/lib/evil/pwd.h
@@ -31,21 +31,35 @@ extern "C" {
31struct passwd { 31struct passwd {
32 char *pw_name; /**< user name */ 32 char *pw_name; /**< user name */
33 char *pw_passwd; /**< encrypted password (always @c NULL) */ 33 char *pw_passwd; /**< encrypted password (always @c NULL) */
34 uid_t pw_uid; /**< user uid */ 34 uid_t pw_uid; /**< user uid (always 0) */
35 gid_t pw_gid; /**< user gid (always O) */ 35 gid_t pw_gid; /**< user gid (always 0) */
36 time_t pw_change; /**< password change time (always 0) */ 36 time_t pw_change; /**< password change time (always 0) */
37 char *pw_class; /**< user access class (always @c NULL) */ 37 char *pw_class; /**< user access class (always @c NULL) */
38 char *pw_gecos; /**< Honeywell login info */ 38 char *pw_gecos; /**< Honeywell login info */
39 char *pw_dir; /**< home directory */ 39 char *pw_dir; /**< home directory */
40 char *pw_shell; /**< default shell */ 40 char *pw_shell; /**< default shell */
41 time_t pw_expire; /**< account expiration (always O) */ 41 time_t pw_expire; /**< account expiration (always 0) */
42 int pw_fields; /**< internal: fields filled in (always O) */ 42 int pw_fields; /**< internal: fields filled in (always 0) */
43}; 43};
44 44
45/** 45/**
46 * @brief Return a passwd structure. 46 * @brief Return a passwd structure.
47 * 47 *
48 * @param uid The User ID 48 * @param n The name of the user.
49 * @return A stacally allocated passwd structure.
50 *
51 * This function fills a static buffer @ref passwd with the user name @p n.
52 *
53 * Conformity: None.
54 *
55 * Supported OS: Windows XP.
56 */
57EAPI struct passwd *getpwnam(const char *n);
58
59/**
60 * @brief Return a passwd structure.
61 *
62 * @param uid The User ID.
49 * @return A stacally allocated passwd structure. 63 * @return A stacally allocated passwd structure.
50 * 64 *
51 * This function fills a static buffer @ref passwd with @p uid and the 65 * This function fills a static buffer @ref passwd with @p uid and the
@@ -53,7 +67,7 @@ struct passwd {
53 * 67 *
54 * Conformity: None. 68 * Conformity: None.
55 * 69 *
56 * Supported OS: Windows XP, CE. 70 * Supported OS: Windows XP.
57 */ 71 */
58EAPI struct passwd *getpwuid (uid_t uid); 72EAPI struct passwd *getpwuid (uid_t uid);
59 73