From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 16 06:59:41 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8320816A41F for ; Sun, 16 Oct 2005 06:59:41 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: from tak.itd.uts.edu.au (tak.itd.uts.EDU.AU [138.25.198.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14DC743D46 for ; Sun, 16 Oct 2005 06:59:40 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: by tak.itd.uts.edu.au (Postfix, from userid 900) id C1D4C5D80AF; Sun, 16 Oct 2005 16:59:39 +1000 (EST) Received: from vimes (vimes.itd.uts.edu.au [138.25.243.34])by tak.itd.uts.edu.au (Postfix/Ingress) with ESMTP id 29CFB5D8083; Sun, 16 Oct 2005 16:59:39 +1000 (EST) Received: from [192.168.0.16](d211-29-178-238.dsl.nsw.optusnet.com.au [211.29.178.238])by postoffice.uts.edu.au(Sun Java System Messaging Server 6.1 HotFix 0.09 (built Dec 14 2004))with ESMTPSA id <0IOF009VLY39OQC0@postoffice.uts.edu.au>; Sun,16 Oct 2005 16:59:39 +1000 (EST) Date: Sun, 16 Oct 2005 16:59:33 +1000 From: Tony Maher In-reply-to: <84dead720510152254j5a75ee1ewad3b7556145fca3@mail.gmail.com> To: Joseph Koshy Message-id: <4351FA55.6010006@uts.edu.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <4351DEDE.9000900@uts.edu.au><84dead720510152254j5a75ee1ewad3b7556145fca3@mail.gmail.com> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050903 X-Virus-Scanned: amavisd-new at uts.edu.au Cc: hackers@freebsd.org Subject: Re: getenv semantics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2005 06:59:41 -0000 Thanks for the reference. As I read it FreeBSD is following standard (no surprise ;-) but it would appear other platforms may not be. I'll check this out when I get access to a linux box. Joseph Koshy wrote: >>From "The Open Group Base Specifications Issue 6" > http://www.cnop.net/docs/susv3/functions/getenv.html > > "The getenv() function shall search the environment of the > calling process (see the Base Definitions volume of IEEE Std > 1003.1-2001, Chapter 8, Environment Variables) for the > environment variable name if it exists and return a pointer to > the value of the environment variable. If the specified > environment variable cannot be found, a null pointer shall be > returned." -- tonym -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects.