diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2001-07-03 14:56:08 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2001-07-03 14:56:08 +0000 |
commit | e2a7d2044a0dcfcf2aab2deee2d5b6aff36275ff (patch) | |
tree | 7bbaf1dfe9a2168e62c4dd848262bf059232c14f /lib | |
parent | 1b91bc6f2c032eaf0ea29fc03376ea8aed4ec385 (diff) | |
download | src-e2a7d2044a0dcfcf2aab2deee2d5b6aff36275ff.tar.gz src-e2a7d2044a0dcfcf2aab2deee2d5b6aff36275ff.zip |
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
Notes
Notes:
svn path=/head/; revision=79143
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/modstat.2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/modstat.2 b/lib/libc/sys/modstat.2 index 612ef2ee2050..56fa1cda8332 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 |