aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Teach get_terminal_width_height to fall back to $LINES and $COLUMNS whenlandley2006-09-203-37/+27
| | | | | | | used via things like a serial console. git-svn-id: svn://busybox.net/trunk/busybox@16167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change char *string = "foo" -> char string[] = "foo"vda2006-09-192-27/+27
| | | | | | | | | | | | | | | | | | | | | function old new delta xsetenv 45 44 -1 iproute_list_or_flush 1834 1833 -1 ipaddr_modify 1915 1914 -1 ipaddr_list_or_flush 1861 1860 -1 invarg 39 38 -1 do_set 1259 1258 -1 bb_verror_msg 268 267 -1 create_icmp_socket 142 140 -2 create_icmp6_socket 142 140 -2 bb_full_fd_action 324 322 -2 bb_path_mtab_file 10 - -10 .rodata 214796 214720 -76 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/11 up/down: 0/-99) Total: -99 bytes git-svn-id: svn://busybox.net/trunk/busybox@16145 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupvda2006-09-177-14/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-09-171-5/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Strangely, using // in the comments I added was not a persistent accident.landley2006-09-141-65/+62
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16124 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix copy'n paste errors that got introduced when switching to the shorter ↵aldot2006-09-133-3/+3
| | | | | | | | | boilerplate. No object code changes. git-svn-id: svn://busybox.net/trunk/busybox@16113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove pointless "const". Bloatcheck says 0 bytes difference.landley2006-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16110 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - small trivia to be gentle to gcc-2.95.x which had no va_copy but only ↵aldot2006-09-124-19/+2
| | | | | | __va_copy. git-svn-id: svn://busybox.net/trunk/busybox@16107 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix warning about discarding qualifiers in initializationaldot2006-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16106 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - merge xstat.c into xfuncs.caldot2006-09-113-13/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16100 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix "xopen with O_CREAT" warning, improve zero padding writevda2006-09-091-8/+4
| | | | | | | | (was doing zillions of 1-byte write syscalls) git-svn-id: svn://busybox.net/trunk/busybox@16083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* few random readability enhansements. No code changesvda2006-09-081-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16076 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: style fixesvda2006-09-081-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16072 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getty, sulogin: convert to using bb_msg for syslog outputvda2006-09-078-5/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16065 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be &&vda2006-09-072-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16064 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add CONFIG_FEATURE_SYSLOG which controls whethervda2006-09-072-2/+2
| | | | | | | | | | | bb_xx_msg will ever try to send output to syslog. Add "select CONFIG_FEATURE_SYSLOG" to relevant applets. This allows to omit syslog code if we do not have any syslog-capable applets in the build. git-svn-id: svn://busybox.net/trunk/busybox@16063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* adding files missed in prev updates (forgot about svn add)vda2006-09-072-0/+53
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed a lot of trailing \n in bb_msg() calls. It is addedvda2006-09-061-1/+1
| | | | | | | | automatically by function itself. git-svn-id: svn://busybox.net/trunk/busybox@16059 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implement optional syslog logging using ordinaryvda2006-09-0610-27/+40
| | | | | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually. git-svn-id: svn://busybox.net/trunk/busybox@16058 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - mdev and grep use xregcomp. Closes bug #1021aldot2006-09-061-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16056 69ca8d6d-28ef-0310-b511-8ec308f3f277
* run_shell.c: style fixvda2006-09-051-31/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16053 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xfunc: fix: && -> &. Also nuked two double semicolons...vda2006-09-051-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16052 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uuencode: common implementation for wget and uuencode (closing bug 694)vda2006-09-032-0/+65
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16043 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: getopt -> bb_getopt_ulflagsvda2006-09-031-0/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16037 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replacing func() with xfunc() where appropriatevda2006-09-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16034 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - pull from busybox_scratch: r15829:15850aldot2006-08-281-63/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes git-svn-id: svn://busybox.net/trunk/busybox@16009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Jordan Crouse submitted a patch to only include xregcomp.c when we actuallylandley2006-08-281-1/+15
| | | | | | | use it, thus fixing building against uClibc with regex support disabled. git-svn-id: svn://busybox.net/trunk/busybox@16004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* No real need for my_query_module() and this eliminates some type-punnedlandley2006-08-282-31/+1
| | | | | | | pointer warning on certain gcc versions (and saves 38 bytes). git-svn-id: svn://busybox.net/trunk/busybox@16003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - merge -r15463:15564 from busybox_scratch branch through these changesets:aldot2006-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines - use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert. - use xchdir() since all is invain if it fails there anyways, supposedly ------------------------------------------------------------------------ r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines - adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account. ------------------------------------------------------------------------ r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines - partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save s 144 bytes text data bss dec hex filename 862434 10156 645924 1518514 172bb2 busybox.old 862322 10156 645892 1518370 172b22 busybox function old new delta z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 new_text 70 60 -10 ipaddr_list_link 33 23 -10 gzip_main 898 822 -76 ------------------------------------------------------------------------------ (add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120) Total: -120 bytes ------------------------------------------------------------------------ r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines - remove useless global exports function old new delta rpm_main 940 1601 +661 rpm_getstring 107 112 +5 rpm_getint 148 153 +5 loop_through_files 103 106 +3 fileaction_dobackup 115 113 -2 fileaction_list 5 - -5 rpm_getcount 42 - -42 extract_cpio_gz 161 - -161 rpm_gettags 504 - -504 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714) Total: -40 bytes text data bss dec hex filename 862322 10156 645892 1518370 172b22 busybox.old 862290 10156 645892 1518338 172b02 busybox ------------------------------------------------------------------------ r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines - shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s emaphore stuff into single caller manually. stats: function old new delta logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 small 1 - -1 local_logging 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 syslogd_main 1299 1285 -14 static.res 36 16 -20 .rodata 186650 186586 -64 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136) Total: -1088 bytes cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,} text data bss dec hex filename 3723 348 5242 9313 2461 sysklogd/syslogd.o.orig 3697 348 4188 8233 2029 sysklogd/syslogd.o ============================================================================== Overall bloatcheck for the changeset mentioned above: function old new delta rpm_main 953 1608 +655 logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 rpm_getstring 107 110 +3 rpm_getint 148 151 +3 loop_through_files 103 104 +1 small 1 - -1 fileaction_dobackup 115 113 -2 z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 local_logging 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 fileaction_list 5 - -5 new_text 70 60 -10 ipaddr_list_link 33 23 -10 clear_bufs 31 21 -10 syslogd_main 1287 1273 -14 builtin_help 190 176 -14 static.res 36 16 -20 builtin_source 229 199 -30 rpm_getcount 42 - -42 gzip_main 842 786 -56 .rodata 227176 227112 -64 lash_main 609 527 -82 busy_loop 3883 3739 -144 extract_cpio_gz 155 - -155 rpm_gettags 501 - -501 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221) Total: -1511 bytes git-svn-id: svn://busybox.net/trunk/busybox@15852 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another whack at scripts/individual. Now builds 212 applets.landley2006-08-092-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15793 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out alandley2006-08-081-5/+2
| | | | | | | | | few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems... git-svn-id: svn://busybox.net/trunk/busybox@15789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add comments to all the functions in this file documenting what they're for.landley2006-08-041-33/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Thinko spotted by Vladimir Dronnikov.landley2006-08-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15774 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xcalloc() and convert its callers to xzalloc(). About half of themlandley2006-08-031-9/+0
| | | | | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. git-svn-id: svn://busybox.net/trunk/busybox@15771 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-0326-425/+143
| | | | | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleaup read() and write() variants, plus a couple of new functions likelandley2006-07-168-32/+84
| | | | | | | xlseek and fdlength() for the new mkswap. git-svn-id: svn://busybox.net/trunk/busybox@15703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We need xsetuid() and xsetgid() because per-user process resource limits canlandley2006-07-151-0/+12
| | | | | | | | prevent a process from switching to a user that has too many processes, and when that happens WE'RE STILL ROOT. See http://lwn.net/Articles/190331/ git-svn-id: svn://busybox.net/trunk/busybox@15700 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes: If the gecos field of an user is empty, obscure reports a false ↵vapier2006-07-151-1/+1
| | | | | | "similar to gecos" error. git-svn-id: svn://busybox.net/trunk/busybox@15698 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More minor tweaks.landley2006-07-122-10/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15689 69ca8d6d-28ef-0310-b511-8ec308f3f277
* decuddle () from for/if/whilevapier2006-07-121-14/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15688 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple things that got tangled up in my tree, easier to check in both thanlandley2006-07-121-160/+40
| | | | | | | | | | | | | | | | | untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree. git-svn-id: svn://busybox.net/trunk/busybox@15687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito to remove pwd_to_spwd (which we don't actually need), withlandley2006-07-112-75/+0
| | | | | | | some #ifdef removal from me. git-svn-id: svn://busybox.net/trunk/busybox@15685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Denis Vlasenko spotted the lack of bounds checking in my first attempt atlandley2006-07-111-11/+14
| | | | | | | itoa/utoa. git-svn-id: svn://busybox.net/trunk/busybox@15683 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.rpjday2006-07-1036-404/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add itoa and utoa to see what Denis Vlasenko thinks.landley2006-07-101-1/+50
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt to address Shaun Jackman's problem adding "busybox: busybox.bflt" tolandley2006-07-061-0/+6
| | | | | | | .config.mak. git-svn-id: svn://busybox.net/trunk/busybox@15659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct the comment to match the code.rpjday2006-07-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Standardize on the vi editing directives being on the first line.rpjday2006-07-0213-1/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15581 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow a user-configurable minimum password length.rpjday2006-07-022-7/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15580 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More removal of "#if 0" content.rpjday2006-07-011-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15571 69ca8d6d-28ef-0310-b511-8ec308f3f277