summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2019-01-06 18:29:49 +0000
committertedu <tedu@openbsd.org>2019-01-06 18:29:49 +0000
commit73716fbc7c2fbf1e2de8c68918f53527e1ca33f5 (patch)
treefbea5bb394f814a0a447584c20b552a432c5b0dd /lib/libc
parentallow q to exit the program. (diff)
downloadwireguard-openbsd-73716fbc7c2fbf1e2de8c68918f53527e1ca33f5.tar.xz
wireguard-openbsd-73716fbc7c2fbf1e2de8c68918f53527e1ca33f5.zip
note that tracefile must be null when clearing points.
ok kn
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/ktrace.211
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2
index be57031fafc..f1fd58c738a 100644
--- a/lib/libc/sys/ktrace.2
+++ b/lib/libc/sys/ktrace.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ktrace.2,v 1.36 2018/06/19 15:39:01 jmc Exp $
+.\" $OpenBSD: ktrace.2,v 1.37 2019/01/06 18:29:49 tedu Exp $
.\" $NetBSD: ktrace.2,v 1.2 1995/02/27 12:33:58 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: June 19 2018 $
+.Dd $Mdocdate: January 6 2019 $
.Dt KTRACE 2
.Os
.Sh NAME
@@ -61,11 +61,8 @@ If tracing points are being disabled (see
.Dv KTROP_CLEAR
below),
.Fa tracefile
-may be
-.Dv NULL
-or
-.Fa tracefd
-may be -1.
+must be
+.Dv NULL .
.Pp
Trace records are always appended to the file, ignoring the file offset,
so the caller will usually want to truncate the file before calling