aboutsummaryrefslogtreecommitdiff
path: root/include/pwd.h
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-27 08:24:39 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-27 08:24:39 +0000
commit291ba71b7972a0cb09f66510b171c7a4ce6bce36 (patch)
treeecb05ce51890c2cf84ad036543a972ac812320c3 /include/pwd.h
parent855b936df80965a68c834ed7a494e4d5cc1cc1e1 (diff)
downloadbusybox-w32-291ba71b7972a0cb09f66510b171c7a4ce6bce36.tar.gz
busybox-w32-291ba71b7972a0cb09f66510b171c7a4ce6bce36.tar.bz2
busybox-w32-291ba71b7972a0cb09f66510b171c7a4ce6bce36.zip
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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/pwd.h')
-rw-r--r--include/pwd.h29
1 files changed, 9 insertions, 20 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 82743f5ad..e603a96e3 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -5,17 +5,6 @@
5#include <pwd.h> 5#include <pwd.h>
6#else 6#else
7 7
8#define bb_setpwent setpwent
9#define bb_endpwent endpwent
10#define bb_getpwent getpwent
11#define bb_putpwent putpwent
12#define bb_getpw getpw
13#define bb_fgetpwent fgetpwent
14#define bb_getpwuid getpwuid
15#define bb_getpwnam getpwnam
16#define __bb_getpwent __bb_getpwent
17
18
19#include <sys/types.h> 8#include <sys/types.h>
20#include <features.h> 9#include <features.h>
21#include <stdio.h> 10#include <stdio.h>
@@ -32,19 +21,19 @@ struct passwd
32 char *pw_shell; /* Shell program. */ 21 char *pw_shell; /* Shell program. */
33}; 22};
34 23
35extern void bb_setpwent __P ((void)); 24extern void setpwent __P ((void));
36extern void bb_endpwent __P ((void)); 25extern void endpwent __P ((void));
37extern struct passwd * bb_getpwent __P ((void)); 26extern struct passwd * getpwent __P ((void));
38 27
39extern int bb_putpwent __P ((__const struct passwd * __p, FILE * __f)); 28extern int putpwent __P ((__const struct passwd * __p, FILE * __f));
40extern int bb_getpw __P ((uid_t uid, char *buf)); 29extern int getpw __P ((uid_t uid, char *buf));
41 30
42extern struct passwd * bb_fgetpwent __P ((FILE * file)); 31extern struct passwd * fgetpwent __P ((FILE * file));
43 32
44extern struct passwd * bb_getpwuid __P ((__const uid_t)); 33extern struct passwd * getpwuid __P ((__const uid_t));
45extern struct passwd * bb_getpwnam __P ((__const char *)); 34extern struct passwd * getpwnam __P ((__const char *));
46 35
47extern struct passwd * __bb_getpwent __P ((__const int passwd_fd)); 36extern struct passwd * __getpwent __P ((__const int passwd_fd));
48 37
49#endif /* USE_SYSTEM_PWD_GRP */ 38#endif /* USE_SYSTEM_PWD_GRP */
50#endif /* __BB_PWD_H */ 39#endif /* __BB_PWD_H */