aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ipcs: silly trick with strings. saves ~200 bytes.vda2006-09-102-40/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16092 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup headers and replace the zero padding with an even smaller version.landley2006-09-101-46/+10
| | | | | | | | | | | | One of the pads turned out to be unnecessary: sizeof(struct TarHeader) is TAR_BLOCK_SIZE, the padding's in the struct. The others could be done inline with bb_common_bufsiz1. This is a cleanup I did to Denis' patch long ago, but got sidetracked by what turned into svn 15660. git-svn-id: svn://busybox.net/trunk/busybox@16090 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sulogin: minor cleanup.vda2006-09-091-17/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16086 69ca8d6d-28ef-0310-b511-8ec308f3f277
* setkeycodes: something horrible happened herevda2006-09-091-24/+23
| | | | | | | | to indentation... fixed now git-svn-id: svn://busybox.net/trunk/busybox@16085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* top: fixed wrong comment, made error message more clearvda2006-09-091-10/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16084 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix "xopen with O_CREAT" warning, improve zero padding writevda2006-09-092-59/+71
| | | | | | | | (was doing zillions of 1-byte write syscalls) git-svn-id: svn://busybox.net/trunk/busybox@16083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xopen3(O_RDONLY) -> xopen(O_RDONLY).vda2006-09-091-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16082 69ca8d6d-28ef-0310-b511-8ec308f3f277
* using [xa]sprintf for string concatenation is neat and savesvda2006-09-096-13/+10
| | | | | | | | ~100 bytes according to bloatcheck. Also this fixes bug in rpm git-svn-id: svn://busybox.net/trunk/busybox@16081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* wget: wrap one atrociously long line (around 200 chars long!).vda2006-09-091-18/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* udhcp: FEATURE_UDHCP_SYSLOG should be selected only ifvda2006-09-091-2/+1
| | | | | | | | udhcp[cd] really are going to use it. git-svn-id: svn://busybox.net/trunk/busybox@16079 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: use some ideas from util-linux's login.vda2006-09-081-25/+15
| | | | | | | | | | | O_NONBLOCKing output on login timeout. fchmod instead of chmod (latter is racy). is_my_tty() is not needed anymore after race is fixed (is_my_tty() was racy too anyway...). git-svn-id: svn://busybox.net/trunk/busybox@16077 69ca8d6d-28ef-0310-b511-8ec308f3f277
* few random readability enhansements. No code changesvda2006-09-083-8/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16076 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: make it saner and smaller by ~0.5k.vda2006-09-081-185/+131
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16075 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: small fixes like \n removal, bb_error_msg'ification, etc.vda2006-09-081-19/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16074 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: previous commit comment was wrong :)vda2006-09-081-131/+133
| | | | | | | | | That commit added login script support. Now _this commit_ is a style fix. Sorry.... git-svn-id: svn://busybox.net/trunk/busybox@16073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: style fixesvda2006-09-084-9/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16072 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shrinkage/cleanup from Tito.landley2006-09-081-87/+45
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16071 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix warnings.landley2006-09-081-16/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16070 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Second drop. More infrastructure in place, especially for parsing pipelines.landley2006-09-081-21/+172
| | | | | | | | | | | | | The minimal version got a couple hundred bytes bigger, partly because it's broken into more functions but mostly because it now dynamically reallocates and frees everything with no hard-coded limits. (I thought about making that optional, but there's a limit to what I can debug and maintain. It should still be reasonably NOMMU friendly, the allocations are small and short lived, and shouldn't contribute noticeably to long-term memory fragmentation.) git-svn-id: svn://busybox.net/trunk/busybox@16069 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A quick cleanup pass of some low-hanging mess.landley2006-09-081-115/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16068 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bugfix for: echo '123456789' | sed 's/./|&/5'landley2006-09-081-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16067 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix (hopefully) bug 976. Need more thorough audit.vda2006-09-075-11/+27
| | | | | | | | Restore erroneously removed FEATURE_UDHCP_SYSLOG. git-svn-id: svn://busybox.net/trunk/busybox@16066 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getty, sulogin: convert to using bb_msg for syslog outputvda2006-09-0714-114/+96
| | | | 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-079-12/+26
| | | | | | | | | | | 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
* CONFIG_FEATURE_COMPRESS_USAGE was impossible to turn onvda2006-09-071-1/+1
| | | | | | | | if !CONFIG_NITPICK git-svn-id: svn://busybox.net/trunk/busybox@16062 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
* Denis Vlasenko has started to put stuff on his BusyBox home page, so index it.landley2006-09-061-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16060 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed a lot of trailing \n in bb_msg() calls. It is addedvda2006-09-0614-35/+35
| | | | | | | | 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-0639-366/+296
| | | | | | | | | 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
* - strip 399424 off the bss by making decompress_uncompress buffers config ↵aldot2006-09-061-12/+10
| | | | | | | | | | | | | | | | | | | | | | buffers. Compile tested (too lazy to look for a small .Z on the net). $ size busybox.old busybox text data bss dec hex filename 859555 10232 645732 1515519 171fff busybox.old 859683 10232 246308 1116223 11083f busybox $ make bloatcheck function old new delta uncompress 1036 1160 +124 inbuf 2116 4 -2112 outbuf 4100 4 -4096 htab 131072 - -131072 codetab 262144 - -262144 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/2 up/down: 124/-399424) Total: -399300 bytes git-svn-id: svn://busybox.net/trunk/busybox@16057 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
* Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup oflandley2006-09-051-3/+3
| | | | | | | his code introduced a bug (an extra backslash in the CIFS mount string). git-svn-id: svn://busybox.net/trunk/busybox@16055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The bb_ prefixes were removed from xasprintf() and xopen() a month ago (inlandley2006-09-051-2/+2
| | | | | | | svn 15767). git-svn-id: svn://busybox.net/trunk/busybox@16054 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-052-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16052 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Might as well commit this to have the history. It's not linked in to thelandley2006-09-051-0/+73
| | | | | | | | | | | | applet list yet (and won't be until it can replace lash, I'm not having five shells in menuconfig at once), but you can build it with scripts/individual and mostly this is checked in so I can bloatcheck future versions against it easily.... This is about as small as a shell can get and still be a shell. git-svn-id: svn://busybox.net/trunk/busybox@16051 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Thinko.landley2006-09-041-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16048 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Natanael Copa to make start-stop-daemon just use readlink andlandley2006-09-041-8/+9
| | | | | | | strcmp to check if a program is already running. git-svn-id: svn://busybox.net/trunk/busybox@16047 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sulogin: fix bug: -tNNN didn't workvda2006-09-031-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16045 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg: fix buffer overflow (bug 983)vda2006-09-031-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16044 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uuencode: common implementation for wget and uuencode (closing bug 694)vda2006-09-037-84/+105
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16043 69ca8d6d-28ef-0310-b511-8ec308f3f277
* archival: added O_TRUNC so that when we overwrite files on unpack,vda2006-09-035-13/+19
| | | | | | | | | we truncate them. Also spotted & fixed hard to trigger bug with extension handling. git-svn-id: svn://busybox.net/trunk/busybox@16042 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: revert older fix (non-portable), added new one.vda2006-09-034-7/+44
| | | | | | | | testsuite tar-extracts-all-subdirs now passes. git-svn-id: svn://busybox.net/trunk/busybox@16041 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: bb_error_msg had stray newlines; small optimization in opt parsingvda2006-09-031-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16040 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: minor fixesvda2006-09-031-20/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: fix stdout/err versus syslog output.vda2006-09-031-12/+27
| | | | | | | | Incomplete: xfunc() would not respect this. TODO. git-svn-id: svn://busybox.net/trunk/busybox@16038 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: getopt -> bb_getopt_ulflagsvda2006-09-032-37/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16037 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: convert lots of zero-initialized localsvda2006-09-031-41/+43
| | | | | | | | in zcip_main() to statics in bss. git-svn-id: svn://busybox.net/trunk/busybox@16036 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: use xfunc() where appropriatevda2006-09-031-29/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16035 69ca8d6d-28ef-0310-b511-8ec308f3f277