From owner-freebsd-standards Tue Mar 11 9:36:48 2003 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 7F0E237B401; Tue, 11 Mar 2003 09:36:47 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6892643FBF; Tue, 11 Mar 2003 09:36:46 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost.ipv6.lcs.mit.edu [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.8/8.12.8) with ESMTP id h2BHajCd062940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Mar 2003 12:36:45 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.8/8.12.8/Submit) id h2BHaiBL062937; Tue, 11 Mar 2003 12:36:44 -0500 (EST) (envelope-from wollman) Date: Tue, 11 Mar 2003 12:36:44 -0500 (EST) From: Garrett Wollman Message-Id: <200303111736.h2BHaiBL062937@khavrinen.lcs.mit.edu> To: "Andrey A. Chernov" Cc: Mike Barcroft , standards@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: CFR: add widely accepted _ISOC99_SOURCE In-Reply-To: <20030311164240.GA2305@nagual.pp.ru> References: <20030310061548.GA85361@nagual.pp.ru> <20030310104434.P70629@espresso.bsdmike.org> <20030311144501.GA364@nagual.pp.ru> <20030311104943.A88290@espresso.bsdmike.org> <20030311164240.GA2305@nagual.pp.ru> 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: > What to do, if, say, C99 program want to use some POSIX functions from > lower (and not from higher) POSIX standard? Programmer error. Either it's a C99 program or it's an old-POSIX program; it cannot be both. > #define _GNU_SOURCE 1 > #define _ISOC99_SOURCE 1 > #define _POSIX_C_SOURCE 199506L > #define _XOPEN_SOURCE 500 > #define _LARGEFILE64_SOURCE 1 It is requesting contradictory namespaces, and getting what it deserves. It should not define any of these. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message