diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-27 08:24:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-27 08:24:39 +0000 |
commit | ed3ef50c233ffb1b50ea0e7382a8e60b86491009 (patch) | |
tree | ecb05ce51890c2cf84ad036543a972ac812320c3 /include/grp.h | |
parent | ab050f5522e843bf08994685134adaaac7ffd392 (diff) |
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
Diffstat (limited to 'include/grp.h')
-rw-r--r-- | include/grp.h | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/include/grp.h b/include/grp.h index f27c466fd..87d4115ce 100644 --- a/include/grp.h +++ b/include/grp.h @@ -5,16 +5,6 @@ #include <grp.h> #else -#define bb_setgrent setgrent -#define bb_endgrent endgrent -#define bb_getgrent getgrent -#define bb_getgrgid getgrgid -#define bb_getgrnam getgrnam -#define bb_fgetgrent fgetgrent -#define bb_setgroups setgroups -#define bb_initgroups initgroups -#define __bb_getgrent __getgrent - #include <sys/types.h> #include <features.h> #include <stdio.h> @@ -28,19 +18,19 @@ struct group char **gr_mem; /* Member list. */ }; -extern void bb_setgrent __P ((void)); -extern void bb_endgrent __P ((void)); -extern struct group * bb_getgrent __P ((void)); +extern void setgrent __P ((void)); +extern void endgrent __P ((void)); +extern struct group * getgrent __P ((void)); -extern struct group * bb_getgrgid __P ((__const gid_t gid)); -extern struct group * bb_getgrnam __P ((__const char * name)); +extern struct group * getgrgid __P ((__const gid_t gid)); +extern struct group * getgrnam __P ((__const char * name)); -extern struct group * bb_fgetgrent __P ((FILE * file)); +extern struct group * fgetgrent __P ((FILE * file)); -extern int bb_setgroups __P ((size_t n, __const gid_t * groups)); -extern int bb_initgroups __P ((__const char * user, gid_t gid)); +extern int setgroups __P ((size_t n, __const gid_t * groups)); +extern int initgroups __P ((__const char * user, gid_t gid)); -extern struct group * __bb_getgrent __P ((int grp_fd)); +extern struct group * __getgrent __P ((int grp_fd)); #endif /* USE_SYSTEM_PWD_GRP */ #endif /* __BB_GRP_H */ |