summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-02-22 15:11:12 +0000
committeryar <yar@FreeBSD.org>2006-02-22 15:11:12 +0000
commitd3fcb2cf25368a3470c2a4382df6efc23276c207 (patch)
tree2761a4fbadb57c32c82fc35fc4fcd95fb1005952
parentc5df202f3b8ef8af8173f7e77ebf8c99093cd3e9 (diff)
downloadFreeBSD-src-d3fcb2cf25368a3470c2a4382df6efc23276c207.zip
FreeBSD-src-d3fcb2cf25368a3470c2a4382df6efc23276c207.tar.gz
Tell the truth about a) how to get the first fileid, and
b) what return values from kldstat(2) can be expected. Bump .Dd. MFC after: 3 days
-rw-r--r--lib/libc/sys/kldnext.215
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/libc/sys/kldnext.2 b/lib/libc/sys/kldnext.2
index 607761a..ff929c3 100644
--- a/lib/libc/sys/kldnext.2
+++ b/lib/libc/sys/kldnext.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 3, 1999
+.Dd February 22, 2006
.Dt KLDNEXT 2
.Os
.Sh NAME
@@ -47,15 +47,20 @@ returns the fileid of the next kld file (that is, the one after
or 0 if
.Va fileid
is the last file loaded.
+To get the fileid of the first kld file, pass
+.Va fileid
+of 0 to
+.Fn kldnext .
.Sh RETURN VALUES
The
.Fn kldnext
system call
-returns the fileid of the next kld file (see DESCRIPTION) or 0.
-If an error
-occurs,
+returns the fileid of the next kld file or 0 if successful.
+Otherwise
+.Fn kldnext
+returns the value \-1 and sets the global variable
.Va errno
-is set to indicate the error.
+to indicate the error.
.Sh ERRORS
The only error set by
.Fn kldnext
OpenPOWER on IntegriCloud