Document the recent trunk changes to ntp_gettime(2) (Hi Matthias!).

This commit is contained in:
chap 2006-06-04 15:46:08 +00:00
parent 18e9385d27
commit f3ef5715ba
2 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ntp_adjtime.2,v 1.6 2003/04/16 13:34:55 wiz Exp $ .\" $NetBSD: ntp_adjtime.2,v 1.7 2006/06/04 15:46:08 chap Exp $
.\" .\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -44,6 +44,7 @@
.Sh LIBRARY .Sh LIBRARY
.Lb libc .Lb libc
.Sh SYNOPSIS .Sh SYNOPSIS
.In sys/time.h
.In sys/timex.h .In sys/timex.h
.Ft int .Ft int
.Fn ntp_adjtime "struct timex *" .Fn ntp_adjtime "struct timex *"
@ -245,9 +246,12 @@ has as argument a
with the following members: with the following members:
.Bd -literal .Bd -literal
struct ntptimeval { struct ntptimeval {
struct timeval time; /* current time (ro) */ struct timespec time; /* current time (ro) */
long maxerror; /* maximum error (us) (ro) */ long maxerror; /* maximum error (us) (ro) */
long esterror; /* estimated error (us) (ro) */ long esterror; /* estimated error (us) (ro) */
/* the following are placeholders for now */
long tai; /* TAI offset */
int time_state; /* time status */
}; };
.Ed .Ed
.Pp .Pp

View File

@ -1,4 +1,4 @@
.\" $NetBSD: compat_30.8,v 1.1 2006/05/18 17:08:04 chap Exp $ .\" $NetBSD: compat_30.8,v 1.2 2006/06/04 15:46:08 chap Exp $
.\" .\"
.\" Copyright (c) 2006 The NetBSD Foundation, Inc. .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -64,7 +64,7 @@ A shadow directory under
.Pa /emul .Pa /emul
is not used; the libraries can be obtained from a is not used; the libraries can be obtained from a
.Nx 3.0 .Nx 3.0
distribution and installed in the usual directories, distribution and installed in the original directories shown,
as the major version number in the file name will prevent conflicts. as the major version number in the file name will prevent conflicts.
If an upgrade installation from If an upgrade installation from
.Nx 3.0 .Nx 3.0
@ -114,6 +114,11 @@ argument structures were changed after the 3.0 release to accommodate
.Xr getdents 2 , .Xr getdents 2 ,
.Xr lstat 2 , .Xr lstat 2 ,
.Xr stat 2 . .Xr stat 2 .
The
.Vt struct ntptimeval
used by
.Xr ntp_gettime 2
changed with the implementation of timecounters.
.Sh SEE ALSO .Sh SEE ALSO
.Xr config 1 , .Xr config 1 ,
.Xr fhstat 2 , .Xr fhstat 2 ,