Where can I find the source code of the "halt" tool? [closed]
Here's a version of halt from busybox. The linux/bsd/whatever one is probably similar in many ways, although a little more elaborate :)
This URL appears to have a copy of the sysvinit source:
ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.86.tar.gz
The halt source should be in that archive.
The code for NetBSD is here : http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/reboot/reboot.c?rev=1.35.4.1&content-type=text/x-cvsweb-markup