summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-02-22 15:11:12 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-02-22 15:11:12 +0000
commit36ab780431bdf7ba3c4001329402cf374efc3379 (patch)
tree2761a4fbadb57c32c82fc35fc4fcd95fb1005952
parent9cc9484cb57d2f036e391dcca0135988cb0250a0 (diff)
Notes
-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 607761adec7c..ff929c3bb687 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