chiark / gitweb /
[PATCH] improve klibc fixup integration
[elogind.git] / klibc_fixups / pwd.h
1 #ifdef __KLIBC__
2
3 #ifndef _PWD_H
4 #define _PWD_H
5
6 struct passwd {
7         char    *pw_name;       /* user name */
8         char    *pw_passwd;     /* user password */
9         uid_t   pw_uid;         /* user id */
10         gid_t   pw_gid;         /* group id */
11         char    *pw_gecos;      /* real name */
12         char    *pw_dir;        /* home directory */
13         char    *pw_shell;      /* shell program */
14 };
15
16 struct group {
17         char    *gr_name;       /* group name */
18         char    *gr_passwd;     /* group password */
19         gid_t   gr_gid;         /* group id */
20         char    **gr_mem;       /* group members */
21 };
22
23 struct passwd *getpwnam(const char *name);
24 struct group *getgrnam(const char *name);
25
26 #endif /* _PWD_H */
27 #endif /* __KLIBC__ */