From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 21:31:45 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 450C31065670 for ; Tue, 26 Aug 2008 21:31:45 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout011.mac.com (asmtpout011.mac.com [17.148.16.86]) by mx1.freebsd.org (Postfix) with ESMTP id 1DA2F8FC13 for ; Tue, 26 Aug 2008 21:31:45 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp011.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K68002R76BWMP70@asmtp011.mac.com> for questions@freebsd.org; Tue, 26 Aug 2008 13:31:09 -0700 (PDT) Message-id: <5F2D94CE-5647-40EF-9478-CDDEB215B6E2@mac.com> From: Chuck Swiger To: Christopher Joyner In-reply-to: <205066.44523.qm@web56705.mail.re3.yahoo.com> Date: Tue, 26 Aug 2008 13:31:08 -0700 References: <205066.44523.qm@web56705.mail.re3.yahoo.com> X-Mailer: Apple Mail (2.928.1) 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 21:31:45 -0000 Hi-- On Aug 26, 2008, at 12:47 PM, Christopher Joyner wrote: > How can I get the source code for the /sbin/halt program? > When I run that program, it causes my cpu fan to speed up. I want > to look at it, because > I believe I can fix that problem. halt is a hard link to reboot: % ident /sbin/halt /sbin/halt: $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.7 2005/05/19 07:31:06 dfr Exp $ $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.6 2005/05/19 07:31:06 dfr Exp $ $FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4.10.1 2007/12/07 14:15:46 kib Exp $ $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.14 2005/05/19 07:36:07 dfr Exp $ $FreeBSD: src/sbin/reboot/reboot.c,v 1.24.2.1 2006/08/25 12:55:50 bms Exp $ See /usr/src/sbin/reboot/reboot.c or http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/reboot/reboot.c -- -Chuck