From russ@infinite.math.ohiou.edu  Tue Oct 14 15:07:48 2003
Return-Path: <russ@infinite.math.ohiou.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4204C16A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Oct 2003 15:07:48 -0700 (PDT)
Received: from infinite.math.ohiou.edu (infinite.math.ohiou.edu [132.235.36.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2833343F85
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Oct 2003 15:07:47 -0700 (PDT)
	(envelope-from russ@infinite.math.ohiou.edu)
Received: (from russ@localhost)
	by infinite.math.ohiou.edu (8.11.6/8.11.6) id h9EN9dj23916;
	Tue, 14 Oct 2003 19:09:39 -0400
Message-Id: <200310142309.h9EN9dj23916@infinite.math.ohiou.edu>
Date: Tue, 14 Oct 2003 19:09:39 -0400
From: Russell Francis <rf358197@ohio.edu>
Reply-To: Russell Francis <rf358197@ohio.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Russell Francis <rf358197@ohio.edu>
Subject: [PATCH] getenv(3) manpage doesn't state the return value of getenv.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58033
>Category:       docs
>Synopsis:       [PATCH] getenv(3) manpage doesn't state the return value of getenv.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 14 15:10:14 PDT 2003
>Closed-Date:    Tue Jul 06 23:22:38 GMT 2004
>Last-Modified:  Tue Jul 06 23:22:38 GMT 2004
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 --- 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 ---
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Oct 21 23:52:22 PDT 2003 
Responsible-Changed-Why:  
Reassign to proper category. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58033 
State-Changed-From-To: open->closed 
State-Changed-By: hmp 
State-Changed-When: Tue Jul 6 23:21:50 GMT 2004 
State-Changed-Why:  
A similar version has been committed to -CURRENT, and will 
be MFC'ed in about three days. 

Thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=58033 
>Unformatted:
