mirror of
https://github.com/sheumann/hush.git
synced 2024-12-30 20:29:21 +00:00
ed3ef50c23
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
38 lines
873 B
C
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 */
|
|
|