From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 16 07:23:48 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 3357A16A41F for ; Sun, 16 Oct 2005 07:23:48 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B93B643D62 for ; Sun, 16 Oct 2005 07:23:46 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1ER2rx-000DjZ-Hi; Sun, 16 Oct 2005 09:23:45 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Tony Maher In-reply-to: Your message of Sun, 16 Oct 2005 17:05:52 +1000 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 16 Oct 2005 09:23:45 +0200 From: Danny Braniss Message-ID: 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 07:23:48 -0000 > Danny Braniss wrote: > > > now why would FreeBSD supply sources? > > from /usr/src/lib/libc/stlib/getenv.c: > > ... > > Thanks I have the source but actually checking the call programatically > should be better since since it does not rely on my interpretation > of code. It also does not help me understand the problems when code > appears to work on other platforms hence my request for standards > reference. Standards/RFCs/etc are very nice piece of papers, reality tends to be less forgiven: a program/routine will always do what the programmer intended, now the problem is defining 'what the programmer intended' :-) the advantage of open source is that you can check what the real world does, and sometimes it reflects the wishes of the docs/posix/rfc, but mostly it reflects the programmer interpretation. danny danny