Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2008 22:20:58 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Christopher Joyner <chris27wjoyner@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: souce code for the halt program.
Message-ID:  <20080826202057.GA21291@slackbox.xs4all.nl>
In-Reply-To: <205066.44523.qm@web56705.mail.re3.yahoo.com>
References:  <205066.44523.qm@web56705.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
--=20
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)

--h31gzZEtNLTqOjlF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAki0ZakACgkQEnfvsMMhpyXLNQCeI9W6SbvMDnoDB5oQuXkHfRvN
uEMAnA4Hyh3xe4xENASh5EM/ebJzc2xJ
=IWX7
-----END PGP SIGNATURE-----

--h31gzZEtNLTqOjlF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080826202057.GA21291>