Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2002 19:10:03 -0700 (PDT)
From:      Johan Karlsson <johan@freebsd.org>
To:        freebsd-standards@FreeBSD.org
Subject:   Fwd: Re: kern/11020: popen does not honor ISO 9899 syntax
Message-ID:  <200208230210.g7N2A3ei037002@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/11020; it has been noted by GNATS.

From: Johan Karlsson <johan@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Fwd: Re: kern/11020: popen does not honor ISO 9899 syntax
Date: Fri, 23 Aug 2002 04:01:31 +0200

 Attach this to the audit-trail.
 
 ----- Forwarded message from Garrett Wollman <wollman@lcs.mit.edu> -----
 
 From: Garrett Wollman <wollman@lcs.mit.edu>
 To: Johan Karlsson <johan@FreeBSD.ORG>
 Cc: freebsd-bugs@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG
 Subject: Re: kern/11020: popen does not honor ISO 9899 syntax
 Date: Thu, 22 Aug 2002 21:54:28 -0400 (EDT)
 
 <<On Thu, 22 Aug 2002 17:32:33 -0700 (PDT), Johan Karlsson <johan@FreeBSD.ORG> said:
 
 >       the popen() library function does not recognize the optional "b"
 
 > 	Is this something we want to/ should do?
 
 Probably not; such a feature is both unnecessary and would encourage
 unportable code.  The POSIX rationale notes:
 
 # The behavior of popen( ) is specified for values of mode of r and
 # w. Other modes such as rb and wb might be supported by specific
 # implementations, but these would not be portable features.  Note
 # that historical implementations of popen( ) only check to see if the
 # first character of mode is r. Thus, a mode of robert the robot would
 # be treated as mode r, and a mode of anything else would be treated
 # as mode w.
 
 Note that the specification is somewhat poorly written, in that the
 literal mode strings "r" and "w" are not properly identified as such.
 This is actually a general typographical shortcoming of the Standard.
 
 -GAWollman
 
 ----- End forwarded message -----
 
 -- 
 Johan Karlsson		mailto:johan@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208230210.g7N2A3ei037002>