From owner-freebsd-questions@FreeBSD.ORG Sun Mar 11 07:25:27 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3814416A401 for ; Sun, 11 Mar 2007 07:25:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id E186B13C474 for ; Sun, 11 Mar 2007 07:25:16 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l2B7PBVE057648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 11 Mar 2007 01:25:11 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l2B7PABw057647; Sun, 11 Mar 2007 01:25:10 -0600 (CST) (envelope-from dan) Date: Sun, 11 Mar 2007 01:25:10 -0600 From: Dan Nelson To: Kelly Jones Message-ID: <20070311072510.GT86959@dan.emsphone.com> References: <26face530703101126td84a6foa8d6bea2d5a13fd2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26face530703101126td84a6foa8d6bea2d5a13fd2@mail.gmail.com> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD equivalents of hwclock and adjtimex? 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: Sun, 11 Mar 2007 07:25:27 -0000 In the last episode (Mar 10), Kelly Jones said: > What are the FreeBSD equivalents of hwclock (view/set the BIOS > hardware clock) and adjtimex (adjust clock speed)? I couldn't find > these two well-known Linux commands in ports? FreeBSD sets the hardware clock whenever settimeofday() is called (unless the sysctl machdep.disable_rtc_set is set). I don't think there's a way to retrieve the current hardware clock settings from userland. Linux's adjtimex(2) is called ntp_adjtime(2) in FreeBSD. -- Dan Nelson dnelson@allantgroup.com