diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/free.c | 2 | ||||
-rw-r--r-- | procps/fuser.c | 2 | ||||
-rw-r--r-- | procps/kill.c | 2 | ||||
-rw-r--r-- | procps/nmeter.c | 2 | ||||
-rw-r--r-- | procps/pgrep.c | 2 | ||||
-rw-r--r-- | procps/pidof.c | 2 | ||||
-rw-r--r-- | procps/ps.c | 4 | ||||
-rw-r--r-- | procps/renice.c | 2 | ||||
-rw-r--r-- | procps/sysctl.c | 2 | ||||
-rw-r--r-- | procps/top.c | 2 | ||||
-rw-r--r-- | procps/uptime.c | 2 | ||||
-rw-r--r-- | procps/watch.c | 2 |
12 files changed, 13 insertions, 13 deletions
diff --git a/procps/free.c b/procps/free.c index 42193fdec..e76dd21a5 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include "libbb.h" | 12 | #include "libbb.h" |
13 | 13 | ||
14 | int free_main(int argc, char **argv); | 14 | int free_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int free_main(int argc, char **argv) | 15 | int free_main(int argc, char **argv) |
16 | { | 16 | { |
17 | struct sysinfo info; | 17 | struct sysinfo info; |
diff --git a/procps/fuser.c b/procps/fuser.c index 60c10956b..36d634d91 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -316,7 +316,7 @@ static int fuser_kill_pid_list(pid_list *plist, int sig) | |||
316 | return success; | 316 | return success; |
317 | } | 317 | } |
318 | 318 | ||
319 | int fuser_main(int argc, char **argv); | 319 | int fuser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
320 | int fuser_main(int argc, char **argv) | 320 | int fuser_main(int argc, char **argv) |
321 | { | 321 | { |
322 | /*static -- huh???*/ int opt = 0; /* FUSER_OPT_ */ | 322 | /*static -- huh???*/ int opt = 0; /* FUSER_OPT_ */ |
diff --git a/procps/kill.c b/procps/kill.c index 323ee7bf4..0c7c1608f 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -24,7 +24,7 @@ | |||
24 | * This is needed to avoid collision with kill -9 ... syntax | 24 | * This is needed to avoid collision with kill -9 ... syntax |
25 | */ | 25 | */ |
26 | 26 | ||
27 | int kill_main(int argc, char **argv); | 27 | int kill_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
28 | int kill_main(int argc, char **argv) | 28 | int kill_main(int argc, char **argv) |
29 | { | 29 | { |
30 | char *arg; | 30 | char *arg; |
diff --git a/procps/nmeter.c b/procps/nmeter.c index 127a3d1c1..b846ee5b6 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c | |||
@@ -770,7 +770,7 @@ static init_func *const init_functions[] = { | |||
770 | init_cr | 770 | init_cr |
771 | }; | 771 | }; |
772 | 772 | ||
773 | int nmeter_main(int argc, char **argv); | 773 | int nmeter_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
774 | int nmeter_main(int argc, char **argv) | 774 | int nmeter_main(int argc, char **argv) |
775 | { | 775 | { |
776 | char buf[32]; | 776 | char buf[32]; |
diff --git a/procps/pgrep.c b/procps/pgrep.c index c5747a163..f5d4cfcc1 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c | |||
@@ -44,7 +44,7 @@ static void act(unsigned pid, char *cmd, int signo, unsigned opt) | |||
44 | kill(pid, signo); | 44 | kill(pid, signo); |
45 | } | 45 | } |
46 | 46 | ||
47 | int pgrep_main(int argc, char **argv); | 47 | int pgrep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
48 | int pgrep_main(int argc, char **argv) | 48 | int pgrep_main(int argc, char **argv) |
49 | { | 49 | { |
50 | unsigned pid = getpid(); | 50 | unsigned pid = getpid(); |
diff --git a/procps/pidof.c b/procps/pidof.c index 962945253..f29561789 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -16,7 +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) MAIN_EXTERNALLY_VISIBLE; |
20 | int pidof_main(int argc, char **argv) | 20 | int pidof_main(int argc, char **argv) |
21 | { | 21 | { |
22 | unsigned first = 1; | 22 | unsigned first = 1; |
diff --git a/procps/ps.c b/procps/ps.c index f5c801d20..08922ebb6 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -278,7 +278,7 @@ static void format_process(const procps_status_t *ps) | |||
278 | printf("%.*s\n", terminal_width, buffer); | 278 | printf("%.*s\n", terminal_width, buffer); |
279 | } | 279 | } |
280 | 280 | ||
281 | int ps_main(int argc, char **argv); | 281 | int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
282 | int ps_main(int argc, char **argv) | 282 | int ps_main(int argc, char **argv) |
283 | { | 283 | { |
284 | procps_status_t *p; | 284 | procps_status_t *p; |
@@ -340,7 +340,7 @@ int ps_main(int argc, char **argv) | |||
340 | #else /* !ENABLE_DESKTOP */ | 340 | #else /* !ENABLE_DESKTOP */ |
341 | 341 | ||
342 | 342 | ||
343 | int ps_main(int argc, char **argv); | 343 | int ps_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
344 | int ps_main(int argc, char **argv) | 344 | int ps_main(int argc, char **argv) |
345 | { | 345 | { |
346 | procps_status_t *p = NULL; | 346 | procps_status_t *p = NULL; |
diff --git a/procps/renice.c b/procps/renice.c index b2a9ed72e..ab0d3a1c4 100644 --- a/procps/renice.c +++ b/procps/renice.c | |||
@@ -26,7 +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) MAIN_EXTERNALLY_VISIBLE; |
30 | int renice_main(int argc, char **argv) | 30 | int renice_main(int argc, char **argv) |
31 | { | 31 | { |
32 | static const char Xetpriority_msg[] ALIGN1 = "%cetpriority"; | 32 | static const char Xetpriority_msg[] ALIGN1 = "%cetpriority"; |
diff --git a/procps/sysctl.c b/procps/sysctl.c index 5100f57e7..a84f9aef9 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -59,7 +59,7 @@ static void dwrite_str(int fd, const char *buf) | |||
59 | /* | 59 | /* |
60 | * sysctl_main()... | 60 | * sysctl_main()... |
61 | */ | 61 | */ |
62 | int sysctl_main(int argc, char **argv); | 62 | int sysctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
63 | int sysctl_main(int argc, char **argv) | 63 | int sysctl_main(int argc, char **argv) |
64 | { | 64 | { |
65 | int retval = 0; | 65 | int retval = 0; |
diff --git a/procps/top.c b/procps/top.c index 1b8c18516..7f1c83fc1 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -782,7 +782,7 @@ enum { | |||
782 | | PSSCAN_COMM, | 782 | | PSSCAN_COMM, |
783 | }; | 783 | }; |
784 | 784 | ||
785 | int top_main(int argc, char **argv); | 785 | int top_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
786 | int top_main(int argc, char **argv) | 786 | int top_main(int argc, char **argv) |
787 | { | 787 | { |
788 | int count, lines, col; | 788 | int count, lines, col; |
diff --git a/procps/uptime.c b/procps/uptime.c index ee0657e1b..07e8d607d 100644 --- a/procps/uptime.c +++ b/procps/uptime.c | |||
@@ -25,7 +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) MAIN_EXTERNALLY_VISIBLE; |
29 | int uptime_main(int argc, char **argv) | 29 | int uptime_main(int argc, char **argv) |
30 | { | 30 | { |
31 | int updays, uphours, upminutes; | 31 | int updays, uphours, upminutes; |
diff --git a/procps/watch.c b/procps/watch.c index 3d18105bf..76d2a87e9 100644 --- a/procps/watch.c +++ b/procps/watch.c | |||
@@ -23,7 +23,7 @@ | |||
23 | // | 23 | // |
24 | // (procps 3.x and procps 2.x are forks, not newer/older versions of the same) | 24 | // (procps 3.x and procps 2.x are forks, not newer/older versions of the same) |
25 | 25 | ||
26 | int watch_main(int argc, char **argv); | 26 | int watch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
27 | int watch_main(int argc, char **argv) | 27 | int watch_main(int argc, char **argv) |
28 | { | 28 | { |
29 | unsigned opt; | 29 | unsigned opt; |