summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2001-07-03 14:56:08 +0000
committeryar <yar@FreeBSD.org>2001-07-03 14:56:08 +0000
commite3431f6089c4ca18bcae8e121dad53b97e18bc11 (patch)
tree7bbaf1dfe9a2168e62c4dd848262bf059232c14f /lib
parent11248e9911b1108fab00f563691b1901794c57dd (diff)
downloadFreeBSD-src-e3431f6089c4ca18bcae8e121dad53b97e18bc11.zip
FreeBSD-src-e3431f6089c4ca18bcae8e121dad53b97e18bc11.tar.gz
First, fix a leftover of the cut'n'paste from the kld* pages:
change the name of the page (.Nm) from "kldstat" to "modstat". Second, don't claim that modstat(2) always returns 0. Actually, it behaves as most syscalls do - returns 0 on success, or -1 on failure. MFC after: 5 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/modstat.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/modstat.2 b/lib/libc/sys/modstat.2
index 612ef2e..56fa1cd 100644
--- a/lib/libc/sys/modstat.2
+++ b/lib/libc/sys/modstat.2
@@ -29,7 +29,7 @@
.Dt MODSTAT 2
.Os FreeBSD
.Sh NAME
-.Nm kldstat
+.Nm modstat
.Nd get status of kernel module
.Sh LIBRARY
.Lb libc
@@ -82,8 +82,12 @@ The id of the module specified in
Module specific data.
.El
.Sh RETURN VALUES
+The function
.Fn modstat
-seems to always return 0.
+returns 0 on success.
+It returns -1 on failure, and sets
+.Va errno
+to indicate the error.
.Sh ERRORS
The information for the module referred to by
.Fa modid
OpenPOWER on IntegriCloud