Bug 41329

Summary: return value in man page for kldunload is incorrect
Product: Documentation Reporter: Michael Galassi <nerd>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me CC: greg
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Michael Galassi 2002-08-04 20:20:05 UTC
The manpage for kldunload(2) claims that the fileid of the formerly
loaded module is returned when in reality a 0 is returned.

Fix: 

Replace the paragraph that reads:
  The function kldunload() returns the fileid of the kld file which was
  previously loaded into memory via kldload().  If an error occurs,
  kldunload() will return -1 and set errno to indicate the error.
With:
  The function kldunload() on success.  If an error occurs,  kldunload()
  will return -1 and set errno to indicate the error.
How-To-Repeat: man 2 kldunload
Comment 1 dd freebsd_committer freebsd_triage 2002-10-02 00:54:01 UTC
State Changed
From-To: open->closed

Fixed, thanks.