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 /console-tools | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | busybox-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.gz |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 2 | ||||
-rw-r--r-- | console-tools/clear.c | 2 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 2 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 2 | ||||
-rw-r--r-- | console-tools/loadfont.c | 2 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 2 | ||||
-rw-r--r-- | console-tools/openvt.c | 2 | ||||
-rw-r--r-- | console-tools/reset.c | 2 | ||||
-rw-r--r-- | console-tools/resize.c | 2 | ||||
-rw-r--r-- | console-tools/setconsole.c | 2 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 4 | ||||
-rw-r--r-- | console-tools/setlogcons.c | 2 |
12 files changed, 13 insertions, 13 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index b1f81a20e..8390c6001 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c @@ -15,7 +15,7 @@ enum { VT_WAITACTIVE = 0x5607 /* wait for vt active */ }; -int chvt_main(int argc, char **argv); +int chvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int chvt_main(int argc, char **argv) { int fd, num; diff --git a/console-tools/clear.c b/console-tools/clear.c index 3c7d704b5..769ce3121 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c @@ -12,7 +12,7 @@ #include "libbb.h" -int clear_main(int argc, char **argv); +int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int clear_main(int argc, char **argv) { return printf("\033[H\033[J") != 6; diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index bf2bac186..48783fbb1 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c @@ -15,7 +15,7 @@ /* From <linux/vt.h> */ enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ -int deallocvt_main(int argc, char **argv); +int deallocvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int deallocvt_main(int argc, char **argv) { /* num = 0 deallocate all unused consoles */ diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index a606d568e..40b58f716 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c @@ -22,7 +22,7 @@ struct kbentry { #define NR_KEYS 128 #define MAX_NR_KEYMAPS 256 -int dumpkmap_main(int argc, char **argv); +int dumpkmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int dumpkmap_main(int argc, char **argv) { struct kbentry ke; diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 6b4dcb475..882b8817a 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c @@ -166,7 +166,7 @@ static void loadnewfont(int fd) do_loadfont(fd, inbuf + offset, unit, 256); } -int loadfont_main(int argc, char **argv); +int loadfont_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int loadfont_main(int argc, char **argv) { int fd; diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 4a726f9c8..40885ee0c 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c @@ -25,7 +25,7 @@ struct kbentry { #define NR_KEYS 128 #define MAX_NR_KEYMAPS 256 -int loadkmap_main(int argc, char **argv); +int loadkmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int loadkmap_main(int argc, char **argv) { struct kbentry ke; diff --git a/console-tools/openvt.c b/console-tools/openvt.c index c050ba19e..ff169530d 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c @@ -12,7 +12,7 @@ #include "libbb.h" -int openvt_main(int argc, char **argv); +int openvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int openvt_main(int argc, char **argv) { char vtname[sizeof(VC_FORMAT) + 2]; diff --git a/console-tools/reset.c b/console-tools/reset.c index deffe286d..bb096cf9f 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c @@ -12,7 +12,7 @@ #include "libbb.h" -int reset_main(int argc, char **argv); +int reset_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int reset_main(int argc, char **argv) { if (isatty(1)) { diff --git a/console-tools/resize.c b/console-tools/resize.c index 32551b2f2..b4cdf50d0 100644 --- a/console-tools/resize.c +++ b/console-tools/resize.c @@ -20,7 +20,7 @@ onintr(int sig ATTRIBUTE_UNUSED) exit(1); } -int resize_main(int argc, char **argv); +int resize_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int resize_main(int argc, char **argv) { struct termios new; diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c index 32218ae8f..0aa1d3a35 100644 --- a/console-tools/setconsole.c +++ b/console-tools/setconsole.c @@ -18,7 +18,7 @@ static const char setconsole_longopts[] ALIGN1 = #define OPT_SETCONS_RESET 1 -int setconsole_main(int argc, char **argv); +int setconsole_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int setconsole_main(int argc, char **argv) { unsigned long flags; diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index 3de5f9856..ba3d2e44e 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c @@ -20,8 +20,8 @@ enum { KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */ }; -int setkeycodes_main(int argc, char** argv); -int setkeycodes_main(int argc, char** argv) +int setkeycodes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +int setkeycodes_main(int argc, char **argv) { int fd, sc; struct kbkeycode a; diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c index 2e2a5a471..0f6491c72 100644 --- a/console-tools/setlogcons.c +++ b/console-tools/setlogcons.c @@ -11,7 +11,7 @@ #include "libbb.h" -int setlogcons_main(int argc, char **argv); +int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int setlogcons_main(int argc, char **argv) { struct { |