From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 20:21:00 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FB28106564A for ; Tue, 26 Aug 2008 20:21:00 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.freebsd.org (Postfix) with ESMTP id AA8B48FC17 for ; Tue, 26 Aug 2008 20:20:59 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id m7QKKwxM023321; Tue, 26 Aug 2008 22:20:58 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 1B530BA96; Tue, 26 Aug 2008 22:20:58 +0200 (CEST) Date: Tue, 26 Aug 2008 22:20:58 +0200 From: Roland Smith To: Christopher Joyner Message-ID: <20080826202057.GA21291@slackbox.xs4all.nl> References: <205066.44523.qm@web56705.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <205066.44523.qm@web56705.mail.re3.yahoo.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: questions@freebsd.org Subject: Re: souce code for the halt program. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 20:21:00 -0000 --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--