delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/20/18:05:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F42D1A8.7000808@redhat.com>
Date: Mon, 20 Feb 2012 16:05:12 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Issues with stdio.h
References: <CAGHJv4e-Zbqqg-9um+viGKHuajnZdr7AjyXeh16c7A__Lm+V4A AT mail DOT gmail DOT com> <20120220002507 DOT GA16123 AT ednor DOT casa DOT cgf DOT cx> <4F42BDAE DOT 50006 AT towo DOT net> <4F42C4D0 DOT 8050108 AT redhat DOT com> <4F42CFFD DOT 2040403 AT towo DOT net>
In-Reply-To: <4F42CFFD.2040403@towo.net>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigB92B4E8CDFDA799DA5AF8715
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 02/20/2012 03:58 PM, Thomas Wolff wrote:
>> Wrong.  GNU/Linux does this too.  On my Fedora machine,
>>
>> $ printf '#include<stddef.h>\n#include<stdio.h>\n' | gcc -E -\
>>     |grep '^# 1 "/'
...
>> # 1 "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/include/stddef.h" 1 3 4
>> # 1 "/usr/include/wchar.h" 1 3 4
>> # 1 "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/include/stdarg.h" 1 3 4

>=20
> As I interpret this, stddef.h - containing those constants - is the only
> file with this setup, so be it.

Reading the trace I posted above, it is not just <stddef.h>, but also at
least <stdarg.h>, and probably others, too.

> (I had actually checked on a SunOS system.)

SunOS isn't GNU/Linux, so it is less relevant to how cygwin behaves
(since cygwin is striving to be a Linux emulation, not a POSIX
emulation).  Not to mention that using gcc on SunOS _also_ prefers to
translate <stddef.h> to a gcc-specific directory, rather than
/usr/include/stddef.h, since gcc relies on aspects that are specific to
the gcc compiler, while /usr/include/stddef.h is tied to the system's
own 'cc' that doesn't understand gcc extensions.

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigB92B4E8CDFDA799DA5AF8715
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPQtGoAAoJEKeha0olJ0Nq7wgIAJWJkSM/RyPnmwxGzr6t023n
HXGslsccgordfesE+bChQkqwk03zSF9Lo0eP3i6h5LjsT1x1G0Gd3plxELuM/vxE
FeIv3fCk21Nazo1Rmxvow0IqL+WMxLV3rz8JzsD0cYDVMnaikl6jlWnTEQg+94X5
oWA46FDLvaqXfE/ZW7Wl/hhxnNEE+T+voHzTxIfB8o6NpeBZN5EfoxFQ4QneQqre
ILWMTBADiRIe/5IcHj9fQxolhSBP9vqdkUQ2J/5uazMG67HbBLctXinoKQ3XeHPB
cqGuHuR6JRTiXSZernq18wq5JMS+tkAboO9N0r3S2nzl1UJHsu7cGXZPo+DaGvE=
=V4Ng
-----END PGP SIGNATURE-----

--------------enigB92B4E8CDFDA799DA5AF8715--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019