From owner-freebsd-hackers@FreeBSD.ORG Thu May 20 13:33:16 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88D871065674; Thu, 20 May 2010 13:33:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 592238FC1D; Thu, 20 May 2010 13:33:16 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 0CABD46C08; Thu, 20 May 2010 09:33:16 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 1CDE58A025; Thu, 20 May 2010 09:33:15 -0400 (EDT) From: John Baldwin To: Gabor PALI Date: Thu, 20 May 2010 09:30:56 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <201005190915.12716.jhb@freebsd.org> <4BF51E20.9030604@FreeBSD.org> In-Reply-To: <4BF51E20.9030604@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201005200930.57027.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 20 May 2010 09:33:15 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: hackers@freebsd.org Subject: Re: How to Include Headers for siginterrupt() and vsnprintf() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 13:33:16 -0000 On Thursday 20 May 2010 7:33:52 am Gabor PALI wrote: > Hi, > > On 05/19/10 15:15, John Baldwin wrote: > > What do they do to hide the prototypes? Do they set a specific version of > > POSIX or ISO C that they wish to use? Probably the code should not be doing > > that > > There is a file (rts/PosixSource.h) which does this: > > #define _POSIX_SOURCE 1 > #define _POSIX_C_SOURCE 199506L > #define _XOPEN_SOURCE 500 > #define _ISOC99_SOURCE > > > The comment in the file says: "Include this file into sources which > should not need any non-Posix services. That includes most RTS C sources." Ok, well their code is broken. They claim they only use POSIX interfaces from a certain date and those are older than vsnprintf(). Ah, so we do not honor _ISOC99_SOURCE in Instead, the POSIX version they specify implies C90. Looks like this is just busted code given this thread: http://www.mail-archive.com/freebsd-current@freebsd.org/msg53882.html If they want C99, then they should use POSIX 2001, not 1995. -- John Baldwin