aboutsummaryrefslogtreecommitdiff
path: root/init/init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* delete tons of extra #includesvda2007-05-311-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18717 69ca8d6d-28ef-0310-b511-8ec308f3f277
* usage.c: remove reference to busybox.hvda2007-05-261-1/+1
| | | | | | | | *: s/include "busybox.h"/include "libbb.h" git-svn-id: svn://busybox.net/trunk/busybox@18696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes. No code changesvda2007-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18409 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random style fixes (extra spaces deleted)vda2007-03-241-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18228 69ca8d6d-28ef-0310-b511-8ec308f3f277
* decouple INIT and SYSLOGD (patch by Eric Spakman E.Spakman@inter.nl.net)vda2007-03-051-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18011 69ca8d6d-28ef-0310-b511-8ec308f3f277
* init: fix handling of stdio file descriptorsvda2007-03-051-10/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* init: de-indent a block of codevda2007-02-271-143/+139
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17980 69ca8d6d-28ef-0310-b511-8ec308f3f277
* init: trivial compile fixvda2007-02-271-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17979 69ca8d6d-28ef-0310-b511-8ec308f3f277
* init: stop doing silly things with the console (-400 bytes)vda2007-02-211-217/+131
| | | | | | | init_shared.[ch]: unused, thus deleted git-svn-id: svn://busybox.net/trunk/busybox@17937 69ca8d6d-28ef-0310-b511-8ec308f3f277
* init: code readability enhancements; very small code changesvda2007-02-171-52/+52
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - whitespace cleanup and add a possible shrinkage suggestionaldot2007-02-161-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17909 69ca8d6d-28ef-0310-b511-8ec308f3f277
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+1
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* assorted fixes for bugs found with randomconfigvda2007-02-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lineedit: add missing #if/#endifvda2007-02-031-5/+4
| | | | | | | init: fix warnings git-svn-id: svn://busybox.net/trunk/busybox@17734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add BB_EXEC[LV]P() which encapsulate FEATURE_EXEC_PREFER_APPLETSvda2007-02-031-14/+3
| | | | | | | (patch from Gabriel L. Somlo <somlo@cmu.edu>) git-svn-id: svn://busybox.net/trunk/busybox@17733 69ca8d6d-28ef-0310-b511-8ec308f3f277
* preparatory patch for -Wwrite-strings #3vda2007-01-291-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownvda2007-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> git-svn-id: svn://busybox.net/trunk/busybox@17426 69ca8d6d-28ef-0310-b511-8ec308f3f277
* convert calloc to xzallocvda2007-01-031-26/+26
| | | | | | | fix sleep-on-die option git-svn-id: svn://busybox.net/trunk/busybox@17140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-261-3/+3
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce LONE_CHAR (optimized strcmp with one-char string)vda2006-12-211-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* reshuffle libbb.h contents so that order of decls makes sensevda2006-10-271-1/+1
| | | | | | | Found bad typo in largefile support :) git-svn-id: svn://busybox.net/trunk/busybox@16453 69ca8d6d-28ef-0310-b511-8ec308f3f277
* message string changes, mostly for consistency, also -32 bytes in .rodatavda2006-10-201-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add open_read_close() and similar stuffvda2006-10-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_applet_name -> applet_namevda2006-10-031-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.vda2006-09-271-1/+1
| | | | | | | Few bugs are now exposed... git-svn-id: svn://busybox.net/trunk/busybox@16242 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damagelandley2006-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). git-svn-id: svn://busybox.net/trunk/busybox@16015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleaup read() and write() variants, plus a couple of new functions likelandley2006-07-161-3/+3
| | | | | | | xlseek and fdlength() for the new mkswap. git-svn-id: svn://busybox.net/trunk/busybox@15703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman to set environment variable RUNLEVEL equal tolandley2006-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... git-svn-id: svn://busybox.net/trunk/busybox@15671 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More removal of "#if 0" content.rpjday2006-07-011-12/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15571 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix CONFIG_DEBUG_INIT compile failurealdot2006-06-021-8/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15264 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make halt and poweroff messages more accurate (i.e., claim "we're about to",pgf2006-06-011-24/+21
| | | | | | | rather than "it's done", and combine with reboot handler to save space. git-svn-id: svn://busybox.net/trunk/busybox@15259 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - consolidate "Sending SIG%s to all processes"; untested..aldot2006-05-301-2/+2
| | | | | | | | | text data bss dec hex filename 5379 32 8 5419 152b init/init.o.oorig 5358 32 8 5398 1516 init/init.o git-svn-id: svn://busybox.net/trunk/busybox@15239 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove useless variable "status" from init_main.aldot2006-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 git-svn-id: svn://busybox.net/trunk/busybox@15237 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use config_buffer for message()aldot2006-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 git-svn-id: svn://busybox.net/trunk/busybox@15236 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - DEBUG_INIT -> config CONFIG_DEBUG_INITaldot2006-05-291-13/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15223 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - landley, remove this?aldot2006-05-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15222 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - set_term() doesn't need an argument. (Like r15220 this is just compile-tested)aldot2006-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 git-svn-id: svn://busybox.net/trunk/busybox@15221 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move common code into new open_new_terminal() function;aldot2006-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.. git-svn-id: svn://busybox.net/trunk/busybox@15220 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-271-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-191-8/+0
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix whitespacevapier2006-05-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just include fcntl.h not sys/fcntl.hvapier2006-04-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14962 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More from Jan Kiszka: this is a port of the latest sysv-init SELinux patch.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. git-svn-id: svn://busybox.net/trunk/busybox@14672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Rogelio Serrano to defer checking whether the tty exists untillandley2006-03-221-4/+3
| | | | | | | we actually need to spawn something on it. git-svn-id: svn://busybox.net/trunk/busybox@14606 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko turning static const int (which gets emitted intolandley2006-03-101-11/+14
| | | | | | | the busybox binary) into enums (which don't). git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed anoinig `unused' warningsvodz2006-02-011-8/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13787 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-add initrd support, unify halt/reboot/poweroff, add -n and -f options.landley2006-01-301-13/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13701 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The whole "init is sometimes pid 3" thing is silly. Init is pid 1, anythinglandley2006-01-221-15/+2
| | | | | | | | | else is a kernel bug. Both 2.4 and 2.6 should get this right now. This should fix the bug IraquiGeek is seeing (although killall still needs to be fixed.) git-svn-id: svn://busybox.net/trunk/busybox@13489 69ca8d6d-28ef-0310-b511-8ec308f3f277