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 /procps | |
parent | ab050f5522e843bf08994685134adaaac7ffd392 (diff) | |
download | busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.gz busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.bz2 busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.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
Diffstat (limited to 'procps')
-rw-r--r-- | procps/free.c | 1 | ||||
-rw-r--r-- | procps/kill.c | 1 | ||||
-rw-r--r-- | procps/ps.c | 2 | ||||
-rw-r--r-- | procps/renice.c | 1 | ||||
-rw-r--r-- | procps/uptime.c | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/procps/free.c b/procps/free.c index f2e746e39..4dd99ab49 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | #include <stdlib.h> | ||
27 | 28 | ||
28 | extern int free_main(int argc, char **argv) | 29 | extern int free_main(int argc, char **argv) |
29 | { | 30 | { |
diff --git a/procps/kill.c b/procps/kill.c index 19ca187a7..3eb829abf 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <unistd.h> | 28 | #include <unistd.h> |
29 | #include <signal.h> | 29 | #include <signal.h> |
30 | #include <ctype.h> | 30 | #include <ctype.h> |
31 | #include <string.h> | ||
31 | #include <unistd.h> | 32 | #include <unistd.h> |
32 | 33 | ||
33 | static const int KILL = 0; | 34 | static const int KILL = 0; |
diff --git a/procps/ps.c b/procps/ps.c index cb4c21e32..aac064c2a 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -30,11 +30,13 @@ | |||
30 | 30 | ||
31 | #include "busybox.h" | 31 | #include "busybox.h" |
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <stdlib.h> | ||
33 | #include <unistd.h> | 34 | #include <unistd.h> |
34 | #include <dirent.h> | 35 | #include <dirent.h> |
35 | #include <errno.h> | 36 | #include <errno.h> |
36 | #include <fcntl.h> | 37 | #include <fcntl.h> |
37 | #include <ctype.h> | 38 | #include <ctype.h> |
39 | #include <string.h> | ||
38 | #include <sys/ioctl.h> | 40 | #include <sys/ioctl.h> |
39 | #define BB_DECLARE_EXTERN | 41 | #define BB_DECLARE_EXTERN |
40 | #define bb_need_help | 42 | #define bb_need_help |
diff --git a/procps/renice.c b/procps/renice.c index 8f0618126..9d85ba0d0 100644 --- a/procps/renice.c +++ b/procps/renice.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <errno.h> | 25 | #include <errno.h> |
26 | #include <stdlib.h> | ||
26 | #include <sys/time.h> | 27 | #include <sys/time.h> |
27 | #include <sys/resource.h> | 28 | #include <sys/resource.h> |
28 | 29 | ||
diff --git a/procps/uptime.c b/procps/uptime.c index b827f7e67..4463b94ef 100644 --- a/procps/uptime.c +++ b/procps/uptime.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <time.h> | 33 | #include <time.h> |
34 | #include <errno.h> | 34 | #include <errno.h> |
35 | #include <stdlib.h> | ||
35 | 36 | ||
36 | static const int FSHIFT = 16; /* nr of bits of precision */ | 37 | static const int FSHIFT = 16; /* nr of bits of precision */ |
37 | #define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */ | 38 | #define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */ |