summaryrefslogtreecommitdiff
path: root/include/grp_.h
diff options
context:
space:
mode:
authorEric Andersen2002-07-03 23:19:26 +0000
committerEric Andersen2002-07-03 23:19:26 +0000
commit887ca79f04cdf45874ed783c1fb9b950bf25a246 (patch)
tree25f08b2b2ea8b333aac91b6b75876f82a4cfef6f /include/grp_.h
parent360e2549544b813dd805361d04744c5a4a630bb8 (diff)
downloadbusybox-887ca79f04cdf45874ed783c1fb9b950bf25a246.zip
busybox-887ca79f04cdf45874ed783c1fb9b950bf25a246.tar.gz
Scrub pwd.h and grp.h handling so we don't have to play any
silly games. -Erik
Diffstat (limited to 'include/grp_.h')
-rw-r--r--include/grp_.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/grp_.h b/include/grp_.h
new file mode 100644
index 0000000..0ce274c
--- /dev/null
+++ b/include/grp_.h
@@ -0,0 +1,39 @@
+#ifndef __CONFIG_GRP_H
+#define __CONFIG_GRP_H
+
+#if !defined CONFIG_USE_BB_PWD_GRP
+#include <grp.h>
+
+#else
+
+#include <sys/types.h>
+#include <features.h>
+#include <stdio.h>
+
+
+/* The group structure */
+struct group
+{
+ char *gr_name; /* Group name. */
+ char *gr_passwd; /* Password. */
+ gid_t gr_gid; /* Group ID. */
+ char **gr_mem; /* Member list. */
+};
+
+extern void setgrent __P ((void));
+extern void endgrent __P ((void));
+extern struct group * getgrent __P ((void));
+
+extern struct group * getgrgid __P ((__const gid_t gid));
+extern struct group * getgrnam __P ((__const char * name));
+
+extern struct group * fgetgrent __P ((FILE * file));
+
+extern int setgroups __P ((size_t n, __const gid_t * groups));
+extern int initgroups __P ((__const char * user, gid_t gid));
+
+extern struct group * __getgrent __P ((int grp_fd));
+
+#endif /* USE_SYSTEM_PWD_GRP */
+#endif /* __CONFIG_GRP_H */
+