diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/free.c | 5 | ||||
-rw-r--r-- | procps/pidof.c | 11 | ||||
-rw-r--r-- | procps/ps.c | 15 | ||||
-rw-r--r-- | procps/uptime.c | 6 |
4 files changed, 4 insertions, 33 deletions
diff --git a/procps/free.c b/procps/free.c index 7d8ffa893..84432e0d1 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -4,15 +4,12 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 7 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | /* getopt not needed */ | 10 | /* getopt not needed */ |
11 | 11 | ||
12 | #include "busybox.h" | 12 | #include "busybox.h" |
13 | #include <stdio.h> | ||
14 | #include <errno.h> | ||
15 | #include <stdlib.h> | ||
16 | 13 | ||
17 | int free_main(int argc, char **argv) | 14 | int free_main(int argc, char **argv) |
18 | { | 15 | { |
diff --git a/procps/pidof.c b/procps/pidof.c index 5b28f3b86..c686245ea 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -4,19 +4,10 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 7 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "busybox.h" | 10 | #include "busybox.h" |
11 | #include <stdio.h> | ||
12 | #include <stdlib.h> | ||
13 | #include <errno.h> | ||
14 | #include <unistd.h> | ||
15 | #include <signal.h> | ||
16 | #include <ctype.h> | ||
17 | #include <string.h> | ||
18 | #include <sys/types.h> | ||
19 | #include <unistd.h> | ||
20 | 11 | ||
21 | #if ENABLE_FEATURE_PIDOF_SINGLE | 12 | #if ENABLE_FEATURE_PIDOF_SINGLE |
22 | #define _SINGLE_COMPL(a) a | 13 | #define _SINGLE_COMPL(a) a |
diff --git a/procps/ps.c b/procps/ps.c index e4accba3d..62571493d 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -4,23 +4,10 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 7 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "busybox.h" | 10 | #include "busybox.h" |
11 | #include <stdio.h> | ||
12 | #include <stdlib.h> | ||
13 | #include <unistd.h> | ||
14 | #include <dirent.h> | ||
15 | #include <errno.h> | ||
16 | #include <fcntl.h> | ||
17 | #include <ctype.h> | ||
18 | #include <string.h> | ||
19 | #include <termios.h> | ||
20 | #include <sys/ioctl.h> | ||
21 | #if ENABLE_SELINUX | ||
22 | #include <selinux/selinux.h> /* for is_selinux_enabled() */ | ||
23 | #endif | ||
24 | 11 | ||
25 | int ps_main(int argc, char **argv) | 12 | int ps_main(int argc, char **argv) |
26 | { | 13 | { |
diff --git a/procps/uptime.c b/procps/uptime.c index c1e7af3a5..37c9d449a 100644 --- a/procps/uptime.c +++ b/procps/uptime.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 7 | * Licensed under the GPL version 2, see the file LICENSE in this tarball. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | /* This version of uptime doesn't display the number of users on the system, | 10 | /* This version of uptime doesn't display the number of users on the system, |
@@ -16,10 +16,6 @@ | |||
16 | /* getopt not needed */ | 16 | /* getopt not needed */ |
17 | 17 | ||
18 | #include "busybox.h" | 18 | #include "busybox.h" |
19 | #include <stdio.h> | ||
20 | #include <time.h> | ||
21 | #include <errno.h> | ||
22 | #include <stdlib.h> | ||
23 | 19 | ||
24 | #ifndef FSHIFT | 20 | #ifndef FSHIFT |
25 | # define FSHIFT 16 /* nr of bits of precision */ | 21 | # define FSHIFT 16 /* nr of bits of precision */ |