diff options
author | 2009-06-05 15:17:02 +0000 | |
---|---|---|
committer | 2009-06-05 15:17:02 +0000 | |
commit | dfca514665fdd7612e8e946e41f0e54f1a5a563d (patch) | |
tree | 15799d01bc3fc494cc0ec56e43ee189512e077ec /lib/libc/sys | |
parent | Terminate cwd buffer before running xstrdup on it. (diff) | |
download | wireguard-openbsd-dfca514665fdd7612e8e946e41f0e54f1a5a563d.tar.xz wireguard-openbsd-dfca514665fdd7612e8e946e41f0e54f1a5a563d.zip |
abort any time adjustment in progress if the clock is set with settimeofday
ok millert
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/adjtime.2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2 index ec1196129af..ed0fc358745 100644 --- a/lib/libc/sys/adjtime.2 +++ b/lib/libc/sys/adjtime.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: adjtime.2,v 1.17 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: adjtime.2,v 1.18 2009/06/05 15:17:02 ckuethe Exp $ .\" $NetBSD: adjtime.2,v 1.5 1995/10/12 15:40:44 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)adjtime.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2009 $ .Dt ADJTIME 2 .Os .Sh NAME @@ -67,6 +67,9 @@ If .Fa olddelta is non-null, the structure pointed to will contain, upon return, the number of microseconds still to be corrected from the earlier call. +Setting the time with +.Xr settimeofday 2 +will cancel any in-progress time adjustment. .Pp This call may be used by time servers that synchronize the clocks of computers in a local area network. |