summaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
* patch: don't trash permissions of patched fileDenis Vlasenko2008-03-181-10/+7
|
* remove alarm() calls which were functioning as a primitivePaul Fox2008-03-171-17/+3
| | | | | | | watchdog function, presumably to catch infinite loop bugs. (control-C can do the same thing, and the alarms were too short in any case.) also, switch to sigsetjmp/siglongjmp in order to allow repeated use of control-C -- otherwise it works once, then not again.
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-172-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* *: shrink by using [f]open_or_warn_stdin where appropriateDenis Vlasenko2008-03-172-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta lsattr_main 62 143 +81 open_or_warn_stdin - 36 +36 fclose_if_not_stdin 20 47 +27 xfopen_stdin - 20 +20 tac_main 336 356 +20 cksum_main 249 259 +10 bb_argv_dash - 8 +8 su_main 448 455 +7 cmp_main 630 633 +3 passwd_main 1072 1074 +2 uudecode_main 317 315 -2 text_yank 110 108 -2 handle_incoming_and_exit 2653 2651 -2 flags 5 1 -4 write_leases 235 230 -5 fopen_or_warn_stdin 48 42 -6 fold_main 648 642 -6 static.argv_dash 8 - -8 sum_main 142 128 -14 tail_main 1237 1221 -16 sed_main 711 695 -16 cmp_xfopen_input 17 - -17 bb_cat 113 96 -17 catv_main 328 306 -22 strings_main 457 434 -23 hash_file 298 274 -24 sum_file 353 325 -28 sort_main 904 859 -45 expand_main 736 686 -50 cut_main 1116 1065 -51 md5_sha1_sum_main 549 493 -56 lsattr_args 90 - -90 read_stduu 408 255 -153 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 7/20 up/down: 214/-657) Total: -443 bytes text data bss dec hex filename 797417 658 7428 805503 c4a7f busybox_old 796973 658 7428 805059 c48c3 busybox_unstripped
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-175-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* fixups to vi usage, and move the initial redraw() past thePaul Fox2008-03-061-7/+9
| | | | | execution of commands supplied by -c or EXINIT, so their effect is displayed correctly.
* fixed the "dot" (i.e. '.') command, to properly re-init itsPaul Fox2008-03-061-58/+65
| | | | | | | | | | | | | | buffer between commands, not recalculate its length all the time, and to not reallocate its fixed-length buffer frequently. fixed the 'c', 'd', and 'y' commands to properly handle both motions that are just part of a line, and those that are multiline. for instance, now "c%" and "2cw" work correctly, whether the motions span lines or not. added some permissble motions for 'c', 'd', and 'y': namely 'h', 'l', SPACE, BS, and DEL
* fix vi's '?' and '/' commands to correctly set a new directionPaul Fox2008-03-051-1/+4
| | | | | when reusing a previous search pattern. previously only 'n' and 'N' reversed directions properly.
* libbb: inntroduce and use bb_pstrcmp() and qsort_string_vector()Denis Vlasenko2008-03-021-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | msh: glob0/glob1/glob2/glob3 are just a sorting routine! remove them. bb_pstrcmp - 25 +25 qsort_string_vector - 24 +24 expand 2209 2227 +18 getopt32 1359 1370 +11 passwd_main 1072 1074 +2 handle_incoming_and_exit 2737 2735 -2 UNSPEC_print 66 64 -2 forkexec 1343 1339 -4 input_tab 3338 3330 -8 get_dir 185 177 -8 expmeta 481 473 -8 cmdputs 405 397 -8 xstrcmp 12 - -12 find_pair 187 167 -20 match_compare 25 - -25 dir_strcmp 25 - -25 glob2 27 - -27 glob3 34 - -34 glob1 256 - -256 ------------------------------------------------------------------------------ (add/remove: 2/6 grow/shrink: 3/8 up/down: 80/-439) Total: -359 bytes
* doc: add info about sed s/.../.../I modifierDenis Vlasenko2008-03-011-0/+3
|
* sed: n cmd must reset "we had successful subst" flag. closes bug 1214.Denis Vlasenko2008-02-281-2/+3
|
* *: add optimization barrier to all "G trick" locationsDenis Vlasenko2008-02-274-6/+7
|
* libbb: introduce and use xrename and rename_or_warn.Denis Vlasenko2008-02-172-6/+2
|
* random s/short/int/Denis Vlasenko2008-02-161-4/+6
| | | | | | | | | add_cmd 1189 1190 +1 xconnect_ftpdata 118 117 -1 data_align 86 84 -2 process_files 2101 2096 -5 forkexec 1345 1334 -11
* add ',' and 'gg' commands (patch from Leo Jay)Paul Fox2008-02-141-2/+27
|
* - spelling fixesBernhard Reutner-Fischer2008-02-111-4/+4
|
* *: tidy up usage of char **environDenis Vlasenko2008-01-281-1/+0
|
* libbb: introduce fputc_printable (from ed)Denis Vlasenko2007-12-302-15/+3
| | | | | | | | | | | | | | netstat: print control chars as ^C etc vi: style fixlet function old new delta fputc_printable - 100 +100 unix_do_one 451 487 +36 printLines 258 190 -68 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 136/-68) Total: 68 bytes
* nameif: extended matching (Nico Erfurth <masta@perlgolf.de>)Denis Vlasenko2007-12-241-1/+1
| | | | | | | | | | | | *: whitespace fixes function old new delta prepend_new_eth_table - 304 +304 nameif_main 620 684 +64 cc_macaddr 51 - -51 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/0 up/down: 368/-51) Total: 317 bytes
* vi: speed up some string opsDenis Vlasenko2007-12-231-42/+56
|
* vi: reduce amount of memset'ing on each screen refreshDenis Vlasenko2007-12-221-9/+13
|
* vi: introduce FEATURE_VI_8BIT (as vi currently is not Unicode capable,Denis Vlasenko2007-12-222-21/+50
| | | | | | people may want to disable display of high-bit chars) ip: build fixlet
* vi: change MAX_LINELEN meaning: now it is the biggest supportedDenis Vlasenko2007-12-222-317/+309
| | | | | | screen wigth. Introduce MAX_TABSTOP and MAX_INPUT_LEN. Fix redraw of very long lines and cursor movement past NULs.
* vi: fix a problem with displaying overlong linesDenis Vlasenko2007-12-211-107/+120
|
* vi: don't use common_bufsiz as read buffer, it can be too smallDenis Vlasenko2007-12-091-3/+6
| | | | | (found by Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>)
* add sed mini-docDenis Vlasenko2007-11-132-0/+645
|
* sed: support GNU-like '\t' escape in substitutionsDenis Vlasenko2007-11-131-5/+9
|
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-2/+5
| | | | | | readahead: stop using stdio.h *: style fixes
* vi: don't wait 50 ms before reading ESC sequencesDenis Vlasenko2007-10-111-11/+8
| | | | | | | | inetd,syslogd: use safe_read instead of open-coded EINTR handling syslogd: bail out if you see null read from Unix socket (should never happen, but if it does, spinning forever and eating 100% CPU is not a good idea)
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-117-7/+7
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* - ditch 2 bytesBernhard Reutner-Fischer2007-10-011-3/+3
|
* fix "if (p) free(p)" constructsDenis Vlasenko2007-09-281-1/+1
|
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-272-7/+7
|
* introduce safe_poll (fixes a problem in top)Denis Vlasenko2007-09-271-2/+2
| | | | | | | | | | | | | | | | | | | | function old new delta safe_poll - 77 +77 svlogd_main 1470 1466 -4 zcip_main 1530 1524 -6 forkexec 1345 1338 -7 decode_format_string 795 788 -7 collect_blk 474 467 -7 buffer_pread 540 532 -8 tftp 1182 1172 -10 microcom_main 763 749 -14 arpping 441 424 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/9 up/down: 77/-80) Total: -3 bytes text data bss dec hex filename 770162 1034 10404 781600 bed20 busybox_old 770158 1034 10404 781596 bed1c busybox_unstripped
* documentation bits in comments, no code changesDenis Vlasenko2007-09-251-2/+0
|
* ed: large cleanupDenis Vlasenko2007-09-251-305/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bad_nums - 43 +43 skip_blank - 24 +24 getNum 557 578 +21 insertLine 159 163 +4 setCurNum 31 33 +2 lastNum 4 - -4 fileName 4 - -4 dirty 4 - -4 curNum 4 - -4 curLine 4 - -4 bufUsed 4 - -4 bufSize 4 - -4 bufPtr 4 - -4 bufBase 4 - -4 printLines 357 345 -12 findLine 165 152 -13 lines 16 - -16 deleteLines 203 144 -59 readLines 538 473 -65 addLines 163 87 -76 marks 104 - -104 termEdit 140 - -140 ed_main 3125 2654 -471 ------------------------------------------------------------------------------ (add/remove: 2/12 grow/shrink: 3/6 up/down: 94/-992) Total: -898 bytes text data bss dec hex filename 771142 1034 10564 782740 bf194 busybox_old 770265 1034 10404 781703 bed87 busybox_unstripped # size */ed.o text data bss dec hex filename 6370 0 156 6526 197e editors.org/ed.o 5505 0 0 5505 1581 editors/ed.o
* - actually mv microcom.c to miscutilsBernhard Reutner-Fischer2007-09-221-1/+1
|
* update Glenn McGrath's email addressDenis Vlasenko2007-09-212-2/+2
|
* *: replace select-for-one descriptor with poll, it's smaller.Denis Vlasenko2007-09-071-23/+13
| | | | | | | | | | | | | | | | | $ ./.cmk bloatcheck function old new delta readit 406 364 -42 syslogd_main 1249 1206 -43 traceroute_main 4115 4060 -55 mysleep 112 45 -67 arpping 579 441 -138 tftp 1575 1182 -393 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-738) Total: -738 bytes text data bss dec hex filename 770580 1051 10764 782395 bf03b busybox_old 769820 1051 10764 781635 bed43 busybox_unstripped
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-185-5/+5
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* assorted fixes for breakage found by randomconfigDenis Vlasenko2007-08-171-6/+9
|
* whitespace fixes, no code changesDenis Vlasenko2007-08-161-3/+3
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-125-34/+33
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* patch: fix -p -1 handlingDenis Vlasenko2007-08-061-3/+5
| | | | | checkstack.pl: add blackfin (by Alex Landau <landau_alex@yahoo.com>)
* sed: fix 'q' command handling ("Nguyen Thai Ngoc Duy" <pclouds@gmail.com>)Denis Vlasenko2007-08-061-2/+9
| | | | | | | add testsuite entry for it. Fix applet order checker. Fix cmp yelling. trylink: fix error file and map file generation applets: fix applet order
* patch: fix bad line ending handling ("Nguyen Thai Ngoc Duy" <pclouds@gmail.com>)Denis Vlasenko2007-08-011-3/+3
|
* style fix (stray space before ';')Denis Vlasenko2007-07-212-3/+3
|
* libbb: nuke BB_GETOPT_ERROR, always die if there are mutually exclusive optionsDenis Vlasenko2007-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | find_pair 164 180 +16 passwd_main 1222 1230 +8 display_speed 91 96 +5 msh_main 1335 1339 +4 qrealloc 38 36 -2 refresh 1190 1182 -8 cut_main 543 532 -11 sendCgi 1807 1794 -13 getopt32 1063 1045 -18 arith 2077 2030 -47 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/6 up/down: 33/-99) Total: -66 bytes text data bss dec hex filename 781548 1168 11900 794616 c1ff8 busybox_old 781452 1168 11900 794520 c1f98 busybox_unstripped
* stray trailing tabs removedDenis Vlasenko2007-07-191-4/+4
|
* vi: comment out dead codeDenis Vlasenko2007-07-181-5/+5
|