aboutsummaryrefslogtreecommitdiff
path: root/console-tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespace cleanupDenys Vlasenko2010-10-293-12/+12
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: use _exit() in sighandlers; showkey: do not use exit-thru-sighandlerMarek Polacek2010-10-283-46/+41
| | | | | | | | | | | | While at it, make ESC sequences more readable; and removed check for isatty(stdin) in reset. Code shrink: text data bss dec hex filename 884771 936 17216 902923 dc70b busybox_old 884723 936 17216 902875 dc6db busybox_unstripped Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* showkey: code shrinkDenys Vlasenko2010-08-291-16/+16
| | | | | | | | | function old new delta signal_handler 52 45 -7 showkey_main 461 454 -7 xset1 40 29 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1616-16/+16
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mark Linux-specific configuration optionsJeremie Koenig2010-07-191-0/+13
| | | | | | | | PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use BB_EXECVP_or_die()Pascal Bellard2010-07-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta BB_EXECVP_or_die - 47 +47 time_main 1042 1043 +1 chrt_main 371 364 -7 ionice_main 292 282 -10 setsid_main 69 56 -13 nohup_main 236 223 -13 cttyhack_main 266 253 -13 chroot_main 94 81 -13 chpst_main 746 733 -13 timeout_main 297 279 -18 taskset_main 541 522 -19 vfork_child 67 45 -22 parse 975 953 -22 lpd_main 770 748 -22 launch_helper 192 170 -22 tcpudpsvd_main 1810 1782 -28 nice_main 190 156 -34 env_main 242 206 -36 run_command 221 174 -47 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/17 up/down: 48/-352) Total: -304 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make exec failure message more consistentDenys Vlasenko2010-06-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-082-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bbconfig: make it independent from printf functionsDenys Vlasenko2010-06-071-5/+1
| | | | | | | | | | | | | | function old new delta full_write2_str - 25 +25 full_write1_str - 25 +25 clear_main 21 20 -1 telnet_main 1488 1477 -11 getty_main 1932 1918 -14 full_write22_str 25 - -25 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51) Total: -1 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* loadkmap: remove UNUSED_PARAM from argvDenys Vlasenko2010-06-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dumpkmap,loadkmap: abort if there are params on cmdlineDenys Vlasenko2010-06-062-1/+11
| | | | | | | | function old new delta loadkmap_main 201 219 +18 dumpkmap_main 208 223 +15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-21/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-042-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fgconsole: new applet by Grigory Batalov <bga@altlinux.org>Grigory Batalov2010-05-233-0/+37
| | | | | | | | | | | | | | | function old new delta fgconsole_main - 51 +51 applet_names 2227 2237 +10 applet_main 1304 1308 +4 applet_nameofs 652 654 +2 applet_install_loc 163 164 +1 packed_usage 27079 27073 -6 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/1 up/down: 68/-6) Total: 62 bytes Signed-off-by: Grigory Batalov <bga@altlinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* setkeycodes: fix handling of 0exx scancodesDenys Vlasenko2010-05-191-8/+8
| | | | | | | function old new delta setkeycodes_main 143 130 -13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* consolidate ESC sequencesDenys Vlasenko2010-05-162-6/+7
| | | | | | | | | | | | | | function old new delta bell 2 - -2 CMdown 2 - -2 Ceos 4 - -4 Ceol 4 - -4 CMup 4 - -4 SOs 5 - -5 SOn 5 - -5 CMrc 9 - -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* clean up redundant, commented-out and misplaced includesDenys Vlasenko2010-04-011-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* loadfont/setfont: optional PSF2 font supportHarald Becker2010-02-212-108/+224
| | | | | Signed-off-by: Harald Becker <ralda@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make 2 more "int argc"'s unused; more saved if !DESKTOPDenys Vlasenko2010-01-042-4/+4
| | | | | | | | | function old new delta sync_main 18 20 +2 tty_main 90 87 -3 iprule_list 83 79 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove a few more cases of argc usage. -89 bytes.Denys Vlasenko2009-11-281-9/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tidy up O_NONBLOCK usage. use libbb functions in stty.Denys Vlasenko2009-11-111-3/+1
| | | | | | | | | | Added O_RDONLY where improves readability. Note: O_RDONLY == 0, so it is there even if not specified. function old new delta stty_main 1289 1235 -54 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add and use xopen_nonblocking (-18b)Bernhard Reutner-Fischer2009-10-273-3/+3
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTSDenys Vlasenko2009-06-191-1/+1
| | | | | Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix forgotten license commentsDenis Vlasenko2008-12-071-0/+2
|
* kbd_mode: s/ioctl/xioctl. also saves 12 bytesDenis Vlasenko2008-11-081-1/+1
|
* kbd_mode: support -C TTY optionDenis Vlasenko2008-11-083-13/+19
| | | | | | | function old new delta packed_usage 25334 25361 +27 kbd_mode_main 146 173 +27
* *: remove superfluous casts. no code changesDenis Vlasenko2008-11-061-2/+2
|
* showkey: suppress gcc warningDenis Vlasenko2008-09-281-2/+2
|
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-252-2/+2
|
* whitespace fixesDenis Vlasenko2008-09-251-3/+3
|
* setfont: use ioctl(KDFONTOP), it honours -C ttyDenis Vlasenko2008-09-201-1/+43
|
* setfont: small fixes from VladimirDenis Vlasenko2008-09-181-4/+4
|
* setfont: support -m and -C, support -m TEXTUAL_MAP (by Vladimir)Denis Vlasenko2008-09-162-13/+119
| | | | | | | | | | build system: fixlet for echo applet config function old new delta setfont_main 157 387 +230 ctoi - 75 +75 packed_usage 24921 24950 +29
* setfont: add comments/TODOs, no code changesDenis Vlasenko2008-09-131-0/+38
|
* kbd_mode: fix non-ASCII letters in commentsDenis Vlasenko2008-09-031-1/+1
| | | | | install: support -D
* Updating defconfig, fixing a typo in Config.inDenis Vlasenko2008-08-191-1/+1
|
* showkey: new applet by VladimirDenis Vlasenko2008-08-173-0/+145
|
* setfont: new applet by VladimirDenis Vlasenko2008-08-173-62/+85
|
* *: use get_console_fd() as appropriate, and make it fail on open error -Denis Vlasenko2008-08-057-18/+16
| | | | | | | | | | | | | | | | get_console_fd_or_die(). function old new delta get_console_fd_or_die - 163 +163 loadkmap_main 211 201 -10 loadfont_main 440 430 -10 dumpkmap_main 218 208 -10 kbd_mode_main 158 146 -12 setkeycodes_main 156 143 -13 get_console_fd 163 - -163 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/5 up/down: 163/-218) Total: -55 bytes
* kbd_mode: remove erroneous & from &var. By Vladimir.Denis Vlasenko2008-08-051-1/+1
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-0511-12/+12
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-1/+1
|
* - Rename getpty() to xgetpty() and adjust callers.Bernhard Reutner-Fischer2008-05-198-110/+85
| | | | | | | | | - Rewrite kbd_mode and setconsole - Introduce and use console_make_active() and xopen_xwrite_close() - honour buffer-reservation method as set by the user (dumpkmap, loadkmap) - shrink rtcwake and some console-tools Saves about 270 Bytes
* whitespace fixes. no code changesDenis Vlasenko2008-04-221-3/+3
|
* openvt: handle -ws correctly. By James Simmons <jsimmons AT infradead.org>Denis Vlasenko2008-04-191-3/+12
| | | | | | function old new delta openvt_main 343 429 +86
* openvt: fix gross mismatch between us and "standard" openvt.Denis Vlasenko2008-03-271-13/+148
| | | | | | | | | | | | | | | | | | standard one even has different syntax! std: "openvt -c 12", we: "openvt 12" std: "openvt top", we: complain that "top" is not a number. openvt: implement -c -w -s (-l -f -v are also accepted but ingnored) openvt_main 188 343 +155 vfork_child - 67 +67 not_vt_fd - 23 +23 packed_usage 23932 23952 +20 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 265/0) Total: 265 bytes text data bss dec hex filename 801344 641 7380 809365 c5995 busybox_old 801617 641 7380 809638 c5aa6 busybox_unstripped
* patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes)Denis Vlasenko2008-03-232-2/+0
| | | | | *: removal of #include <getopt.h>
* *: mode tcp/udpsvd to networking, delete ipsvd/*Denis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | */Config.in: fixes to text svlogd: make it NOMMU capable function old new delta processorstart 378 420 +42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 42/0) Total: 42 bytes text data bss dec hex filename 797153 662 7420 805235 c4973 busybox_old 797196 662 7420 805278 c499e busybox_unstripped
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-174-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta getopt32 1370 1385 +15 sulogin_main 490 494 +4 realpath_main 84 86 +2 sleep_main 76 77 +1 mt_main 256 257 +1 printenv_main 75 74 -1 fdformat_main 546 545 -1 usleep_main 44 42 -2 setlogcons_main 77 75 -2 ed_main 2654 2649 -5 deallocvt_main 69 64 -5 addgroup_main 373 368 -5 mkfs_minix_main 2989 2982 -7 tail_main 1221 1213 -8 sv_main 1254 1241 -13 du_main 348 328 -20 tftp_main 325 302 -23 split_main 581 558 -23 nc_main 1000 977 -23 diff_main 891 868 -23 arping_main 1797 1770 -27 ls_main 893 847 -46 od_main 2797 2750 -47 readprofile_main 1944 1895 -49 tcpudpsvd_main 1973 1922 -51 udhcpc_main 2590 2513 -77 grep_main 824 722 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/22 up/down: 23/-560) Total: -537 bytes text data bss dec hex filename 796973 658 7428 805059 c48c3 busybox_old 796479 662 7420 804561 c46d1 busybox_unstripped