Date: Mon, 09 Dec 2002 10:14:19 +0100 From: Marc Recht <marc@informatik.uni-bremen.de> To: Mike Barcroft <mike@FreeBSD.org> Cc: David Schultz <dschultz@uclink.Berkeley.EDU>, freebsd-standards@FreeBSD.org Subject: Re: POSIX and the real life or FreeBSD too strict ? Message-ID: <1012690000.1039425259@leeloo.intern.geht.de>
next in thread | raw e-mail | index | archive | help
--==========2115260060========== Content-Type: text/plain; charset=us-ascii; FORMAT=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > Did you even look at the header to find out why? The conditional says Yes. > `#if __XSI_VISIBLE <=3D 500 || __BSD_VISIBLE'. From this, one might > draw the conclusion that getpagesize() was supported in X/Open up > until version 500 (SUSv2). Now, compare this to the actual standards > and one finds that in SUSv2 getpagesize() was marked LEGACY and in > SUSv3 it was removed. If you want SUSv2 functions, use > _XOPEN_SOURCE=3D500 and an appropriate _POSIX_C_SOURCE version. You didn't get my point. I know exactly why it fails. _But_ the on other=20 systems I've tried it doesn't (call it broken or not). > As I explained in another thread in -current, requesting a standard > and then using headers outside that standard's scope is unsupported. > This is why no one has bother to change u_int to unsigned int in > most non-standard headers. > > As for the extention to allow POSIX and BSD object to both be visible > by defining an extra constant, I don't think this is a very good idea. > You end up with each OS having a different escape word, each being > unportable. A much more portable solution would be not to request a > specific standard at all if one requires things outside that > standard's scope. But what gains us a standard if nobody except us cares about it ? Regards, Marc "Premature optimization is the root of all evil." -- Donald E. Knuth --==========2115260060========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99F7r7YQCetAaG3MRAuQqAJ9Jkd+GhE31j8ag+Vi9H25isYyJHwCfWLKu P+QLvibH2lhXNKa9BjM1p1o= =yLgK -----END PGP SIGNATURE----- --==========2115260060==========-- 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?1012690000.1039425259>