From owner-freebsd-current Sun Dec 8 8:22:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4927137B401 for ; Sun, 8 Dec 2002 08:22:44 -0800 (PST) Received: from popelschnipser.de (ultrakoreggd.org [217.160.78.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 1784743EB2 for ; Sun, 8 Dec 2002 08:22:37 -0800 (PST) (envelope-from marc@informatik.uni-bremen.de) Received: (qmail 5265 invoked by uid 1048); 8 Dec 2002 16:22:26 -0000 Received: from marc@informatik.uni-bremen.de by p10089345 by uid 1045 with qmail-scanner-1.15 (clamscan: 0.54. spamassassin: 2.42. Clear:. Processed in 0.554274 secs); 08 Dec 2002 16:22:26 -0000 Received: from unknown (HELO ?192.168.100.100?) (217.227.199.133) by ultrakoreggd.org with SMTP; 8 Dec 2002 16:22:26 -0000 Date: Sun, 08 Dec 2002 17:22:25 +0100 From: Marc Recht To: Mike Barcroft Cc: freebsd-current@FreeBSD.org Subject: Re: sys/file.h and POSIX Message-ID: <619340000.1039364545@leeloo.intern.geht.de> In-Reply-To: <20021208104335.E74206@espresso.q9media.com> References: <509390000.1039349835@leeloo.intern.geht.de> <20021208104335.E74206@espresso.q9media.com> X-Mailer: Mulberry/3.0.0b9 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========2334026916==========" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --==========2334026916========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > Why are you specifying a standard and then using features outside its > scope? Either you want a BSD environment (in which case don't specify The standard is specified to get the standard functions. Eg. if i specify=20 _POSIX_C_SOURCE=3D200112L then I want (for example) POSIX's flockfile, if = the=20 OS supports POSIX. This doesn't mean that I don't want rpc. This means that = I need to change third party code, which needs POSIX functions, not to=20 declare POSIX/POSIX_C_SOURCE/XSI to get BSD/other functions (and inderectly = the POSIX 200112 functions). Since it isn't that way on any UNIX (at least I know about) vendors are=20 forced to do special treatment for FreeBSD. Which is IMHO really bad and=20 may lead to less support for FreeBSD. > a standard), or you want a standard environment (where file.h doesn't > exist). Indeed what you are trying to do is unsupported. IMHO this is bad and breaks compilation of much third-party code. > For details on how to write a conforming application see section 2.2 > of POSIX.1-2001. I've read/looked at the standard (see my posting to standards@) and I don't = think it forces FreeBSD's behaviour. I even think FreeBSD's behaviour isn't = the spirit of the standard. Best regards, Marc "Premature optimization is the root of all evil." -- Donald E. Knuth --==========2334026916========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE983HB7YQCetAaG3MRAv1zAJwNRZS7j+YPGrG1Oo+xTizT4MnGqQCeJfNh Bxjnvu/5XYS+/Z2zZW/FUPw= =Uox5 -----END PGP SIGNATURE----- --==========2334026916==========-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message