diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/free.c | 1 | ||||
-rw-r--r-- | procps/fuser.c | 1 | ||||
-rw-r--r-- | procps/kill.c | 1 | ||||
-rw-r--r-- | procps/pidof.c | 1 | ||||
-rw-r--r-- | procps/ps.c | 2 | ||||
-rw-r--r-- | procps/renice.c | 1 | ||||
-rw-r--r-- | procps/sysctl.c | 1 | ||||
-rw-r--r-- | procps/top.c | 1 | ||||
-rw-r--r-- | procps/uptime.c | 1 |
9 files changed, 10 insertions, 0 deletions
diff --git a/procps/free.c b/procps/free.c index 84432e0d1..860f57347 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include "busybox.h" | 12 | #include "busybox.h" |
13 | 13 | ||
14 | int free_main(int argc, char **argv); | ||
14 | int free_main(int argc, char **argv) | 15 | int free_main(int argc, char **argv) |
15 | { | 16 | { |
16 | struct sysinfo info; | 17 | struct sysinfo info; |
diff --git a/procps/fuser.c b/procps/fuser.c index 9752af74e..c91ae217b 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -301,6 +301,7 @@ static int fuser_kill_pid_list(pid_list *plist, int sig) | |||
301 | return success; | 301 | return success; |
302 | } | 302 | } |
303 | 303 | ||
304 | int fuser_main(int argc, char **argv); | ||
304 | int fuser_main(int argc, char **argv) | 305 | int fuser_main(int argc, char **argv) |
305 | { | 306 | { |
306 | int port, i, optn; | 307 | int port, i, optn; |
diff --git a/procps/kill.c b/procps/kill.c index 5b167326f..9a6e93665 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include "busybox.h" | 11 | #include "busybox.h" |
12 | 12 | ||
13 | int kill_main(int argc, char **argv); | ||
13 | int kill_main(int argc, char **argv) | 14 | int kill_main(int argc, char **argv) |
14 | { | 15 | { |
15 | char *arg; | 16 | char *arg; |
diff --git a/procps/pidof.c b/procps/pidof.c index 1d9718945..ea2520a4f 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -16,6 +16,7 @@ enum { | |||
16 | OPT_OMIT = USE_FEATURE_PIDOF_OMIT( (1<<OPTBIT_OMIT )) + 0, | 16 | OPT_OMIT = USE_FEATURE_PIDOF_OMIT( (1<<OPTBIT_OMIT )) + 0, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | int pidof_main(int argc, char **argv); | ||
19 | int pidof_main(int argc, char **argv) | 20 | int pidof_main(int argc, char **argv) |
20 | { | 21 | { |
21 | unsigned first = 1; | 22 | unsigned first = 1; |
diff --git a/procps/ps.c b/procps/ps.c index acd9a3065..f3d11b72c 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -233,6 +233,7 @@ static void format_process(const procps_status_t *ps) | |||
233 | /* Cannot be const: parse_o() will choke */ | 233 | /* Cannot be const: parse_o() will choke */ |
234 | static char default_o[] = "pid,user" /* TODO: ,vsz,stat */ ",args"; | 234 | static char default_o[] = "pid,user" /* TODO: ,vsz,stat */ ",args"; |
235 | 235 | ||
236 | int ps_main(int argc, char **argv); | ||
236 | int ps_main(int argc, char **argv) | 237 | int ps_main(int argc, char **argv) |
237 | { | 238 | { |
238 | procps_status_t *p; | 239 | procps_status_t *p; |
@@ -280,6 +281,7 @@ int ps_main(int argc, char **argv) | |||
280 | #else /* !ENABLE_DESKTOP */ | 281 | #else /* !ENABLE_DESKTOP */ |
281 | 282 | ||
282 | 283 | ||
284 | int ps_main(int argc, char **argv); | ||
283 | int ps_main(int argc, char **argv) | 285 | int ps_main(int argc, char **argv) |
284 | { | 286 | { |
285 | procps_status_t *p = NULL; | 287 | procps_status_t *p = NULL; |
diff --git a/procps/renice.c b/procps/renice.c index 08e0dc264..2964e20ea 100644 --- a/procps/renice.c +++ b/procps/renice.c | |||
@@ -26,6 +26,7 @@ void BUG_bad_PRIO_PROCESS(void); | |||
26 | void BUG_bad_PRIO_PGRP(void); | 26 | void BUG_bad_PRIO_PGRP(void); |
27 | void BUG_bad_PRIO_USER(void); | 27 | void BUG_bad_PRIO_USER(void); |
28 | 28 | ||
29 | int renice_main(int argc, char **argv); | ||
29 | int renice_main(int argc, char **argv) | 30 | int renice_main(int argc, char **argv) |
30 | { | 31 | { |
31 | static const char Xetpriority_msg[] = "%cetpriority"; | 32 | static const char Xetpriority_msg[] = "%cetpriority"; |
diff --git a/procps/sysctl.c b/procps/sysctl.c index 49754489b..b5a01894f 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -56,6 +56,7 @@ static void dwrite_str(int fd, const char *buf) | |||
56 | /* | 56 | /* |
57 | * sysctl_main()... | 57 | * sysctl_main()... |
58 | */ | 58 | */ |
59 | int sysctl_main(int argc, char **argv); | ||
59 | int sysctl_main(int argc, char **argv) | 60 | int sysctl_main(int argc, char **argv) |
60 | { | 61 | { |
61 | int retval = 0; | 62 | int retval = 0; |
diff --git a/procps/top.c b/procps/top.c index 712544318..2681f9748 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -411,6 +411,7 @@ static void sig_catcher(int sig ATTRIBUTE_UNUSED) | |||
411 | #endif /* FEATURE_USE_TERMIOS */ | 411 | #endif /* FEATURE_USE_TERMIOS */ |
412 | 412 | ||
413 | 413 | ||
414 | int top_main(int argc, char **argv); | ||
414 | int top_main(int argc, char **argv) | 415 | int top_main(int argc, char **argv) |
415 | { | 416 | { |
416 | int count, lines, col; | 417 | int count, lines, col; |
diff --git a/procps/uptime.c b/procps/uptime.c index 37c9d449a..3573ffe73 100644 --- a/procps/uptime.c +++ b/procps/uptime.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) | 25 | #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) |
26 | 26 | ||
27 | 27 | ||
28 | int uptime_main(int argc, char **argv); | ||
28 | int uptime_main(int argc, char **argv) | 29 | int uptime_main(int argc, char **argv) |
29 | { | 30 | { |
30 | int updays, uphours, upminutes; | 31 | int updays, uphours, upminutes; |