aboutsummaryrefslogtreecommitdiff
path: root/init
Commit message (Collapse)AuthorAgeFilesLines
* Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownGravatar Denis 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 xzallocGravatar Denis Vlasenko2007-01-031-26/+26
| | | | fix sleep-on-die option
* style fixesGravatar Denis Vlasenko2006-12-261-3/+3
| | | | last xcalloc replaced by xzalloc
* introduce LONE_CHAR (optimized strcmp with one-char string)Gravatar Denis Vlasenko2006-12-211-2/+3
|
* PID should be stored in pid_t, not int or long.Gravatar 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 senseGravatar Denis Vlasenko2006-10-271-1/+1
| | | | Found bad typo in largefile support :)
* message string changes, mostly for consistency, also -32 bytes in .rodataGravatar Denis Vlasenko2006-10-202-3/+3
|
* add open_read_close() and similar stuffGravatar Denis Vlasenko2006-10-141-1/+1
|
* attempt to regularize atoi mess.Gravatar Denis Vlasenko2006-10-081-1/+1
|
* build system overhaulGravatar Denis Vlasenko2006-10-054-82/+28
|
* bb_applet_name -> applet_nameGravatar Denis Vlasenko2006-10-033-4/+4
|
* getopt_ulflags -> getopt32.Gravatar 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.Gravatar Denis Vlasenko2006-09-271-1/+1
| | | | Few bugs are now exposed...
* Change license statements (and clean up headers) on some of the files thatGravatar Rob Landley2006-09-222-9/+2
| | | | Erik or I are primary copyright holders on.
* Add CONFIG_FEATURE_SYSLOG which controls whetherGravatar Denis 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 damageGravatar Rob 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 likeGravatar Rob Landley2006-07-161-3/+3
| | | | xlseek and fdlength() for the new mkswap.
* Patch from Shaun Jackman to set environment variable RUNLEVEL equal toGravatar Rob 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...
* More removal of "#if 0" content.Gravatar "Robert P. J. Day"2006-07-011-12/+0
|
* - move #include busybox.h to the very top so we pull in the configGravatar Bernhard Reutner-Fischer2006-06-024-20/+14
| | | | and eventual platform specific includes in early.
* - fix CONFIG_DEBUG_INIT compile failureGravatar Bernhard Reutner-Fischer2006-06-021-8/+15
|
* make halt and poweroff messages more accurate (i.e., claim "we're about to",Gravatar Paul Fox2006-06-011-24/+21
| | | | rather than "it's done", and combine with reboot handler to save space.
* - fix IMA compile error i introduced when adding this untested snippet.Gravatar Bernhard Reutner-Fischer2006-05-312-1/+2
|
* - consolidate "Sending SIG%s to all processes"; untested..Gravatar Bernhard Reutner-Fischer2006-05-303-6/+7
| | | | | | text data bss dec hex filename 5379 32 8 5419 152b init/init.o.oorig 5358 32 8 5398 1516 init/init.o
* - remove useless variable "status" from init_main.Gravatar Bernhard Reutner-Fischer2006-05-301-3/+2
| | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/waitpid.html suggests that we need not specify a status if we don't want, and we don't. "If wait() or waitpid() return because the status of a child process is available, these functions shall return a value equal to the process ID of the child process. In this case, if the value of the argument stat_loc is not a null pointer, information shall be stored in the location pointed to by stat_loc. " text data bss dec hex filename 5391 32 8 5431 1537 init/init.o.06 5379 32 8 5419 152b init/init.o
* - use config_buffer for message()Gravatar Bernhard Reutner-Fischer2006-05-301-25/+14
| | | | | | | | | | | | | | - add second argument to waitfor(*action,pid); if action==NULL then use pid tor wait for. If an action was given, we wait for the action to finish just as before. In run() remove second and third occurance of the same functionality the waitfor() call now provides. Adjust the former only caller of waitfor accordingly. PS: Not using waitfor but creating a second function used a few bytes more than simply extending and reusing waitfor. text data bss dec hex filename 5426 32 8 5466 155a init/init.o.orig 5391 32 8 5431 1537 init/init.o
* - DEBUG_INIT -> config CONFIG_DEBUG_INITGravatar Bernhard Reutner-Fischer2006-05-292-13/+16
|
* - landley, remove this?Gravatar Bernhard Reutner-Fischer2006-05-291-1/+1
|
* - set_term() doesn't need an argument. (Like r15220 this is just compile-tested)Gravatar Bernhard Reutner-Fischer2006-05-291-6/+6
| | | | | | | text data bss dec hex filename 5432 32 8 5472 1560 init/init.o.r15220 5426 32 8 5466 155a init/init.o
* - move common code into new open_new_terminal() function;Gravatar Bernhard Reutner-Fischer2006-05-291-23/+27
| | | | | | | | | | | | | text data bss dec hex filename 864434 10244 645892 1520570 1733ba busybox_old 864386 10244 645892 1520522 17338a busybox_unstripped add/remove: 1/0 grow/shrink: 0/2 up/down: 92/-143 (-51) function old new delta open_new_terminal - 92 +92 exec_signal 345 276 -69 run 1527 1453 -74 Again, 48 != 51 so let's trust the former..
* Consolidate #include <sys/time.h> so libbb.h does it.Gravatar Rob Landley2006-05-271-1/+0
|
* - provide fallback defines for non-linuxGravatar Bernhard Reutner-Fischer2006-05-261-1/+13
|
* - use portability wrapper define bb_setpgrp.Gravatar Bernhard Reutner-Fischer2006-05-261-1/+2
|
* - remove emacs layout block as suggested by Robert P.J. DayGravatar Bernhard Reutner-Fischer2006-05-191-8/+0
| | | | - use shorter boilerplate while at it
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵Gravatar Mike Frysinger2006-05-131-1/+1
| | | | mailing list
* fix whitespaceGravatar Mike Frysinger2006-05-131-1/+1
|
* just include fcntl.h not sys/fcntl.hGravatar Mike Frysinger2006-04-291-1/+1
|
* Patch from Robert P Day: let menuconfig indent stuff for us, we don't haveGravatar Rob Landley2006-04-131-5/+5
| | | | to do it in Config.in.
* remove some more config code rob missed in rev 13701 cleanup as reported by ↵Gravatar Mike Frysinger2006-03-281-5/+0
| | | | Robert P. J. Day
* More from Jan Kiszka: this is a port of the latest sysv-init SELinux patch.Gravatar Rob Landley2006-03-271-0/+21
| | | | | | It makes busybox invoke the libselinux library function to load the binary policy right at system start-up. It was successfully tested on a mini-SELinux system. Note: requires recent libselinux. I'm using 1.28.
* Patch from Rogelio Serrano to defer checking whether the tty exists untilGravatar Rob Landley2006-03-221-4/+3
| | | | we actually need to spawn something on it.
* - revert back to r14406Gravatar Bernhard Reutner-Fischer2006-03-131-7/+14
|
* Patch from Denis Vlasenko turning static const int (which gets emitted intoGravatar Rob Landley2006-03-101-11/+14
| | | | the busybox binary) into enums (which don't).
* - backout using features which are not available with the previous stableGravatar Bernhard Reutner-Fischer2006-03-091-2/+6
| | | | version of make (3.71.1).
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionGravatar Rob Landley2006-03-063-3/+3
| | | | definitions. (That should only be on prototypes.)
* - use absolute path for top_builddir and top_srcdir.Gravatar Bernhard Reutner-Fischer2006-03-021-0/+4
| | | | Fixes make trying to include the very same file in an endless loop.
* - fixes parallel builds (make -j)Gravatar Bernhard Reutner-Fischer2006-03-011-13/+2
| | | | - use less resources for the buildsystem itself
* Patch from Denis Vlasenko to constify things and fix a few typos.Gravatar Rob Landley2006-02-221-2/+4
|
* Don't build directory libraries unless we're building an applet that needs it.Gravatar Rob Landley2006-02-211-0/+2
| | | | Cherry-picked from Devin Bayer's big MacOS X patch.
* Missed this in svn 13701.Gravatar Rob Landley2006-02-101-12/+0
|