From owner-freebsd-standards Tue Mar 11 8:42:47 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 53E0F37B401; Tue, 11 Mar 2003 08:42:46 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA69043FCB; Tue, 11 Mar 2003 08:42:44 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.8/8.12.8) with ESMTP id h2BGghjx002470; Tue, 11 Mar 2003 19:42:43 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.8/8.12.6/Submit) id h2BGghYV002469; Tue, 11 Mar 2003 19:42:43 +0300 (MSK) (envelope-from ache) Date: Tue, 11 Mar 2003 19:42:41 +0300 From: "Andrey A. Chernov" To: Mike Barcroft Cc: standards@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: CFR: add widely accepted _ISOC99_SOURCE Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030311104943.A88290@espresso.bsdmike.org> User-Agent: Mutt/1.5.1i 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 On Tue, Mar 11, 2003 at 10:49:43 -0500, Mike Barcroft wrote: > > 1) Any _POSIX_C_SOURCE with _ISOC99_SOURCE. It is from real life example > > (ImageMagick). It wants lower POSIX level, *but* wants _ISOC99_SOURCE in > > the same time. > > I don't like this at all. The meaning of _ANSI_SOURCE is that the > source is exclusively written in C89 with no BSD, POSIX, or XSI > extentions. Similarly, I was intending _C99_SOURCE to be used without > any POSIX. Programs looking for C99+POSIX functions should specify > POSIX.1-2001, which incorporates both of these. What to do, if, say, C99 program want to use some POSIX functions from lower (and not from higher) POSIX standard? Currently we have problem with ImageMagick - undefined prototypes for vsnprintf() and other like, because it wants right that: magick/studio.h: ... #define _GNU_SOURCE 1 #define _ISOC99_SOURCE 1 #define _POSIX_C_SOURCE 199506L #define _XOPEN_SOURCE 500 #define _LARGEFILE64_SOURCE 1 -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message