diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /debianutils | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.gz busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.bz2 busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.zip |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/mktemp.c | 2 | ||||
-rw-r--r-- | debianutils/pipe_progress.c | 2 | ||||
-rw-r--r-- | debianutils/run_parts.c | 2 | ||||
-rw-r--r-- | debianutils/start_stop_daemon.c | 2 | ||||
-rw-r--r-- | debianutils/which.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c index 1c71c2e43..5772ad9ee 100644 --- a/debianutils/mktemp.c +++ b/debianutils/mktemp.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include "libbb.h" | 12 | #include "libbb.h" |
13 | 13 | ||
14 | int mktemp_main(int argc, char **argv); | 14 | int mktemp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int mktemp_main(int argc, char **argv) | 15 | int mktemp_main(int argc, char **argv) |
16 | { | 16 | { |
17 | unsigned long flags = getopt32(argv, "dqt"); | 17 | unsigned long flags = getopt32(argv, "dqt"); |
diff --git a/debianutils/pipe_progress.c b/debianutils/pipe_progress.c index ac8fb50f6..4bfdf6aa4 100644 --- a/debianutils/pipe_progress.c +++ b/debianutils/pipe_progress.c | |||
@@ -14,7 +14,7 @@ | |||
14 | /* Read a block of data from stdin, write it to stdout. | 14 | /* Read a block of data from stdin, write it to stdout. |
15 | * Activity is indicated by a '.' to stderr | 15 | * Activity is indicated by a '.' to stderr |
16 | */ | 16 | */ |
17 | int pipe_progress_main(int argc, char **argv); | 17 | int pipe_progress_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int pipe_progress_main(int argc, char **argv) | 18 | int pipe_progress_main(int argc, char **argv) |
19 | { | 19 | { |
20 | RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE); | 20 | RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE); |
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index 56f70c6ee..338817f8f 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c | |||
@@ -110,7 +110,7 @@ static const char runparts_longopts[] ALIGN1 = | |||
110 | ; | 110 | ; |
111 | #endif | 111 | #endif |
112 | 112 | ||
113 | int run_parts_main(int argc, char **argv); | 113 | int run_parts_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
114 | int run_parts_main(int argc, char **argv) | 114 | int run_parts_main(int argc, char **argv) |
115 | { | 115 | { |
116 | const char *umask_p = "22"; | 116 | const char *umask_p = "22"; |
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 7633cb057..6860bab6b 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -234,7 +234,7 @@ enum { | |||
234 | OPT_NICELEVEL = 0x4000 * ENABLE_FEATURE_START_STOP_DAEMON_FANCY, // -N | 234 | OPT_NICELEVEL = 0x4000 * ENABLE_FEATURE_START_STOP_DAEMON_FANCY, // -N |
235 | }; | 235 | }; |
236 | 236 | ||
237 | int start_stop_daemon_main(int argc, char **argv); | 237 | int start_stop_daemon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
238 | int start_stop_daemon_main(int argc, char **argv) | 238 | int start_stop_daemon_main(int argc, char **argv) |
239 | { | 239 | { |
240 | unsigned opt; | 240 | unsigned opt; |
diff --git a/debianutils/which.c b/debianutils/which.c index b556a9fd9..883813059 100644 --- a/debianutils/which.c +++ b/debianutils/which.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int which_main(int argc, char **argv); | 15 | int which_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int which_main(int argc, char **argv) | 16 | int which_main(int argc, char **argv) |
17 | { | 17 | { |
18 | int status = EXIT_SUCCESS; | 18 | int status = EXIT_SUCCESS; |