summaryrefslogtreecommitdiff
path: root/init (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cttyhack: add missing ';'Denis Vlasenko2007-12-101-5/+7
| | | | | init: remove pointless access() check
* init: remove superfluous forks and messing up with argv[0]Denis Vlasenko2007-12-102-124/+123
| | | | | cttyhack: add stealing of ctty
* syslogd: use DEV_CONSOLE consistentlyDenis Vlasenko2007-11-181-4/+0
| | | | | init: remove obsolete comment
* init: fix bug 1584: improper check for fork errorDenis Vlasenko2007-11-101-2/+1
|
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-2/+4
| | | | | | readahead: stop using stdio.h *: style fixes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-113-3/+3
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-011-1/+1
| | | | | 263 bytes saved.
* introduce and use close_on_exec_on(fd). -50 bytes.Denis Vlasenko2007-09-301-1/+1
|
* *: kill bb_get_last_path_component, replace with two functionsDenis Vlasenko2007-09-241-2/+3
| | | | | | | | | (one which strips trailing slash and one which does not) wget: straighten out as a result of above change text data bss dec hex filename 5056 1 0 5057 13c1 busybox.t4/networking/wget.o 5022 0 0 5022 139e busybox.t5/networking/wget.o
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (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
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-3/+3
| | | | | | | | | 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
* init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko2007-06-141-12/+10
| | | | | | init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
* *: BB_BANNER -> bb_banner (it is not a const or #define)!Denis Vlasenko2007-06-131-1/+1
| | | | | | | | | | | | correct_password: explain in detail why it is ok to use bb_banner fsck_minix: make it print bb version, not it's own (outdated/irrelevant) one Marginal size difference: text data bss dec hex filename 679119 2700 15632 697451 aa46b busybox_old 679091 2700 15632 697423 aa44f busybox_unstripped
* remove nearly-duplicate PATHs in several placesDenis Vlasenko2007-06-121-5/+1
| | | | | | | | | | | | | | function old new delta bb_PATH_root_path - 35 +35 varunset 60 58 -2 arith 2042 2033 -9 bb_default_root_login_path 30 - -30 .rodata 128794 128762 -32 which_main 152 117 -35 defpathvar 40 - -40 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes
* delete tons of extra #includesDenis Vlasenko2007-05-311-3/+3
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-263-3/+3
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes. No code changesDenis Vlasenko2007-04-121-1/+1
|
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-042-4/+4
|
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-241-2/+1
|
* decouple INIT and SYSLOGD (patch by Eric Spakman E.Spakman@inter.nl.net)Denis Vlasenko2007-03-052-5/+10
|
* init: fix handling of stdio file descriptorsDenis Vlasenko2007-03-051-10/+10
|
* init: de-indent a block of codeDenis Vlasenko2007-02-271-143/+139
|
* init: trivial compile fixDenis Vlasenko2007-02-271-2/+2
|
* init: stop doing silly things with the console (-400 bytes)Denis Vlasenko2007-02-214-292/+131
| | | | init_shared.[ch]: unused, thus deleted
* init: code readability enhancements; very small code changesDenis Vlasenko2007-02-171-52/+52
|
* - whitespace cleanup and add a possible shrinkage suggestionBernhard Reutner-Fischer2007-02-161-3/+4
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-033-0/+3
| | | | no preceding prototype
* assorted fixes for bugs found with randomconfigDenis Vlasenko2007-02-031-1/+1
|
* lineedit: add missing #if/#endifDenis Vlasenko2007-02-031-5/+4
| | | | init: fix warnings
* Add BB_EXEC[LV]P() which encapsulate FEATURE_EXEC_PREFER_APPLETSDenis Vlasenko2007-02-031-14/+3
| | | | (patch from Gabriel L. Somlo <somlo@cmu.edu>)
* preparatory patch for -Wwrite-strings #3Denis Vlasenko2007-01-291-8/+8
|
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-13/+11
|
* Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownDenis Vlasenko2007-01-211-9/+20
| | | | | | executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
* convert calloc to xzallocDenis Vlasenko2007-01-031-26/+26
| | | | fix sleep-on-die option
* style fixesDenis Vlasenko2006-12-261-3/+3
| | | | last xcalloc replaced by xzalloc
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-2/+3
|
* PID should be stored in pid_t, not int or long.Denis Vlasenko2006-11-011-11/+16
| | | | | find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.
* reshuffle libbb.h contents so that order of decls makes senseDenis Vlasenko2006-10-271-1/+1
| | | | Found bad typo in largefile support :)
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-202-3/+3
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-1/+1
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* build system overhaulDenis Vlasenko2006-10-054-82/+28
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-033-4/+4
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.Denis Vlasenko2006-09-271-1/+1
| | | | Few bugs are now exposed...
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-222-9/+2
| | | | Erik or I are primary copyright holders on.
* Add CONFIG_FEATURE_SYSLOG which controls whetherDenis Vlasenko2006-09-071-0/+1
| | | | | | | | 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.
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damageRob Landley2006-08-291-4/+1
| | | | | (the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit).
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-3/+3
| | | | xlseek and fdlength() for the new mkswap.
* Patch from Shaun Jackman to set environment variable RUNLEVEL equal toRob Landley2006-07-091-19/+3
| | | | | | | init's argv[1], so if you append "single" to your kernel command line and the kernel doesn't parse it, RUNLELEL=single. Plus a few unrelated header cleanups while I was in the area...