aboutsummaryrefslogtreecommitdiff
path: root/init/halt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"aldot2007-04-041-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18327 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
* PID should be stored in pid_t, not int or long.vda2006-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. git-svn-id: svn://busybox.net/trunk/busybox@16485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* message string changes, mostly for consistency, also -32 bytes in .rodatavda2006-10-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* attempt to regularize atoi mess.vda2006-10-081-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_applet_name -> applet_namevda2006-10-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-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. git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change license statements (and clean up headers) on some of the files thatlandley2006-09-221-3/+1
| | | | | | | Erik or I are primary copyright holders on. git-svn-id: svn://busybox.net/trunk/busybox@16175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-3/+2
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - provide fallback defines for non-linuxaldot2006-05-261-1/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15197 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko to constify things and fix a few typos.landley2006-02-221-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14210 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-add initrd support, unify halt/reboot/poweroff, add -n and -f options.landley2006-01-301-12/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13701 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The whole "init is sometimes pid 3" thing is silly. Init is pid 1, anythinglandley2006-01-221-22/+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
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support reboot, halt, and poweroff independent of busybox init.andersen2003-07-221-2/+18
| | | | | | | | Simplify and fixup some logic. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7091 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply last_patch93 from vodz:andersen2003-06-271-12/+3
| | | | | | | | | | | | | | | | andersen@busybox.net wrote: >Message: 4 >Modified Files: > init.c >Log Message: >Remove code for unsupported kernel versions Hmm. Current init.c have check >= 2.2.0 kernel one time too. Ok. Last patch removed this point and move common init code to new file for /init dir git-svn-id: svn://busybox.net/trunk/busybox@7008 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update some missing copyright noticesandersen2002-04-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If find_pid_by_name() had an error, it was returning -1, but storingandersen2001-12-061-1/+1
| | | | | | | | | | | that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik git-svn-id: svn://busybox.net/trunk/busybox@3854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a nasty bug with variable name shadowingandersen2001-10-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Look for either "init" or "linuxrc" processesandersen2001-10-031-2/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3476 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be extra extra careful about what we dereference.andersen2001-07-051-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-1/+1
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Centralize handling of --help.kraai2000-07-191-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add usage messages for applets without them.kraai2000-07-191-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-2/+2
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch to make killall actually kill all PIDs with the specified name,erik2000-04-071-1/+1
| | | | | | | | | | rather then busylooping trying to kill the first one until it dies. Should be more efficient now, and will only send one signal to each specified process. -Erik git-svn-id: svn://busybox.net/trunk/busybox@437 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bugs related to finding PIDs.erik2000-03-071-0/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Wrote killall.erik2000-03-071-1/+1
| | | | | | | | | Adjusted mount, ps, utility.c, etc to handle my nifty new kernel patches the allow busybox to run perfectly without /proc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@393 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-5/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Adjustments for Johns init stuff,andersen1999-12-091-1/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@188 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed up copyright notices and suchandersen1999-10-201-0/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@49 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stuffandersen1999-10-181-6/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@33 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initial revisionandersen1999-10-051-0/+12
git-svn-id: svn://busybox.net/trunk/busybox@5 69ca8d6d-28ef-0310-b511-8ec308f3f277