From owner-freebsd-hackers@FreeBSD.ORG Thu May 20 11:37:29 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 8EBBD1065778; Thu, 20 May 2010 11:37:29 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id E221F8FC19; Thu, 20 May 2010 11:37:28 +0000 (UTC) Received: by fxm12 with SMTP id 12so691174fxm.17 for ; Thu, 20 May 2010 04:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=fS6RnVk37VAFGl8aq/ZTISYc3gWlGnKJm7OBTCPSgWk=; b=MgHYNdQTJPw6RjKK5qrEqGTapp0zxVtywuZb4883+UFU8limGITlFSVXULC6s2qXSx 4dtPXcUte36KWPzU4HcTkI0v/jwjcX4WjwKY4xqa53XWFb0KG52RodHyjejeZUygKAcu Z2XHlpMy69N4OxpVrssFMTVU16JV7dtbjsOcU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=nukYoADPBcihykm+UCUcb+bEYq7bukMo2mqzMSV7nJ3bcg7b2P++pQAaR7bU2kfgYn 7iRABKBJMkP+vTegXEthXT+yQh1AWOqM/9OD6No6PDyIMI+suI3erEof99SV9jWu/YVp Pnak79y3UQNX42dW9qxTwwf5doiqWyxk5UBb4= Received: by 10.103.133.4 with SMTP id k4mr1717832mun.10.1274355447301; Thu, 20 May 2010 04:37:27 -0700 (PDT) Received: from [129.16.199.244] (dhcp-199-244.nomad.chalmers.se [129.16.199.244]) by mx.google.com with ESMTPS id 24sm28609731bkr.12.2010.05.20.04.37.25 (version=SSLv3 cipher=RC4-MD5); Thu, 20 May 2010 04:37:26 -0700 (PDT) Sender: =?UTF-8?B?UMOBTEkgR8OhYm9yIErDoW5vcw==?= Message-ID: <4BF51E20.9030604@FreeBSD.org> Date: Thu, 20 May 2010 13:33:52 +0200 From: Gabor PALI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: John Baldwin References: <201005190915.12716.jhb@freebsd.org> In-Reply-To: <201005190915.12716.jhb@freebsd.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 11:37:29 -0000 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." Cheers, :g