aboutsummaryrefslogtreecommitdiff
path: root/coreutils
Commit message (Collapse)AuthorAgeFilesLines
* rename bb_default_error_retval -> xfunc_error_retvalGravatar Denis Vlasenko2006-10-036-8/+8
|
* runit/chpst: "change process state" utilityGravatar Denis Vlasenko2006-10-031-3/+3
| | | | It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k
* sed: unbreak multiple -e, -f option handling (my fault)Gravatar Denis Vlasenko2006-10-011-1/+1
|
* g[un]zip: add support for -v (verbose).Gravatar Denis Vlasenko2006-10-011-0/+2
| | | | | Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
* wc: optionally support very large files in wcGravatar Denis Vlasenko2006-09-292-3/+15
|
* wc: reduce source cruft, make it so that "wc -c" (one option, no filenames)Gravatar Denis Vlasenko2006-09-291-44/+31
| | | | will not print leading blanks.
* Yet another silly little byte saving. couldn't -> cannotGravatar Denis Vlasenko2006-09-291-1/+1
|
* Tried to find sha1_crypt - nope... ok, save few bytes in md5_sha1_sum.cGravatar Denis Vlasenko2006-09-281-11/+9
| | | | (time to sleep, 02:28 in the morning)...
* usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.Gravatar Denis Vlasenko2006-09-271-5/+5
| | | | Few bugs are now exposed...
* silly switch style fixGravatar Denis Vlasenko2006-09-272-2/+2
|
* Another attempt at untangling the logic so the compiler can follow it and notGravatar Rob Landley2006-09-231-24/+23
| | | | generate pointless warnings.
* remove unneeded #includes, fix indentationGravatar Denis Vlasenko2006-09-231-23/+15
|
* Follow-up to 16172: this also doesn't produce a warning for me on gcc 4.1,Gravatar Rob Landley2006-09-221-1/+1
| | | | without having to feed the compiler nonsense.
* - pull r15578 from busybox_scratch branch:Gravatar Bernhard Reutner-Fischer2006-09-211-25/+21
| | | | | | | | | | | | | | | - fix bug where it would behave wrong if ./nohup.out was not writable. - debloat and make it readable while at it. $ size coreutils/nohup.o* text data bss dec hex filename 362 0 0 362 16a coreutils/nohup.o.trunk 344 0 0 344 158 coreutils/nohup.o $ make bloatcheck function old new delta nohup_main 324 310 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-14) Total: -14 bytes
* - silence gcc warning about a funcptr possibly being used uninitialized.Gravatar Bernhard Reutner-Fischer2006-09-211-2/+2
| | | | | | | This is a perfect example on where we should NOT care if the functor is not initialized since the result will not be what the user may expect. Safe bet would be to init to NULL, but let's try normal uu for good measure. - fix commentary typo while at it.
* - fix embarrassing typo of mine. Closes bug #1038Gravatar Bernhard Reutner-Fischer2006-09-201-2/+2
|
* stty: fix few bugs found in testingGravatar Denis Vlasenko2006-09-191-25/+27
|
* stty: reorder code, reducing need in forward declarations.Gravatar Denis Vlasenko2006-09-191-211/+198
| | | | added few missed bits of error checking for parameters.
* stty: convert "enum mode_type" into unnamed enumGravatar Denis Vlasenko2006-09-191-157/+169
| | | | | (reduces code obfuscation); deindent set_mode; add _or_die suffixes to few functions
* stty: reduce #ifdef forestGravatar Denis Vlasenko2006-09-191-52/+45
|
* stty: simplify linewrapping code a bitGravatar Denis Vlasenko2006-09-191-55/+33
|
* stty: style fixesGravatar Denis Vlasenko2006-09-191-102/+93
|
* stty: fix a longstanding FIXME (was able to die half-way setting term params)Gravatar Denis Vlasenko2006-09-191-171/+241
|
* whitespace cleanupGravatar Denis Vlasenko2006-09-1712-24/+24
|
* - fix copy'n paste errors that got introduced when switching to the shorter ↵Gravatar Bernhard Reutner-Fischer2006-09-131-1/+1
| | | | | | boilerplate. No object code changes.
* using [xa]sprintf for string concatenation is neat and savesGravatar Denis Vlasenko2006-09-091-1/+1
| | | | | ~100 bytes according to bloatcheck. Also this fixes bug in rpm
* few random readability enhansements. No code changesGravatar Denis Vlasenko2006-09-081-2/+2
|
* getty, sulogin: convert to using bb_msg for syslog outputGravatar Denis Vlasenko2006-09-071-1/+1
|
* uuencode: common implementation for wget and uuencode (closing bug 694)Gravatar Denis Vlasenko2006-09-031-60/+6
|
* - pull from busybox_scratch: r15829:15850Gravatar Bernhard Reutner-Fischer2006-08-2812-767/+703
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* "Jordan Crouse" <jordan.crouse@amd.com> says:Gravatar Rob Landley2006-08-221-3/+5
| | | | | | | | | | The following patch makes coreutils/test.c act fail gracefully if getgroups() returns a -1.  This fixes a problem on the One Laptop Per Child ROM image whereby we were getting odd Memory exhausted messages for '[' and 'test'. Found by Mitch Bradley <wmb@firmworks.com> (Tweaked by Rob: no need to initialize a static to NULL, or realloc something that's only allocated when it's NULL.)
* - merge -r15463:15564 from busybox_scratch branch through these changesets:Gravatar Bernhard Reutner-Fischer2006-08-202-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ 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
* Another whack at scripts/individual. Now builds 212 applets.Gravatar Rob Landley2006-08-091-8/+2
|
* Teach md5sum and sha1sum to work the way other applets do so I don't have toGravatar Rob Landley2006-08-061-16/+6
| | | | | | teach scripts/individual new tricks. And while I'm at it, teach scripts/individual other new tricks. Now builds 198 applets, some of which I should teach it to hardlink together because they're really the same app...
* Remove xcalloc() and convert its callers to xzalloc(). About half of themGravatar Rob Landley2006-08-033-4/+4
| | | | | 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.
* These should have been part of 15767 too.Gravatar Rob Landley2006-08-031-1/+1
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateGravatar Rob Landley2006-08-0324-230/+53
| | | | | | | | | | 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.)
* Remove code that can't be reached.Gravatar Rob Landley2006-07-311-3/+1
|
* Patch from Shaun Jackman, set optind by hand if we don't call getopt.Gravatar Rob Landley2006-07-261-0/+1
|
* move lchown/chown define out of specific files and into platform.h where it ↵Gravatar Mike Frysinger2006-07-201-5/+0
| | | | belongs
* Cleaup read() and write() variants, plus a couple of new functions likeGravatar Rob Landley2006-07-162-11/+4
| | | | xlseek and fdlength() for the new mkswap.
* Patch from Suresh Rajashekara moving comments and #includes and such around.Gravatar Rob Landley2006-07-141-16/+17
|
* Add one-line GPL boilerplate to numerous (but not all yet) source files.Gravatar "Robert P. J. Day"2006-07-1232-433/+38
|
* Standardize on the vi editing directives being on the first line.Gravatar "Robert P. J. Day"2006-07-0210-4/+10
|
* More removal of "#if 0" content.Gravatar "Robert P. J. Day"2006-07-011-18/+0
|
* Remove all usage of the "register" storage class specifier.Gravatar "Robert P. J. Day"2006-07-014-5/+5
|
* Make warnings go away.Gravatar Rob Landley2006-06-301-19/+21
|
* Fix bug 744 by moving the flushing logic into the exhausted read buffer test.Gravatar Rob Landley2006-06-301-75/+22
| | | | | (Also some other minor cleanups while I was there, shouldn't affect the resulting binary.)
* I broke allbareconfig with half-finished cleanups I'd forgotten weren't done.Gravatar Rob Landley2006-06-201-23/+18
| | | | | Got both to a decent stopping point. (There's a lot more cleanup to do on ls.c but now is not the time...)
* Make some 64 bit warnings go away on x86-64.Gravatar Rob Landley2006-06-191-8/+7
|