summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2010-04-01 17:06:56 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2010-04-01 17:06:56 +0000
commit9698d2b8e3176084d4d635d12f1e2fdd725ef5c1 (patch)
treef63ea23a1c5f801ecbb215234160ada4dc8bef52 /lib/libc/sys
parent8af4a82e8387c83fb0949f0f1c8a9ab7ce9120e7 (diff)
WARNINGS -> CAVEATS, and a little neccessary cleanup;
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/chroot.28
-rw-r--r--lib/libc/sys/gettimeofday.216
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/sys/chroot.2 b/lib/libc/sys/chroot.2
index f6e13682b4f..e5177ae0284 100644
--- a/lib/libc/sys/chroot.2
+++ b/lib/libc/sys/chroot.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chroot.2,v 1.15 2010/01/11 22:17:36 deraadt Exp $
+.\" $OpenBSD: chroot.2,v 1.16 2010/04/01 17:06:55 jmc Exp $
.\" $NetBSD: chroot.2,v 1.7 1995/02/27 12:32:12 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)chroot.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 11 2010 $
+.Dd $Mdocdate: April 1 2010 $
.Dt CHROOT 2
.Os
.Sh NAME
@@ -113,10 +113,10 @@ The caller is not the superuser.
.El
.Sh SEE ALSO
.Xr chdir 2
-.Sh WARNINGS
-There are ways for a root process to escape from the chroot jail.
.Sh HISTORY
The
.Fn chroot
function call appeared in
.Bx 4.2 .
+.Sh CAVEATS
+There are ways for a root process to escape from the chroot jail.
diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2
index d248adf8cb5..bb9d00213d1 100644
--- a/lib/libc/sys/gettimeofday.2
+++ b/lib/libc/sys/gettimeofday.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gettimeofday.2,v 1.18 2010/04/01 11:28:49 deraadt Exp $
+.\" $OpenBSD: gettimeofday.2,v 1.19 2010/04/01 17:06:55 jmc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -124,7 +124,12 @@ A user other than the superuser attempted to set the time.
.Xr getitimer 2 ,
.Xr ctime 3 ,
.Xr timed 8
-.Sh WARNINGS
+.Sh HISTORY
+The
+.Fn gettimeofday
+function call appeared in
+.Bx 4.2 .
+.Sh CAVEATS
Setting the time with
.Fn settimeofday
is dangerous; if possible use
@@ -132,7 +137,7 @@ is dangerous; if possible use
instead.
Many daemon programming techniques utilize time-delta techniques
using the results from
-.Xr gettimeofday 2
+.Fn gettimeofday
instead of from
.Xr clock_gettime 2
on the
@@ -140,8 +145,3 @@ on the
clock.
Time jumps can cause these programs to malfunction in unexpected ways.
If the time must be set, consider rebooting the machine for safety.
-.Sh HISTORY
-The
-.Fn gettimeofday
-function call appeared in
-.Bx 4.2 .