From owner-freebsd-standards Thu Aug 22 18:54:33 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61FE737B400; Thu, 22 Aug 2002 18:54:30 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE68843E75; Thu, 22 Aug 2002 18:54:29 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.5) with ESMTP id g7N1sSVo013192 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 22 Aug 2002 21:54:29 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.5/Submit) id g7N1sSqm013189; Thu, 22 Aug 2002 21:54:28 -0400 (EDT) (envelope-from wollman) Date: Thu, 22 Aug 2002 21:54:28 -0400 (EDT) From: Garrett Wollman Message-Id: <200208230154.g7N1sSqm013189@khavrinen.lcs.mit.edu> To: Johan Karlsson Cc: freebsd-bugs@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG Subject: Re: kern/11020: popen does not honor ISO 9899 syntax In-Reply-To: <200208230032.g7N0WXNU018603@freefall.freebsd.org> References: <200208230032.g7N0WXNU018603@freefall.freebsd.org> 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 < 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message