aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-11 10:05:36 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-11 10:05:36 +0000
commit9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch)
tree3d177ef7f3f5e8338690718c86012203ef29a7da /console-tools
parent8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff)
downloadbusybox-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 'console-tools')
-rw-r--r--console-tools/chvt.c2
-rw-r--r--console-tools/clear.c2
-rw-r--r--console-tools/deallocvt.c2
-rw-r--r--console-tools/dumpkmap.c2
-rw-r--r--console-tools/loadfont.c2
-rw-r--r--console-tools/loadkmap.c2
-rw-r--r--console-tools/openvt.c2
-rw-r--r--console-tools/reset.c2
-rw-r--r--console-tools/resize.c2
-rw-r--r--console-tools/setconsole.c2
-rw-r--r--console-tools/setkeycodes.c4
-rw-r--r--console-tools/setlogcons.c2
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 {
15 VT_WAITACTIVE = 0x5607 /* wait for vt active */ 15 VT_WAITACTIVE = 0x5607 /* wait for vt active */
16}; 16};
17 17
18int chvt_main(int argc, char **argv); 18int chvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
19int chvt_main(int argc, char **argv) 19int chvt_main(int argc, char **argv)
20{ 20{
21 int fd, num; 21 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 @@
12 12
13#include "libbb.h" 13#include "libbb.h"
14 14
15int clear_main(int argc, char **argv); 15int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int clear_main(int argc, char **argv) 16int clear_main(int argc, char **argv)
17{ 17{
18 return printf("\033[H\033[J") != 6; 18 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 @@
15/* From <linux/vt.h> */ 15/* From <linux/vt.h> */
16enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ 16enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
17 17
18int deallocvt_main(int argc, char **argv); 18int deallocvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
19int deallocvt_main(int argc, char **argv) 19int deallocvt_main(int argc, char **argv)
20{ 20{
21 /* num = 0 deallocate all unused consoles */ 21 /* 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 {
22#define NR_KEYS 128 22#define NR_KEYS 128
23#define MAX_NR_KEYMAPS 256 23#define MAX_NR_KEYMAPS 256
24 24
25int dumpkmap_main(int argc, char **argv); 25int dumpkmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
26int dumpkmap_main(int argc, char **argv) 26int dumpkmap_main(int argc, char **argv)
27{ 27{
28 struct kbentry ke; 28 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)
166 do_loadfont(fd, inbuf + offset, unit, 256); 166 do_loadfont(fd, inbuf + offset, unit, 256);
167} 167}
168 168
169int loadfont_main(int argc, char **argv); 169int loadfont_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
170int loadfont_main(int argc, char **argv) 170int loadfont_main(int argc, char **argv)
171{ 171{
172 int fd; 172 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 {
25#define NR_KEYS 128 25#define NR_KEYS 128
26#define MAX_NR_KEYMAPS 256 26#define MAX_NR_KEYMAPS 256
27 27
28int loadkmap_main(int argc, char **argv); 28int loadkmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
29int loadkmap_main(int argc, char **argv) 29int loadkmap_main(int argc, char **argv)
30{ 30{
31 struct kbentry ke; 31 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 @@
12 12
13#include "libbb.h" 13#include "libbb.h"
14 14
15int openvt_main(int argc, char **argv); 15int openvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int openvt_main(int argc, char **argv) 16int openvt_main(int argc, char **argv)
17{ 17{
18 char vtname[sizeof(VC_FORMAT) + 2]; 18 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 @@
12 12
13#include "libbb.h" 13#include "libbb.h"
14 14
15int reset_main(int argc, char **argv); 15int reset_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int reset_main(int argc, char **argv) 16int reset_main(int argc, char **argv)
17{ 17{
18 if (isatty(1)) { 18 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)
20 exit(1); 20 exit(1);
21} 21}
22 22
23int resize_main(int argc, char **argv); 23int resize_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
24int resize_main(int argc, char **argv) 24int resize_main(int argc, char **argv)
25{ 25{
26 struct termios new; 26 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 =
18 18
19#define OPT_SETCONS_RESET 1 19#define OPT_SETCONS_RESET 1
20 20
21int setconsole_main(int argc, char **argv); 21int setconsole_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
22int setconsole_main(int argc, char **argv) 22int setconsole_main(int argc, char **argv)
23{ 23{
24 unsigned long flags; 24 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 {
20 KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */ 20 KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */
21}; 21};
22 22
23int setkeycodes_main(int argc, char** argv); 23int setkeycodes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
24int setkeycodes_main(int argc, char** argv) 24int setkeycodes_main(int argc, char **argv)
25{ 25{
26 int fd, sc; 26 int fd, sc;
27 struct kbkeycode a; 27 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 @@
11 11
12#include "libbb.h" 12#include "libbb.h"
13 13
14int setlogcons_main(int argc, char **argv); 14int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
15int setlogcons_main(int argc, char **argv) 15int setlogcons_main(int argc, char **argv)
16{ 16{
17 struct { 17 struct {