Date: Sun, 08 Dec 2002 17:22:25 +0100 From: Marc Recht <marc@informatik.uni-bremen.de> To: Mike Barcroft <mike@FreeBSD.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--==========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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?619340000.1039364545>