1.\" $NetBSD: inittodr.9,v 1.2 1996/03/27 21:16:06 jtc Exp $ 2.\" 3.\" Copyright (c) 1994 Christopher G. Demetriou 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 15 unchanged lines hidden (view full) --- 24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31.\" |
32.\" $FreeBSD: head/share/man/man9/inittodr.9 107788 2002-12-12 17:26:04Z ru $ |
33.\" 34.Dd March 22, 1997 35.Dt INITTODR 9 36.Os 37.Sh NAME 38.Nm inittodr 39.Nd initialize system time 40.Sh SYNOPSIS 41.In sys/types.h 42.In sys/systm.h 43.Ft void 44.Fn inittodr "time_t base" 45.Sh DESCRIPTION 46The 47.Fn inittodr 48function determines the time and sets the system clock. 49It tries to pick the correct time using a set of heuristics that examine 50the system's battery backed clock and the time obtained from the root |
51file system, as given in |
52.Fa base . 53How the 54.Fa base 55value is obtained will vary depending on the |
56root file system type. |
57The heuristics used include: 58.Bl -bullet 59.It 60If the battery-backed clock has a valid time, it is used. 61.\" .It 62.\" If the battery-backed clock does not have a valid time, and 63.\" the time provided in 64.\" .Fa base --- 59 unchanged lines hidden --- |