summaryrefslogtreecommitdiff
path: root/lib/libc/sys/adjtime.2
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-06-04 19:45:38 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-06-04 19:45:38 +0000
commit40b3a805b214ba3501c002b9a40c19ce5419d6f0 (patch)
treec8bed252275515d81a38b807eb8fa3c4e5103819 /lib/libc/sys/adjtime.2
parente6545c5dbedbce02474cf8e8b1cce6ffbc13b91c (diff)
Add a CAVEATS section: other systems might have more restrictive adjtime(2).
With help from jmc@; ok deraadt@ jmc@
Diffstat (limited to 'lib/libc/sys/adjtime.2')
-rw-r--r--lib/libc/sys/adjtime.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2
index a214c30796f..39e9e9dc7b1 100644
--- a/lib/libc/sys/adjtime.2
+++ b/lib/libc/sys/adjtime.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: adjtime.2,v 1.14 2006/06/04 18:47:33 otto Exp $
+.\" $OpenBSD: adjtime.2,v 1.15 2006/06/04 19:45:37 otto Exp $
.\" $NetBSD: adjtime.2,v 1.5 1995/10/12 15:40:44 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -88,7 +88,10 @@ will fail if:
.It Bq Er EFAULT
Either of the arguments point outside the process's allocated address space.
.It Bq Er EPERM
-The process's effective user ID is not that of the superuser.
+The
+.Fn delta
+argument is non-null and the process's effective user ID is not that
+of the superuser.
.El
.Sh SEE ALSO
.Xr date 1 ,
@@ -105,3 +108,8 @@ The
.Fn adjtime
function call appeared in
.Bx 4.3 .
+.Sh CAVEATS
+Other operating systems restrict calling
+.Nm
+to the superuser and might not allow requesting the current
+correction without specifying a new value.