From owner-freebsd-current Mon Nov 11 7:37: 7 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 BAFA337B401 for ; Mon, 11 Nov 2002 07:37:05 -0800 (PST) Received: from popelschnipser.de (ultrakoreggd.org [217.160.78.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 6066E43E77 for ; Mon, 11 Nov 2002 07:37:04 -0800 (PST) (envelope-from marc@informatik.uni-bremen.de) Received: (qmail 8575 invoked by uid 1048); 11 Nov 2002 15:36:57 -0000 Received: from marc@informatik.uni-bremen.de by p10089345 by uid 1045 with qmail-scanner-1.14 (spamassassin: 2.42. Clear:. Processed in 0.538755 secs); 11 Nov 2002 15:36:57 -0000 Received: from unknown (HELO leeloo.intern.geht.de) (80.134.181.218) by ultrakoreggd.org with SMTP; 11 Nov 2002 15:36:57 -0000 Subject: Re: addition to cdefs From: Marc Recht To: Mike Barcroft Cc: Garrett Wollman , current@FreeBSD.ORG In-Reply-To: <20021111095458.F52940@espresso.q9media.com> References: <1037017897.779.20.camel@leeloo.intern.geht.de> <20021111095458.F52940@espresso.q9media.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-E9ZvF9pzsZKM5AqqUV2N" X-Mailer: Ximian Evolution 1.0.8 Date: 11 Nov 2002 16:36:58 +0100 Message-Id: <1037029019.779.87.camel@leeloo.intern.geht.de> Mime-Version: 1.0 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 --=-E9ZvF9pzsZKM5AqqUV2N Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanks! > It looks like has some XSI bugs. Is _XOPEN_SOURCE defined > anywhere? If so, try the attached patch. If not, this is a bug in Yes, _XOPEN_SOURCE is defined. So, it solves some of the problems. > Python (since POSIX doesn't specify chroot()) and should be fixed at > their end and in the ports collection. But, there still some problems left. Like fd_set being not defined in sys/select if _BSD_VISIBLE isn't given. =20 > _BSD_SOURCE provides mostly the same visibility as not defining any > standards constants, so it isn't very useful. IMO it would be nice to have a clean way to toggle __BSD_VISIBLE from the outside. In the default environment I have #define __POSIX_VISIBLE 200112 #define __XSI_VISIBLE 600 #define __BSD_VISIBLE 1 #define __ISO_C_VISIBLE 1999 But, Python for example, wants _POSIX_C_SOURCE 199506,_XOPEN_SOURCE 500 _and_ __BSD_VISIBLE 1. I know, I could also just do a -D__BSD_VISIBLE=3D1, but I think thats not The Right Thing to do. Regards, Marc=20 --=20 "Premature optimization is the root of all evil." -- Donald E. Knuth --=-E9ZvF9pzsZKM5AqqUV2N Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA9z86a7YQCetAaG3MRAuoUAJ9JBtq6GZT6HBBdtmg79O3E9KJLxwCdH/o3 LfHkp9q1xk6wvxT0CWNosE8= =Xp4F -----END PGP SIGNATURE----- --=-E9ZvF9pzsZKM5AqqUV2N-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message