From owner-freebsd-standards Thu Aug 22 19:10: 8 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55AF937B400 for ; Thu, 22 Aug 2002 19:10:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1354F43E77 for ; Thu, 22 Aug 2002 19:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7N2A3JU037005 for ; Thu, 22 Aug 2002 19:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7N2A3ei037002; Thu, 22 Aug 2002 19:10:03 -0700 (PDT) Date: Thu, 22 Aug 2002 19:10:03 -0700 (PDT) Message-Id: <200208230210.g7N2A3ei037002@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Johan Karlsson Subject: Fwd: Re: kern/11020: popen does not honor ISO 9899 syntax Reply-To: Johan Karlsson Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR kern/11020; it has been noted by GNATS. From: Johan Karlsson 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 ----- From: Garrett Wollman To: Johan Karlsson 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) < 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