summaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: a bit of code shrinkDenis Vlasenko2008-11-091-1/+2
| | | | | | | | | | | | | | function old new delta stop_handler 41 38 -3 sulogin_main 508 504 -4 got_cont 4 - -4 cont_handler 11 - -11 startservice 309 297 -12 processorstart 423 409 -14 tcpudpsvd_main 1861 1843 -18 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
* build system: tidying up CONFIG_xxx names (suggested by Rob)Denis Vlasenko2008-11-061-3/+1
|
* *: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, ↵Denis Vlasenko2008-11-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | xx) op function old new delta tcsetattr_stdin_TCSANOW - 14 +14 set_sane_term 116 113 -3 top_main 1277 1273 -4 make_new_session 421 415 -6 rawmode 133 126 -7 reset_term 18 10 -8 die 43 35 -8 cookmode 62 54 -8 vlock_main 425 415 -10 read_line_input 3165 3155 -10 bb_askpass 357 347 -10 fsck_minix_main 3079 3065 -14 getty_main 2375 2332 -43 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/12 up/down: 14/-131) Total: -117 bytes
* whitespace fixes, no code changesDenis Vlasenko2008-10-291-2/+2
|
* getopt: reinstate erroneously removed getopt() reset code.Denis Vlasenko2008-10-211-0/+9
|
* ash: fix a bug in standalone mode (corrupted getopt() state)Denis Vlasenko2008-10-201-9/+2
|
* add comment explaining previous changeDenis Vlasenko2008-10-191-0/+11
|
* volume identification: abolish /proc/partitions and /proc/cdromsDenis Vlasenko2008-10-193-225/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scanning. It does not catch volume managers and such. Adding even more cruft is bad, so I decided to simply scan /dev/* for any block devices. See how much better it finds devices now: # ./busybox_old blkid /dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061" /dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/sdb1: UUID="6F84-ED0F" # ./busybox blkid /dev/sdb1: UUID="6F84-ED0F" /dev/root: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061" /dev/mapper/VolGroup00-LogVol01: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/mapper/VolGroup00-LogVol00: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" function old new delta static.drive_name_string 12 - -12 append_mount_options 205 190 -15 volume_id_open_node 37 18 -19 uuidcache_check_device 485 257 -228 uuidcache_init 637 36 -601 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-875) Total: -875 bytes text data bss dec hex filename 792218 592 6648 799458 c32e2 busybox_old 791260 592 6648 798500 c2f24 busybox_unstripped
* blkid: vda forgot to svn add it again. vda is stupidDenis Vlasenko2008-10-191-0/+18
|
* mount: -o parm1 -o parm2 should accumulateDenis Vlasenko2008-10-181-4/+4
|
* hush: fix trashing of environment by local env vars:Denis Vlasenko2008-10-131-1/+1
| | | | | | | | | | | | | | | | a=a; a=b cmd; - a was unset! +57 bytes function old new delta add_string_to_strings - 110 +110 putenv_all - 27 +27 run_list 2086 2111 +25 free_strings - 7 +7 free_pipe 210 208 -2 add_malloced_string_to_strings 110 - -110 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 1/1 up/down: 169/-112) Total: 57 bytes
* blkid: new applet. We almost had everything needed for it alreadyDenis Vlasenko2008-10-124-12/+22
| | | | | | | | | | | | | function old new delta display_uuid_cache - 89 +89 blkid_main - 8 +8 applet_names 1871 1877 +6 applet_main 1140 1144 +4 applet_nameofs 570 572 +2 packed_usage 24737 24735 -2 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 3/1 up/down: 109/-2) Total: 107 bytes
* findfs: fix LUKS and FAT detection routines; do not exit if corruptedDenis Vlasenko2008-10-123-82/+111
| | | | | | | | | | | | FAT fs makes us try to seek past volume function old new delta volume_id_get_buffer 301 327 +26 volume_id_probe_luks 79 82 +3 get_attr_volume_id 73 65 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 29/-8) Total: 21 bytes
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-251-1/+1
|
* watchdog: add -T optionDenis Vlasenko2008-09-071-29/+26
| | | | | | | | function old new delta watchdog_main 159 219 +60 mdev: support match by major,minor. See bug 4714. +100 bytes.
* fbset: fix mode matching code: original code may trigger false positive.Denis Vlasenko2008-08-241-117/+132
| | | | | | | | | | | | | E.g. fbset -n '16bit' succeeded at 'mode "640x480 16bit"' and that is wrong. Also parser is rewritten. By Vladimir. function old new delta static.syncs - 20 +20 g_options 4 - -4 g_cmdoptions 432 385 -47 fbset_main 1842 1642 -200
* setarch: do not try to use non-existent data in argv[]Denis Vlasenko2008-08-231-15/+15
|
* - add new applet rdev (Grant Erickson)Bernhard Reutner-Fischer2008-08-193-0/+31
| | | | - fixes and shrink (me)
* - support relatime / norelatimeBernhard Reutner-Fischer2008-08-061-0/+4
|
* libbb: make xrealloc_vector zero out the realloc'ed tailDenis Vlasenko2008-08-041-3/+2
| | | | | | | | | | | | | | function old new delta xrealloc_vector_helper 51 76 +25 man_main 712 705 -7 act 250 234 -16 create_list 91 70 -21 getopt_main 695 664 -31 load_dep_bb 281 248 -33 fileAction 744 709 -35 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 25/-143) Total: -118 bytes
* randomconfig fixesDenis Vlasenko2008-07-291-1/+1
|
* fbset: shrink code a bit moreDenis Vlasenko2008-07-271-20/+15
|
* fbset: code shrinkDenis Vlasenko2008-07-271-30/+14
| | | | | | | | | function old new delta ss - 33 +33 fbset_main 1968 1844 -124 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 33/-124) Total: -91 bytes
* fix several problems with config parser:Denis Vlasenko2008-07-262-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* mdev: do not complain if mdev.conf does not exist;Denis Vlasenko2008-07-261-138/+155
| | | | | | use #if to prevent gcc from generating dead code (sadly, it's more ugly this way)
* - strip implied proto and superfluous "www." domain part.Bernhard Reutner-Fischer2008-07-221-1/+1
| | | | If my lynx groks it, your browser will too ;)
* - wrap overlong lines (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer2008-07-221-63/+66
| | | | - s/\. /. /g;# (me)
* - unused variables if !ENABLE_FEATURE_MDEV_RENAME_REGEXPBernhard Reutner-Fischer2008-07-221-1/+4
|
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-219-25/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* - commentary typo fixBernhard Reutner-Fischer2008-07-211-1/+1
|
* - fix spellingBernhard Reutner-Fischer2008-07-212-6/+6
|
* - s/super.block/superblock/g; # for consistency; -1bBernhard Reutner-Fischer2008-07-213-22/+22
|
* mount: support nfs mount option nordiplus.Denis Vlasenko2008-07-191-24/+32
| | | | | | | | | | | | By Octavian Purdila <opurdila AT ixiacom.com> function old new delta static.options 272 281 +9 daemonize 130 107 -23 singlemount 4674 4579 -95 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 9/-118) Total: -109 bytes
* libbb: updated config_parse() from VladimirDenis Vlasenko2008-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | function old new delta config_read 385 460 +75 runsvdir_main 1701 1716 +15 readit 331 338 +7 passwd_main 1049 1053 +4 parse_command 1504 1507 +3 decode_format_string 822 824 +2 bb__parsespent 117 119 +2 udhcp_get_option 221 222 +1 changepath 196 194 -2 parse_inittab 400 396 -4 nameif_main 683 679 -4 make_device 1176 1172 -4 config_open 48 40 -8 expand_main 698 689 -9 readcmd 1012 1002 -10 config_free_data 37 21 -16 SynchronizeFile 683 643 -40 sleep_main 474 362 -112 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 8/10 up/down: 109/-209) Total: -100 bytes
* - fix segfault in nameif with mactab fileBernhard Reutner-Fischer2008-07-171-5/+5
| | | | | | | | | | | | | | | | | (by fixing and shrink config parser) function old new delta config_free_data - 37 +37 config_open 43 48 +5 pack_gzip 1658 1660 +2 nameif_main 527 525 -2 SynchronizeFile 629 623 -6 make_device 1184 1176 -8 config_close 31 18 -13 config_read 431 393 -38 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/5 up/down: 44/-67) Total: -23 bytes
* fix up callsites of config_read to check for >= 0Denis Vlasenko2008-07-161-1/+1
|
* libbb: get rid of statics in dump.c; code shrinks a lot tooDenis Vlasenko2008-07-161-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta alloc_dumper - 26 +26 hexdump_main 600 601 +1 static.done 1 - -1 static.ateof 1 - -1 bb_dump_vflag 1 - -1 static.savp 4 - -4 static.nextfs 4 - -4 static.curp 4 - -4 exitval 4 - -4 endfu 4 - -4 bb_dump_length 4 - -4 bb_dump_fshead 4 - -4 bb_dump_blocksize 4 - -4 _argv 4 - -4 bb_dump_add 365 358 -7 savaddress 8 - -8 eaddress 8 - -8 bb_dump_skip 8 - -8 address 8 - -8 bb_dump_dump 2748 2672 -76 next 538 445 -93 ------------------------------------------------------------------------------ (add/remove: 1/16 grow/shrink: 1/3 up/down: 27/-247) Total: -220 bytes text data bss dec hex filename 789458 607 6764 796829 c289d busybox_old 789309 601 6696 796606 c27be busybox_unstripped
* mdev: support for serializing hotplugDenis Vlasenko2008-07-151-3/+28
| | | | | | function old new delta mdev_main 503 647 +144
* libbb: unified config parser (By Vladimir Dronnikov)Denis Vlasenko2008-07-151-56/+25
| | | | | | | | | | | | | | | | | | | | | | mdev: use it function old new delta config_read - 400 +400 config_open - 43 +43 config_close - 9 +9 qrealloc 33 36 +3 compare_keys 735 737 +2 xstrtoull_range_sfx 296 295 -1 qgravechar 109 106 -3 get_address 181 178 -3 next_token 928 923 -5 sv_main 1228 1222 -6 find_main 418 406 -12 next_field 32 - -32 make_device 1269 1184 -85 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/7 up/down: 457/-147) Total: 310 bytes
* mdev: check for "/block/" substring for block dev detectionDenis Vlasenko2008-07-121-7/+5
| | | | | | function old new delta make_device 1294 1269 -25
* mdev: if device was moved at creation, at removal coreectly removeDenis Vlasenko2008-07-121-19/+37
| | | | | | | | | | | | it from moved location and also remove symlinks to it function old new delta build_alias - 78 +78 mdev_main 505 503 -2 make_device 1300 1294 -6 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 78/-8) Total: 70 bytes
* switch_root: shrinkDenis Vlasenko2008-07-111-21/+11
| | | | | | | | | | function old new delta switch_root_main 402 401 -1 rootdev 8 - -8 delete_contents 226 179 -47 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-56) Total: -56 bytes
* fdisk: fix compile failureDenis Vlasenko2008-07-091-38/+41
|
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-082-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xrealloc_vector_helper - 51 +51 create_list 84 99 +15 getopt_main 690 695 +5 passwd_main 1049 1053 +4 get_cached 85 89 +4 msh_main 1377 1380 +3 add_match 42 41 -1 read_lines 720 718 -2 grave 1068 1066 -2 fill_match_lines 143 141 -2 add_to_dirlist 67 65 -2 add_input_file 49 47 -2 act 252 250 -2 fsck_main 2252 2246 -6 man_main 765 757 -8 bb_internal_initgroups 228 220 -8 cut_main 1052 1041 -11 add_edge_to_node 55 43 -12 dpkg_main 3851 3835 -16 ifupdown_main 2202 2178 -24 sort_main 838 812 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/15 up/down: 82/-124) Total: -42 bytes
* mount: support for "-o mand"Denis Vlasenko2008-07-081-0/+4
|
* mdev: reinstate "follow symlinks" flag, this time with explanationDenis Vlasenko2008-07-061-4/+7
|
* mdev: do not follow symlinks in /sys (as was intended prior to rev 18811).Denis Vlasenko2008-07-061-5/+12
| | | | | | | | | | | | | If this breaks things, please document why! mdev,init: use shared code for fd sanitization function old new delta bb_daemonize_or_rexec 155 172 +17 mdev_main 500 505 +5 init_main 907 856 -51 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 22/-51) Total: -29 bytes
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-0518-31/+31
|
* revert last two commits. vfork cannot be used in subroutine,Denis Vlasenko2008-07-012-2/+4
| | | | | it trashes stack on return
* *: introduce and use xfork()Denis Vlasenko2008-07-011-0/+1
| | | | | | | | | | | | | function old new delta xfork - 20 +20 msh_main 1377 1380 +3 mod_process 455 446 -9 forkexit_or_rexec 30 17 -13 expand_variables 1434 1421 -13 open_transformer 91 76 -15 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/4 up/down: 23/-50) Total: -27 bytes