getenv semantics

Danny Braniss danny at cs.huji.ac.il
Sun Oct 16 00:23:48 PDT 2005


> 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




More information about the freebsd-hackers mailing list