aboutsummaryrefslogtreecommitdiff
path: root/init/halt.c
AgeCommit message (Collapse)Author
2006-11-01PID should be stored in pid_t, not int or long.Denis Vlasenko
find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.
2006-10-20message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
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.
2006-09-22Change license statements (and clean up headers) on some of the files thatRob Landley
Erik or I are primary copyright holders on.
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-26- provide fallback defines for non-linuxBernhard Reutner-Fischer
2006-02-22Patch from Denis Vlasenko to constify things and fix a few typos.Rob Landley
2006-01-30Re-add initrd support, unify halt/reboot/poweroff, add -n and -f options.Rob Landley
2006-01-22The whole "init is sometimes pid 3" thing is silly. Init is pid 1, anythingRob Landley
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.)
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-07-22Support reboot, halt, and poweroff independent of busybox init.Eric Andersen
Simplify and fixup some logic. -Erik
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-06-27Apply last_patch93 from vodz:Eric Andersen
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
2003-03-19Major coreutils update.Manuel Novoa III
2002-04-13Update some missing copyright noticesEric Andersen
2001-12-06If find_pid_by_name() had an error, it was returning -1, but storingEric Andersen
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
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-10-18Fix a nasty bug with variable name shadowingEric Andersen
2001-10-03Look for either "init" or "linuxrc" processesEric Andersen
2001-07-05Be extra extra careful about what we dereference.Eric Andersen
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-07-19Centralize handling of --help.Matt Kraai
2000-07-19Add usage messages for applets without them.Matt Kraai
2000-06-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
2000-04-07Patch to make killall actually kill all PIDs with the specified name,Erik Andersen
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
2000-03-07Fix bugs related to finding PIDs.Erik Andersen
-Erik
2000-03-07Wrote killall.Erik Andersen
Adjusted mount, ps, utility.c, etc to handle my nifty new kernel patches the allow busybox to run perfectly without /proc. -Erik
2000-02-08Some formatting updates (ran the code through indent)Erik Andersen
-Erik
1999-12-09Adjustments for Johns init stuff,Eric Andersen
-Erik
1999-10-20Fixed up copyright notices and suchEric Andersen
1999-10-18More stuffEric Andersen
1999-10-05Initial revisionEric Andersen