summaryrefslogtreecommitdiff
path: root/klibc_fixups/pwd.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-20 11:59:11 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 22:06:44 -0700
commitf8c1ccde6aaf08c858616c9a8a83c06d609f52f5 (patch)
tree84272b3304984da52c70480f8c746057f965b216 /klibc_fixups/pwd.h
parent5cab7caa2a767b16211c15f0051a2e21a96ebfd9 (diff)
[PATCH] improve klibc fixup integration
Diffstat (limited to 'klibc_fixups/pwd.h')
-rw-r--r--klibc_fixups/pwd.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/klibc_fixups/pwd.h b/klibc_fixups/pwd.h
new file mode 100644
index 0000000000..f5de6c50b8
--- /dev/null
+++ b/klibc_fixups/pwd.h
@@ -0,0 +1,27 @@
+#ifdef __KLIBC__
+
+#ifndef _PWD_H
+#define _PWD_H
+
+struct passwd {
+ char *pw_name; /* user name */
+ char *pw_passwd; /* user password */
+ uid_t pw_uid; /* user id */
+ gid_t pw_gid; /* group id */
+ char *pw_gecos; /* real name */
+ char *pw_dir; /* home directory */
+ char *pw_shell; /* shell program */
+};
+
+struct group {
+ char *gr_name; /* group name */
+ char *gr_passwd; /* group password */
+ gid_t gr_gid; /* group id */
+ char **gr_mem; /* group members */
+};
+
+struct passwd *getpwnam(const char *name);
+struct group *getgrnam(const char *name);
+
+#endif /* _PWD_H */
+#endif /* __KLIBC__ */