On Tue, Aug 26, 2008 at 12:47:53PM -0700, Christopher Joyner wrote: > How can I get the source code for the /sbin/halt program?
Look at /usr/src/sbin/reboot/reboot.c. /sbin/reboot is linked to fasthalt, fastboot and halt. See /usr/src/sbin/reboot/Makefile I found this out like this: # ls -l /sbin/halt -r-xr-xr-x 4 root wheel 9016 May 23 19:59 /sbin/halt # find /sbin -size 9016c /sbin/reboot /sbin/fasthalt /sbin/fastboot /sbin/halt Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpbJuRQAcX30.pgp
Description: PGP signature