Bug 58033

Summary: [PATCH] getenv(3) manpage doesn't state the return value of getenv.
Product: Documentation Reporter: Russell Francis <rf358197>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me CC: rf358197
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Russell Francis 2003-10-14 23:10:14 UTC
 --- getenv.3.diff begins here ---
 --- getenv.3    Mon Oct 13 10:15:27 2003
 +++ getenv.3.new        Mon Oct 13 10:15:03 2003
 @@ -116,6 +116,13 @@
  from the list.
  .Sh RETURN VALUES
  .Rv -std setenv putenv
 +.Pp
 +The
 +.Fn getenv
 +function returns NULL if the environment variable was not found.
 +If the variable was found, it returns the value of the variable
 +as a NULL terminated string.  This string should not be modified
 +or freed.
  .Sh ERRORS
  .Bl -tag -width Er
  .It Bq Er ENOMEM
 --- getenv.3.diff ends here ---
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2003-10-22 07:52:22 UTC
Responsible Changed
From-To: gnats-admin->freebsd-doc

Reassign to proper category.
Comment 2 Hiten Pandya freebsd_committer freebsd_triage 2004-07-07 00:21:50 UTC
State Changed
From-To: open->closed

A similar version has been committed to -CURRENT, and will 
be MFC'ed in about three days. 

Thanks!