delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/22/13:17:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=BqBg6bCfatqUmSQvR6cw6E6hTJShp66sFXwQvn2UCAws0w4QPK+Fs
yL12T4fr6Z25AWYFiBlVjaZkKU12TzQcIbn26X0SZzwgPaNqRObRUndmupwdBwVO
JdcT7Xg52GsZn4KiWyvjb9oa1PysISJ4IPCEwaGaIYIUj9w+/NOFCg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=n94o1l7nLMxMOWHG/wyMQY8Ar34=; b=kikSPYKggrrQPshpOHPiMN37WfK4
bzvHY+thKSvHLxAHKsN47sAkAXNvNLX3RH52A3+IZyhMkJAK5y905fjO54LAjx43
s+2UQQJxEg/tTS7SJYgcli+sePFN7CwhLq+28G6IcNbr7s47zgPndCNZJa1v20xr
bsGGaySAMToxWUI=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-96.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=Hx-languages-length:1348, WIN, 5th, 6th
X-HELO: calimero.vinschen.de
Date: Wed, 22 Jun 2016 19:17:30 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Piping on 64-bit Cygwin was Re: [ANNOUNCEMENT] llvm 3.7.1-2
Message-ID: <20160622171730.GC15373@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <953793912 DOT 12352673 DOT 1466549681179 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT com> <953793912 DOT 12352673 DOT 1466549681179 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> <2118813453 DOT 12281992 DOT 1466559153922 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> <0bafcf1a-590e-3e30-679f-117cd4aeba7a AT gmail DOT com> <0FB21113-2A8C-4C63-9889-C0E3254C6E5A AT etr-usa DOT com> <20160622153652 DOT GB15373 AT calimero DOT vinschen DOT de> <6741E506-F227-432B-B66C-1BABFB373068 AT etr-usa DOT com>
MIME-Version: 1.0
In-Reply-To: <6741E506-F227-432B-B66C-1BABFB373068@etr-usa.com>
User-Agent: Mutt/1.6.1 (2016-04-27)

--oLBj+sq0vYjzfsbl
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jun 22 10:01, Warren Young wrote:
> On Jun 22, 2016, at 9:36 AM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com>=
 wrote:
> >=20
> >> 64-bit Windows is LLP64, while 64-bit Linux is LP64 on the same hardwa=
re.
> >=20
> > s/Linux/Linux and Cygwin/
>=20
> Well, that was unexpected.

The FAQ entry is just as old as the first 64 bit release...

> Still, you could get similar problems.  ifdefs for portable
> sized-integer types are a particularly rich source of bugs, especially
> ones where #ifdef WINDOWS precedes any test that could match Cygwin,
> since WINDOWS is defined in Cygwin=E2=80=99s GCC, and as this exchange sh=
ows,

No, it isn't.  Neither is _WIN32 or _WINNT_, unless you include
<windows.h>.  Try `gcc -dM -E - < /dev/null | grep WIN'

> Cygwin=E2=80=99s GCC doesn=E2=80=99t always behave exactly the same as Vi=
sual C++.
>=20
> Any such case will compile under Cygwin.  You need to reorder such
> cases so a the test for WINDOWS is after one matching Cygwin, as a
> rule.

Varargs functions are fun.  A type mismatch int/long in the 5th and 6th
arg would be invisible on Linux but potentially crash on Cygwin due to
the ABI difference (MS vs. SysV).  We found a bug in OpenLDAP this way.

Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--oLBj+sq0vYjzfsbl
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXasgqAAoJEPU2Bp2uRE+gBggP/isch9WM6oCjwbZ2NyfsqKjC
IDyVEm4v8O/qWuvzqEuW0c48FsfIy5WzOmbgeKLnBBKZrFn1R753+ncjo8DcHazh
X3Uienkg4X30HYLhR5IxQnMne+ZcNBHNklHFSKlMnTUBjbGVsCIrCKqrw/A84mdO
ROd9ueWmBoPGbFcUGs8zQbv1G1G2hA6286vQikjRNCJNp0aJg2KKvUeoItljjLc9
pmMiZA+70YfzejNjNuqJ4PsoH7/HjitfgJd993vStm/4TeHkoYjKSoAGi2m6Jtnb
DDm2fgbUhfZfBr56sxJr0TC00hN28vYePsbF8/d0Ei3qT1O/OTvBGPIbKzH6OQWg
S0hp1KcdppPvk90Wz9UaBOV0vxwxv2k9eS2rms3MFZPUv6BHSAlBl+HHPZZubl91
5YuQ7OOM5IV2BJnAUeFQD8TWJLfDlsl4Na2T6aRw7gP0wDTCpZaTQNYijIo1ZUvi
UYEMYZP/okju5uYwXsGowvBi7vNV2gA8GQJogq4pLbA7OvLvupDpIxUTgAxLcbo8
/uv5o2COj+xvmG0EggReitGast2aPrZnJSqdwJL8bM81c0ynEX+MCSZ8wOqkeHUt
wxUB1AhP1uD5nzsyLLg8FgJwKmH49cDVrNthB3YZMOkcpgb+WLXSh6RPByishMUe
khtkPrdSs5VZwPw9oerX
=ZKzQ
-----END PGP SIGNATURE-----

--oLBj+sq0vYjzfsbl--

- Raw text -


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