souce code for the halt program.

Roland Smith rsmith at xs4all.nl
Tue Aug 26 20:21:00 UTC 2008


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080826/21b25418/attachment.pgp


More information about the freebsd-questions mailing list