souce code for the halt program.

Roland Smith rsmith at
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

[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 :

More information about the freebsd-questions mailing list