hush/include/grp.h
Eric Andersen ed3ef50c23 Fix header file usage -- there were many unnecessary header files included in
busybox.h which slowed compiles.  I left only what was needed and then fixed up
all the apps to include their own header files.  I also fixed naming for pwd.h
and grp.h functions.  Tested to compile and run with libc5, glibc, and uClibc.
 -Erik
2001-01-27 08:24:39 +00:00

38 lines
873 B
C

#ifndef __BB_GRP_H
#define __BB_GRP_H
#if defined USE_SYSTEM_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 /* __BB_GRP_H */