diff options
Diffstat (limited to 'coreutils')
71 files changed, 73 insertions, 73 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index ec1f85bef..d536a1bf3 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | /* This is a NOFORK applet. Be very careful! */ | 25 | /* This is a NOFORK applet. Be very careful! */ |
26 | 26 | ||
27 | int basename_main(int argc, char **argv); | 27 | int basename_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
28 | int basename_main(int argc, char **argv) | 28 | int basename_main(int argc, char **argv) |
29 | { | 29 | { |
30 | size_t m, n; | 30 | size_t m, n; |
diff --git a/coreutils/cal.c b/coreutils/cal.c index 3116e1ebe..8a08a9ae7 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -75,7 +75,7 @@ static char *build_row(char *p, unsigned *dp); | |||
75 | #define J_WEEK_LEN (WEEK_LEN + 7) | 75 | #define J_WEEK_LEN (WEEK_LEN + 7) |
76 | #define HEAD_SEP 2 /* spaces between day headings */ | 76 | #define HEAD_SEP 2 /* spaces between day headings */ |
77 | 77 | ||
78 | int cal_main(int argc, char **argv); | 78 | int cal_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
79 | int cal_main(int argc, char **argv) | 79 | int cal_main(int argc, char **argv) |
80 | { | 80 | { |
81 | struct tm *local_time; | 81 | struct tm *local_time; |
diff --git a/coreutils/cat.c b/coreutils/cat.c index cd5277819..a1db4cd45 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -43,7 +43,7 @@ int bb_cat(char **argv) | |||
43 | return retval; | 43 | return retval; |
44 | } | 44 | } |
45 | 45 | ||
46 | int cat_main(int argc, char **argv); | 46 | int cat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
47 | int cat_main(int argc, char **argv) | 47 | int cat_main(int argc, char **argv) |
48 | { | 48 | { |
49 | getopt32(argv, "u"); | 49 | getopt32(argv, "u"); |
diff --git a/coreutils/catv.c b/coreutils/catv.c index 5d5a5500f..5f5f1bf86 100644 --- a/coreutils/catv.c +++ b/coreutils/catv.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int catv_main(int argc, char **argv); | 15 | int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int catv_main(int argc, char **argv) | 16 | int catv_main(int argc, char **argv) |
17 | { | 17 | { |
18 | int retval = EXIT_SUCCESS; | 18 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 90a1cfe2b..7f3904805 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c | |||
@@ -16,7 +16,7 @@ | |||
16 | /* This is a NOEXEC applet. Be very careful! */ | 16 | /* This is a NOEXEC applet. Be very careful! */ |
17 | 17 | ||
18 | 18 | ||
19 | int chgrp_main(int argc, char **argv); | 19 | int chgrp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
20 | int chgrp_main(int argc, char **argv) | 20 | int chgrp_main(int argc, char **argv) |
21 | { | 21 | { |
22 | /* "chgrp [opts] abc file(s)" == "chown [opts] :abc file(s)" */ | 22 | /* "chgrp [opts] abc file(s)" == "chown [opts] :abc file(s)" */ |
diff --git a/coreutils/chmod.c b/coreutils/chmod.c index dd7b78412..a58e4f8e1 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c | |||
@@ -67,7 +67,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* param, i | |||
67 | return FALSE; | 67 | return FALSE; |
68 | } | 68 | } |
69 | 69 | ||
70 | int chmod_main(int argc, char **argv); | 70 | int chmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
71 | int chmod_main(int argc, char **argv) | 71 | int chmod_main(int argc, char **argv) |
72 | { | 72 | { |
73 | int retval = EXIT_SUCCESS; | 73 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/chown.c b/coreutils/chown.c index d974493b6..df3b77dac 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -61,7 +61,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, | |||
61 | return FALSE; | 61 | return FALSE; |
62 | } | 62 | } |
63 | 63 | ||
64 | int chown_main(int argc, char **argv); | 64 | int chown_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
65 | int chown_main(int argc, char **argv) | 65 | int chown_main(int argc, char **argv) |
66 | { | 66 | { |
67 | int retval = EXIT_SUCCESS; | 67 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index 192daa894..a3e70e925 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include "libbb.h" | 12 | #include "libbb.h" |
13 | 13 | ||
14 | int chroot_main(int argc, char **argv); | 14 | int chroot_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int chroot_main(int argc, char **argv) | 15 | int chroot_main(int argc, char **argv) |
16 | { | 16 | { |
17 | if (argc < 2) { | 17 | if (argc < 2) { |
diff --git a/coreutils/cksum.c b/coreutils/cksum.c index 987f5f32c..dd274afc2 100644 --- a/coreutils/cksum.c +++ b/coreutils/cksum.c | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | 10 | ||
11 | int cksum_main(int argc, char **argv); | 11 | int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
12 | int cksum_main(int argc, char **argv) | 12 | int cksum_main(int argc, char **argv) |
13 | { | 13 | { |
14 | uint32_t *crc32_table = crc32_filltable(NULL, 1); | 14 | uint32_t *crc32_table = crc32_filltable(NULL, 1); |
diff --git a/coreutils/comm.c b/coreutils/comm.c index a4ab14826..67088e06c 100644 --- a/coreutils/comm.c +++ b/coreutils/comm.c | |||
@@ -35,7 +35,7 @@ static void writeline(char *line, int class, int flags) | |||
35 | fputs(line, stdout); | 35 | fputs(line, stdout); |
36 | } | 36 | } |
37 | 37 | ||
38 | int comm_main(int argc, char **argv); | 38 | int comm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
39 | int comm_main(int argc, char **argv) | 39 | int comm_main(int argc, char **argv) |
40 | { | 40 | { |
41 | #define LINE_LEN 100 | 41 | #define LINE_LEN 100 |
diff --git a/coreutils/cp.c b/coreutils/cp.c index 046067f35..6cf1e21a1 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /* This is a NOEXEC applet. Be very careful! */ | 21 | /* This is a NOEXEC applet. Be very careful! */ |
22 | 22 | ||
23 | 23 | ||
24 | int cp_main(int argc, char **argv); | 24 | int cp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
25 | int cp_main(int argc, char **argv) | 25 | int cp_main(int argc, char **argv) |
26 | { | 26 | { |
27 | struct stat source_stat; | 27 | struct stat source_stat; |
diff --git a/coreutils/cut.c b/coreutils/cut.c index 1cf49c2af..257f3d649 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -165,7 +165,7 @@ static void cut_file(FILE * file) | |||
165 | 165 | ||
166 | static const char _op_on_field[] ALIGN1 = " only when operating on fields"; | 166 | static const char _op_on_field[] ALIGN1 = " only when operating on fields"; |
167 | 167 | ||
168 | int cut_main(int argc, char **argv); | 168 | int cut_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
169 | int cut_main(int argc, char **argv) | 169 | int cut_main(int argc, char **argv) |
170 | { | 170 | { |
171 | char *sopt, *ltok; | 171 | char *sopt, *ltok; |
diff --git a/coreutils/date.c b/coreutils/date.c index e33a9777d..a8e339333 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -38,7 +38,7 @@ static void maybe_set_utc(int opt) | |||
38 | putenv((char*)"TZ=UTC0"); | 38 | putenv((char*)"TZ=UTC0"); |
39 | } | 39 | } |
40 | 40 | ||
41 | int date_main(int argc, char **argv); | 41 | int date_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
42 | int date_main(int argc, char **argv) | 42 | int date_main(int argc, char **argv) |
43 | { | 43 | { |
44 | time_t tm; | 44 | time_t tm; |
diff --git a/coreutils/dd.c b/coreutils/dd.c index b9f5b4cba..fd4e7e8a2 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -73,7 +73,7 @@ static bool write_and_stats(int fd, const void *buf, size_t len, size_t obs, | |||
73 | #define XATOU_SFX xatoul_sfx | 73 | #define XATOU_SFX xatoul_sfx |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | int dd_main(int argc, char **argv); | 76 | int dd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
77 | int dd_main(int argc, char **argv) | 77 | int dd_main(int argc, char **argv) |
78 | { | 78 | { |
79 | enum { | 79 | enum { |
diff --git a/coreutils/df.c b/coreutils/df.c index 6fe8e2fba..ad6a4f370 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -29,7 +29,7 @@ static unsigned long kscale(unsigned long b, unsigned long bs) | |||
29 | } | 29 | } |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | int df_main(int argc, char **argv); | 32 | int df_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
33 | int df_main(int argc, char **argv) | 33 | int df_main(int argc, char **argv) |
34 | { | 34 | { |
35 | unsigned long blocks_used; | 35 | unsigned long blocks_used; |
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index fd2c381c8..c0c0925e5 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | /* This is a NOFORK applet. Be very careful! */ | 15 | /* This is a NOFORK applet. Be very careful! */ |
16 | 16 | ||
17 | int dirname_main(int argc, char **argv); | 17 | int dirname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int dirname_main(int argc, char **argv) | 18 | int dirname_main(int argc, char **argv) |
19 | { | 19 | { |
20 | if (argc != 2) { | 20 | if (argc != 2) { |
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 28110980a..295be2909 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
@@ -78,7 +78,7 @@ static int convert(char *fn, int conv_type) | |||
78 | return 0; | 78 | return 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | int dos2unix_main(int argc, char **argv); | 81 | int dos2unix_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
82 | int dos2unix_main(int argc, char **argv) | 82 | int dos2unix_main(int argc, char **argv) |
83 | { | 83 | { |
84 | int o, conv_type; | 84 | int o, conv_type; |
diff --git a/coreutils/du.c b/coreutils/du.c index 2697acf13..3941151e1 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -140,7 +140,7 @@ static unsigned long du(const char *filename) | |||
140 | return sum; | 140 | return sum; |
141 | } | 141 | } |
142 | 142 | ||
143 | int du_main(int argc, char **argv); | 143 | int du_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
144 | int du_main(int argc, char **argv) | 144 | int du_main(int argc, char **argv) |
145 | { | 145 | { |
146 | unsigned long total; | 146 | unsigned long total; |
diff --git a/coreutils/echo.c b/coreutils/echo.c index 851d2efb2..860853f02 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -119,8 +119,8 @@ int bb_echo(char **argv) | |||
119 | 119 | ||
120 | /* This is a NOFORK applet. Be very careful! */ | 120 | /* This is a NOFORK applet. Be very careful! */ |
121 | 121 | ||
122 | int echo_main(int argc, char** argv); | 122 | int echo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
123 | int echo_main(int argc, char** argv) | 123 | int echo_main(int argc, char **argv) |
124 | { | 124 | { |
125 | return bb_echo(argv); | 125 | return bb_echo(argv); |
126 | } | 126 | } |
diff --git a/coreutils/env.c b/coreutils/env.c index 5d0cd8256..b45cbcc7d 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -41,8 +41,8 @@ static const char env_longopts[] ALIGN1 = | |||
41 | ; | 41 | ; |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | int env_main(int argc, char** argv); | 44 | int env_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
45 | int env_main(int argc, char** argv) | 45 | int env_main(int argc, char **argv) |
46 | { | 46 | { |
47 | /* cleanenv was static - why? */ | 47 | /* cleanenv was static - why? */ |
48 | char *cleanenv[1]; | 48 | char *cleanenv[1]; |
diff --git a/coreutils/expand.c b/coreutils/expand.c index 0ef106dbf..96a74a336 100644 --- a/coreutils/expand.c +++ b/coreutils/expand.c | |||
@@ -125,7 +125,7 @@ static void unexpand(FILE *file, unsigned int tab_size, unsigned opt) | |||
125 | } | 125 | } |
126 | #endif | 126 | #endif |
127 | 127 | ||
128 | int expand_main(int argc, char **argv); | 128 | int expand_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
129 | int expand_main(int argc, char **argv) | 129 | int expand_main(int argc, char **argv) |
130 | { | 130 | { |
131 | /* Default 8 spaces for 1 tab */ | 131 | /* Default 8 spaces for 1 tab */ |
diff --git a/coreutils/expr.c b/coreutils/expr.c index c2d966966..959f5200c 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
@@ -483,7 +483,7 @@ static VALUE *eval(void) | |||
483 | return l; | 483 | return l; |
484 | } | 484 | } |
485 | 485 | ||
486 | int expr_main(int argc, char **argv); | 486 | int expr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
487 | int expr_main(int argc, char **argv) | 487 | int expr_main(int argc, char **argv) |
488 | { | 488 | { |
489 | VALUE *v; | 489 | VALUE *v; |
diff --git a/coreutils/false.c b/coreutils/false.c index 07cf9e83e..5beb58a28 100644 --- a/coreutils/false.c +++ b/coreutils/false.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | /* This is a NOFORK applet. Be very careful! */ | 15 | /* This is a NOFORK applet. Be very careful! */ |
16 | 16 | ||
17 | int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv); | 17 | int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv) | 18 | int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv) |
19 | { | 19 | { |
20 | return EXIT_FAILURE; | 20 | return EXIT_FAILURE; |
diff --git a/coreutils/fold.c b/coreutils/fold.c index bf4b19831..ed484edf0 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -38,7 +38,7 @@ static int adjust_column(int column, char c) | |||
38 | return column; | 38 | return column; |
39 | } | 39 | } |
40 | 40 | ||
41 | int fold_main(int argc, char **argv); | 41 | int fold_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
42 | int fold_main(int argc, char **argv) | 42 | int fold_main(int argc, char **argv) |
43 | { | 43 | { |
44 | char *line_out = NULL; | 44 | char *line_out = NULL; |
diff --git a/coreutils/head.c b/coreutils/head.c index af9e9f41e..629307719 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -31,7 +31,7 @@ static const struct suffix_mult head_suffixes[] = { | |||
31 | 31 | ||
32 | static const char header_fmt_str[] ALIGN1 = "\n==> %s <==\n"; | 32 | static const char header_fmt_str[] ALIGN1 = "\n==> %s <==\n"; |
33 | 33 | ||
34 | int head_main(int argc, char **argv); | 34 | int head_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
35 | int head_main(int argc, char **argv) | 35 | int head_main(int argc, char **argv) |
36 | { | 36 | { |
37 | unsigned long count = 10; | 37 | unsigned long count = 10; |
diff --git a/coreutils/hostid.c b/coreutils/hostid.c index 7d96651e7..433eccc45 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv); | 16 | int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) | 17 | int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) |
18 | { | 18 | { |
19 | if (argc > 1) { | 19 | if (argc > 1) { |
diff --git a/coreutils/id.c b/coreutils/id.c index f72a027fa..7dba80284 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -36,7 +36,7 @@ static int printf_full(unsigned int id, const char *arg, const char prefix) | |||
36 | return status; | 36 | return status; |
37 | } | 37 | } |
38 | 38 | ||
39 | int id_main(int argc, char **argv); | 39 | int id_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
40 | int id_main(int argc, char **argv) | 40 | int id_main(int argc, char **argv) |
41 | { | 41 | { |
42 | struct passwd *p; | 42 | struct passwd *p; |
diff --git a/coreutils/install.c b/coreutils/install.c index 516208474..4adcadb94 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -66,7 +66,7 @@ static void setdefaultfilecon(const char *path) | |||
66 | 66 | ||
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | int install_main(int argc, char **argv); | 69 | int install_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
70 | int install_main(int argc, char **argv) | 70 | int install_main(int argc, char **argv) |
71 | { | 71 | { |
72 | struct stat statbuf; | 72 | struct stat statbuf; |
diff --git a/coreutils/length.c b/coreutils/length.c index a310b3b2f..c7523a02a 100644 --- a/coreutils/length.c +++ b/coreutils/length.c | |||
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | /* This is a NOFORK applet. Be very careful! */ | 7 | /* This is a NOFORK applet. Be very careful! */ |
8 | 8 | ||
9 | int length_main(int argc, char **argv); | 9 | int length_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
10 | int length_main(int argc, char **argv) | 10 | int length_main(int argc, char **argv) |
11 | { | 11 | { |
12 | if ((argc != 2) || (**(++argv) == '-')) { | 12 | if ((argc != 2) || (**(++argv) == '-')) { |
diff --git a/coreutils/ln.c b/coreutils/ln.c index 658e32e94..eb7171959 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #define LN_BACKUP 8 | 22 | #define LN_BACKUP 8 |
23 | #define LN_SUFFIX 16 | 23 | #define LN_SUFFIX 16 |
24 | 24 | ||
25 | int ln_main(int argc, char **argv); | 25 | int ln_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
26 | int ln_main(int argc, char **argv) | 26 | int ln_main(int argc, char **argv) |
27 | { | 27 | { |
28 | int status = EXIT_SUCCESS; | 28 | int status = EXIT_SUCCESS; |
diff --git a/coreutils/logname.c b/coreutils/logname.c index 2e628bc14..09fd3960d 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | /* This is a NOFORK applet. Be very careful! */ | 25 | /* This is a NOFORK applet. Be very careful! */ |
26 | 26 | ||
27 | int logname_main(int argc, char ATTRIBUTE_UNUSED **argv); | 27 | int logname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
28 | int logname_main(int argc, char ATTRIBUTE_UNUSED **argv) | 28 | int logname_main(int argc, char ATTRIBUTE_UNUSED **argv) |
29 | { | 29 | { |
30 | char buf[128]; | 30 | char buf[128]; |
diff --git a/coreutils/ls.c b/coreutils/ls.c index 92a9a289d..dbf1c5ba6 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -783,7 +783,7 @@ static const unsigned opt_flags[] = { | |||
783 | /* THIS IS A "SAFE" APPLET, main() MAY BE CALLED INTERNALLY FROM SHELL */ | 783 | /* THIS IS A "SAFE" APPLET, main() MAY BE CALLED INTERNALLY FROM SHELL */ |
784 | /* BE CAREFUL! */ | 784 | /* BE CAREFUL! */ |
785 | 785 | ||
786 | int ls_main(int argc, char **argv); | 786 | int ls_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
787 | int ls_main(int argc, char **argv) | 787 | int ls_main(int argc, char **argv) |
788 | { | 788 | { |
789 | struct dnode **dnd; | 789 | struct dnode **dnd; |
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 7f8b08497..e94f2ceb1 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
@@ -77,7 +77,7 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo) | |||
77 | return hash_value; | 77 | return hash_value; |
78 | } | 78 | } |
79 | 79 | ||
80 | int md5_sha1_sum_main(int argc, char **argv); | 80 | int md5_sha1_sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
81 | int md5_sha1_sum_main(int argc, char **argv) | 81 | int md5_sha1_sum_main(int argc, char **argv) |
82 | { | 82 | { |
83 | int return_value = EXIT_SUCCESS; | 83 | int return_value = EXIT_SUCCESS; |
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index d1a4380ad..6bdf76d29 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c | |||
@@ -34,7 +34,7 @@ static const char mkdir_longopts[] ALIGN1 = | |||
34 | ; | 34 | ; |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | int mkdir_main(int argc, char **argv); | 37 | int mkdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
38 | int mkdir_main(int argc, char **argv) | 38 | int mkdir_main(int argc, char **argv) |
39 | { | 39 | { |
40 | mode_t mode = (mode_t)(-1); | 40 | mode_t mode = (mode_t)(-1); |
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index e66f81778..d298adae0 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | #include "libcoreutils/coreutils.h" | 14 | #include "libcoreutils/coreutils.h" |
15 | 15 | ||
16 | int mkfifo_main(int argc, char **argv); | 16 | int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int mkfifo_main(int argc, char **argv) | 17 | int mkfifo_main(int argc, char **argv) |
18 | { | 18 | { |
19 | mode_t mode; | 19 | mode_t mode; |
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index a876daaf1..ee539e387 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -17,7 +17,7 @@ | |||
17 | static const char modes_chars[] ALIGN1 = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 }; | 17 | static const char modes_chars[] ALIGN1 = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 }; |
18 | static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK }; | 18 | static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK }; |
19 | 19 | ||
20 | int mknod_main(int argc, char **argv); | 20 | int mknod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
21 | int mknod_main(int argc, char **argv) | 21 | int mknod_main(int argc, char **argv) |
22 | { | 22 | { |
23 | mode_t mode; | 23 | mode_t mode; |
diff --git a/coreutils/mv.c b/coreutils/mv.c index d13f4d54f..5d0b51561 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c | |||
@@ -33,7 +33,7 @@ static const char mv_longopts[] ALIGN1 = | |||
33 | static const char fmt[] ALIGN1 = | 33 | static const char fmt[] ALIGN1 = |
34 | "cannot overwrite %sdirectory with %sdirectory"; | 34 | "cannot overwrite %sdirectory with %sdirectory"; |
35 | 35 | ||
36 | int mv_main(int argc, char **argv); | 36 | int mv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
37 | int mv_main(int argc, char **argv) | 37 | int mv_main(int argc, char **argv) |
38 | { | 38 | { |
39 | struct stat dest_stat; | 39 | struct stat dest_stat; |
diff --git a/coreutils/nice.c b/coreutils/nice.c index 0cb31e4fa..d24a95b45 100644 --- a/coreutils/nice.c +++ b/coreutils/nice.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <sys/resource.h> | 10 | #include <sys/resource.h> |
11 | #include "libbb.h" | 11 | #include "libbb.h" |
12 | 12 | ||
13 | int nice_main(int argc, char **argv); | 13 | int nice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
14 | int nice_main(int argc, char **argv) | 14 | int nice_main(int argc, char **argv) |
15 | { | 15 | { |
16 | int old_priority, adjustment; | 16 | int old_priority, adjustment; |
diff --git a/coreutils/nohup.c b/coreutils/nohup.c index e27bd2e35..da8f58c72 100644 --- a/coreutils/nohup.c +++ b/coreutils/nohup.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int nohup_main(int argc, char **argv); | 15 | int nohup_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int nohup_main(int argc, char **argv) | 16 | int nohup_main(int argc, char **argv) |
17 | { | 17 | { |
18 | int nullfd; | 18 | int nullfd; |
diff --git a/coreutils/od.c b/coreutils/od.c index 114a746fa..85e979f7e 100644 --- a/coreutils/od.c +++ b/coreutils/od.c | |||
@@ -156,7 +156,7 @@ static const char od_o2si[] ALIGN1 = { | |||
156 | 0xb, 1, 8, 9, | 156 | 0xb, 1, 8, 9, |
157 | }; | 157 | }; |
158 | 158 | ||
159 | int od_main(int argc, char **argv); | 159 | int od_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
160 | int od_main(int argc, char **argv) | 160 | int od_main(int argc, char **argv) |
161 | { | 161 | { |
162 | int ch; | 162 | int ch; |
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 1bd1b0c84..9655c2398 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -1196,7 +1196,7 @@ dump_strings(void) | |||
1196 | check_and_close(); | 1196 | check_and_close(); |
1197 | } | 1197 | } |
1198 | 1198 | ||
1199 | int od_main(int argc, char **argv); | 1199 | int od_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
1200 | int od_main(int argc, char **argv) | 1200 | int od_main(int argc, char **argv) |
1201 | { | 1201 | { |
1202 | static const struct suffix_mult bkm[] = { | 1202 | static const struct suffix_mult bkm[] = { |
diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 19fa832c8..bac77e2a8 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include "libbb.h" | 11 | #include "libbb.h" |
12 | extern char **environ; | 12 | extern char **environ; |
13 | 13 | ||
14 | int printenv_main(int argc, char **argv); | 14 | int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int printenv_main(int argc, char **argv) | 15 | int printenv_main(int argc, char **argv) |
16 | { | 16 | { |
17 | /* no variables specified, show whole env */ | 17 | /* no variables specified, show whole env */ |
diff --git a/coreutils/printf.c b/coreutils/printf.c index d5ef32e8c..a9ef61f68 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -285,7 +285,7 @@ static int print_formatted(char *format, int argc, char **argv) | |||
285 | return save_argc - argc; | 285 | return save_argc - argc; |
286 | } | 286 | } |
287 | 287 | ||
288 | int printf_main(int argc, char **argv); | 288 | int printf_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
289 | int printf_main(int argc, char **argv) | 289 | int printf_main(int argc, char **argv) |
290 | { | 290 | { |
291 | char *format; | 291 | char *format; |
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 73a9d5be8..ac604db97 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | /* This is a NOFORK applet. Be very careful! */ | 12 | /* This is a NOFORK applet. Be very careful! */ |
13 | 13 | ||
14 | int pwd_main(int argc, char **argv); | 14 | int pwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int pwd_main(int argc, char **argv) | 15 | int pwd_main(int argc, char **argv) |
16 | { | 16 | { |
17 | char *buf; | 17 | char *buf; |
diff --git a/coreutils/readlink.c b/coreutils/readlink.c index 39edc0569..b6e389a21 100644 --- a/coreutils/readlink.c +++ b/coreutils/readlink.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include "libbb.h" | 12 | #include "libbb.h" |
13 | 13 | ||
14 | int readlink_main(int argc, char **argv); | 14 | int readlink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int readlink_main(int argc, char **argv) | 15 | int readlink_main(int argc, char **argv) |
16 | { | 16 | { |
17 | char *buf; | 17 | char *buf; |
diff --git a/coreutils/realpath.c b/coreutils/realpath.c index 9c4298720..bcb73a8dc 100644 --- a/coreutils/realpath.c +++ b/coreutils/realpath.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int realpath_main(int argc, char **argv); | 15 | int realpath_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int realpath_main(int argc, char **argv) | 16 | int realpath_main(int argc, char **argv) |
17 | { | 17 | { |
18 | int retval = EXIT_SUCCESS; | 18 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/rm.c b/coreutils/rm.c index a686fc40c..a123156d2 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | /* This is a NOFORK applet. Be very careful! */ | 20 | /* This is a NOFORK applet. Be very careful! */ |
21 | 21 | ||
22 | int rm_main(int argc, char **argv); | 22 | int rm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
23 | int rm_main(int argc, char **argv) | 23 | int rm_main(int argc, char **argv) |
24 | { | 24 | { |
25 | int status = 0; | 25 | int status = 0; |
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index 315401e0e..71d29dd98 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c | |||
@@ -16,7 +16,7 @@ | |||
16 | /* This is a NOFORK applet. Be very careful! */ | 16 | /* This is a NOFORK applet. Be very careful! */ |
17 | 17 | ||
18 | 18 | ||
19 | int rmdir_main(int argc, char **argv); | 19 | int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
20 | int rmdir_main(int argc, char **argv) | 20 | int rmdir_main(int argc, char **argv) |
21 | { | 21 | { |
22 | int status = EXIT_SUCCESS; | 22 | int status = EXIT_SUCCESS; |
diff --git a/coreutils/seq.c b/coreutils/seq.c index 050c33317..01d71f256 100644 --- a/coreutils/seq.c +++ b/coreutils/seq.c | |||
@@ -12,7 +12,7 @@ | |||
12 | /* This is a NOFORK applet. Be very careful! */ | 12 | /* This is a NOFORK applet. Be very careful! */ |
13 | 13 | ||
14 | 14 | ||
15 | int seq_main(int argc, char **argv); | 15 | int seq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int seq_main(int argc, char **argv) | 16 | int seq_main(int argc, char **argv) |
17 | { | 17 | { |
18 | double last, increment, i; | 18 | double last, increment, i; |
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 26cdbc470..6890e35c1 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -33,7 +33,7 @@ static const struct suffix_mult sfx[] = { | |||
33 | }; | 33 | }; |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | int sleep_main(int argc, char **argv); | 36 | int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
37 | int sleep_main(int argc, char **argv) | 37 | int sleep_main(int argc, char **argv) |
38 | { | 38 | { |
39 | unsigned duration; | 39 | unsigned duration; |
diff --git a/coreutils/sort.c b/coreutils/sort.c index 311c774ae..313234675 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -274,7 +274,7 @@ static unsigned str2u(char **str) | |||
274 | } | 274 | } |
275 | #endif | 275 | #endif |
276 | 276 | ||
277 | int sort_main(int argc, char **argv); | 277 | int sort_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
278 | int sort_main(int argc, char **argv) | 278 | int sort_main(int argc, char **argv) |
279 | { | 279 | { |
280 | FILE *fp, *outfile = stdout; | 280 | FILE *fp, *outfile = stdout; |
diff --git a/coreutils/split.c b/coreutils/split.c index 6d8924aeb..51a631c56 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
@@ -55,7 +55,7 @@ enum { READ_BUFFER_SIZE = COMMON_BUFSIZE - 1 }; | |||
55 | #define SPLIT_OPT_b (1<<1) | 55 | #define SPLIT_OPT_b (1<<1) |
56 | #define SPLIT_OPT_a (1<<2) | 56 | #define SPLIT_OPT_a (1<<2) |
57 | 57 | ||
58 | int split_main(int argc, char **argv); | 58 | int split_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
59 | int split_main(int argc, char **argv) | 59 | int split_main(int argc, char **argv) |
60 | { | 60 | { |
61 | unsigned suffix_len = 2; | 61 | unsigned suffix_len = 2; |
diff --git a/coreutils/stat.c b/coreutils/stat.c index ed6580ef0..a5a30546d 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -609,7 +609,7 @@ static bool do_stat(const char *filename, const char *format) | |||
609 | return 1; | 609 | return 1; |
610 | } | 610 | } |
611 | 611 | ||
612 | int stat_main(int argc, char **argv); | 612 | int stat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
613 | int stat_main(int argc, char **argv) | 613 | int stat_main(int argc, char **argv) |
614 | { | 614 | { |
615 | char *format = NULL; | 615 | char *format = NULL; |
diff --git a/coreutils/stty.c b/coreutils/stty.c index 1f0d4227e..8ad12e65e 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -911,7 +911,7 @@ static void set_control_char_or_die(const struct control_info *info, | |||
911 | #define STTY_verbose_output (1<<2) | 911 | #define STTY_verbose_output (1<<2) |
912 | #define STTY_recoverable_output (1<<3) | 912 | #define STTY_recoverable_output (1<<3) |
913 | #define STTY_noargs (1<<4) | 913 | #define STTY_noargs (1<<4) |
914 | int stty_main(int argc, char **argv); | 914 | int stty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
915 | int stty_main(int argc, char **argv) | 915 | int stty_main(int argc, char **argv) |
916 | { | 916 | { |
917 | struct termios mode; | 917 | struct termios mode; |
diff --git a/coreutils/sum.c b/coreutils/sum.c index a75dd321d..65478b0a1 100644 --- a/coreutils/sum.c +++ b/coreutils/sum.c | |||
@@ -74,7 +74,7 @@ static unsigned sum_file(const char *file, const unsigned type) | |||
74 | #undef buf | 74 | #undef buf |
75 | } | 75 | } |
76 | 76 | ||
77 | int sum_main(int argc, char **argv); | 77 | int sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
78 | int sum_main(int argc, char **argv) | 78 | int sum_main(int argc, char **argv) |
79 | { | 79 | { |
80 | unsigned n; | 80 | unsigned n; |
diff --git a/coreutils/sync.c b/coreutils/sync.c index d562f3fc5..9dbdd98aa 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int sync_main(int argc, char **argv); | 16 | int sync_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int sync_main(int argc, char **argv) | 17 | int sync_main(int argc, char **argv) |
18 | { | 18 | { |
19 | bb_warn_ignoring_args(argc - 1); | 19 | bb_warn_ignoring_args(argc - 1); |
diff --git a/coreutils/tail.c b/coreutils/tail.c index 53dbf33ac..beecbaedf 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -79,7 +79,7 @@ static unsigned eat_num(const char *p) | |||
79 | return xatou_sfx(p, tail_suffixes); | 79 | return xatou_sfx(p, tail_suffixes); |
80 | } | 80 | } |
81 | 81 | ||
82 | int tail_main(int argc, char **argv); | 82 | int tail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
83 | int tail_main(int argc, char **argv) | 83 | int tail_main(int argc, char **argv) |
84 | { | 84 | { |
85 | unsigned count = 10; | 85 | unsigned count = 10; |
diff --git a/coreutils/tee.c b/coreutils/tee.c index 831325812..13fb4a3c1 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | #include <signal.h> | 14 | #include <signal.h> |
15 | 15 | ||
16 | int tee_main(int argc, char **argv); | 16 | int tee_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int tee_main(int argc, char **argv) | 17 | int tee_main(int argc, char **argv) |
18 | { | 18 | { |
19 | const char *mode = "w\0a"; | 19 | const char *mode = "w\0a"; |
diff --git a/coreutils/touch.c b/coreutils/touch.c index d8498d854..1b83dc44c 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | /* This is a NOFORK applet. Be very careful! */ | 22 | /* This is a NOFORK applet. Be very careful! */ |
23 | 23 | ||
24 | int touch_main(int argc, char **argv); | 24 | int touch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
25 | int touch_main(int argc, char **argv) | 25 | int touch_main(int argc, char **argv) |
26 | { | 26 | { |
27 | int fd; | 27 | int fd; |
diff --git a/coreutils/tr.c b/coreutils/tr.c index 6a34e3087..9521bbcd5 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -165,7 +165,7 @@ static int complement(char *buffer, int buffer_len) | |||
165 | return ix; | 165 | return ix; |
166 | } | 166 | } |
167 | 167 | ||
168 | int tr_main(int argc, char **argv); | 168 | int tr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
169 | int tr_main(int argc, char **argv) | 169 | int tr_main(int argc, char **argv) |
170 | { | 170 | { |
171 | unsigned char *ptr; | 171 | unsigned char *ptr; |
diff --git a/coreutils/true.c b/coreutils/true.c index 9dcd69aa3..2b5919320 100644 --- a/coreutils/true.c +++ b/coreutils/true.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | /* This is a NOFORK applet. Be very careful! */ | 15 | /* This is a NOFORK applet. Be very careful! */ |
16 | 16 | ||
17 | int true_main(int argc, char **argv); | 17 | int true_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int true_main(int argc, char **argv) | 18 | int true_main(int argc, char **argv) |
19 | { | 19 | { |
20 | return EXIT_SUCCESS; | 20 | return EXIT_SUCCESS; |
diff --git a/coreutils/tty.c b/coreutils/tty.c index d8ce78c00..b0a50ff61 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int tty_main(int argc, char **argv); | 15 | int tty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int tty_main(int argc, char **argv) | 16 | int tty_main(int argc, char **argv) |
17 | { | 17 | { |
18 | const char *s; | 18 | const char *s; |
diff --git a/coreutils/uname.c b/coreutils/uname.c index e70b1f9b6..2eecb5d6d 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -48,7 +48,7 @@ static const unsigned short utsname_offset[] ALIGN2 = { | |||
48 | offsetof(uname_info_t,processor) | 48 | offsetof(uname_info_t,processor) |
49 | }; | 49 | }; |
50 | 50 | ||
51 | int uname_main(int argc, char **argv); | 51 | int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
52 | int uname_main(int argc, char **argv) | 52 | int uname_main(int argc, char **argv) |
53 | { | 53 | { |
54 | uname_info_t uname_info; | 54 | uname_info_t uname_info; |
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index 719bbb5e3..cda1e61a9 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -27,7 +27,7 @@ static FILE *xgetoptfile_uniq_s(char **argv, int read0write2) | |||
27 | return (read0write2) ? stdout : stdin; | 27 | return (read0write2) ? stdout : stdin; |
28 | } | 28 | } |
29 | 29 | ||
30 | int uniq_main(int argc, char **argv); | 30 | int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
31 | int uniq_main(int argc, char **argv) | 31 | int uniq_main(int argc, char **argv) |
32 | { | 32 | { |
33 | FILE *in, *out; | 33 | FILE *in, *out; |
diff --git a/coreutils/usleep.c b/coreutils/usleep.c index e0cd56e54..1c9022325 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int usleep_main(int argc, char **argv); | 16 | int usleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int usleep_main(int argc, char **argv) | 17 | int usleep_main(int argc, char **argv) |
18 | { | 18 | { |
19 | if (argc != 2) { | 19 | if (argc != 2) { |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 7a52bdbda..46836624c 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -126,7 +126,7 @@ static void read_base64(FILE *src_stream, FILE *dst_stream) | |||
126 | } | 126 | } |
127 | } | 127 | } |
128 | 128 | ||
129 | int uudecode_main(int argc, char **argv); | 129 | int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
130 | int uudecode_main(int argc, char **argv) | 130 | int uudecode_main(int argc, char **argv) |
131 | { | 131 | { |
132 | FILE *src_stream = stdin; | 132 | FILE *src_stream = stdin; |
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 17def8d9a..e19f99676 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -15,7 +15,7 @@ enum { | |||
15 | DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3), | 15 | DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3), |
16 | }; | 16 | }; |
17 | 17 | ||
18 | int uuencode_main(int argc, char **argv); | 18 | int uuencode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
19 | int uuencode_main(int argc, char **argv) | 19 | int uuencode_main(int argc, char **argv) |
20 | { | 20 | { |
21 | struct stat stat_buf; | 21 | struct stat stat_buf; |
diff --git a/coreutils/wc.c b/coreutils/wc.c index c8a4865b1..291af411f 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -68,7 +68,7 @@ enum { | |||
68 | WC_LENGTH = 3 | 68 | WC_LENGTH = 3 |
69 | }; | 69 | }; |
70 | 70 | ||
71 | int wc_main(int argc, char **argv); | 71 | int wc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
72 | int wc_main(int argc, char **argv) | 72 | int wc_main(int argc, char **argv) |
73 | { | 73 | { |
74 | FILE *fp; | 74 | FILE *fp; |
diff --git a/coreutils/who.c b/coreutils/who.c index 546050aee..6e7710c2d 100644 --- a/coreutils/who.c +++ b/coreutils/who.c | |||
@@ -39,7 +39,7 @@ static void idle_string(char *str6, time_t t) | |||
39 | strcpy(str6, "old"); | 39 | strcpy(str6, "old"); |
40 | } | 40 | } |
41 | 41 | ||
42 | int who_main(int argc, char **argv); | 42 | int who_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
43 | int who_main(int argc, char **argv) | 43 | int who_main(int argc, char **argv) |
44 | { | 44 | { |
45 | char str6[6]; | 45 | char str6[6]; |
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index 3718358d5..e2fdfc955 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int whoami_main(int argc, char **argv); | 16 | int whoami_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int whoami_main(int argc, char **argv) | 17 | int whoami_main(int argc, char **argv) |
18 | { | 18 | { |
19 | if (argc > 1) | 19 | if (argc > 1) |
diff --git a/coreutils/yes.c b/coreutils/yes.c index 5529eab14..269d2a0c2 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | /* This is a NOFORK applet. Be very careful! */ | 19 | /* This is a NOFORK applet. Be very careful! */ |
20 | 20 | ||
21 | int yes_main(int argc, char **argv); | 21 | int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
22 | int yes_main(int argc, char **argv) | 22 | int yes_main(int argc, char **argv) |
23 | { | 23 | { |
24 | char **first_arg; | 24 | char **first_arg; |