delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/24/05:06:49

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=qHlecEgOpPwIwSFJ5oYqAbCvldv9AiikYznMwFtHqPa5h9+LT3idL
hKE17Ti+Za3HMxepNJdsBIj1nI27s0RsL0h2WQ/1AYjH/bW/ghwZLQWJV89bb+BF
AFdB14b5qV1e4WUVrGW2kvsiFjWDE+HObsRQoNUCHBixOunBEm1QW8=
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=AboOLvAOhYNduWcYPz0ugTZGYmU=; b=jetC9fd4+saKxaDVEOHg1WFVFdKT
B6Etr1hhDv/KnLa6oriBBoau0J2gSCOOTm6pMb4a8G7vM/stXqVa2xWxD1OQbxQb
1qHTN9hcCJKIg6N47GBacjcXn96jV9P3/JbeV6D9Wu5i4jnZtrahNqC5FOR6Bt4f
ZC6RhB+ZSIVgHqw=
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-Spam-SWARE-Status: No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=inclined
X-HELO: mout.kundenserver.de
Date: Fri, 24 Aug 2018 11:06:32 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [Bug] __wait_status_to_int() is expected to be a macro
Message-ID: <20180824090632.GY3348@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CA+fF77nK6EUSWe_jxnQpEcOBiX-+uTxhh4vwT86swiybMcxB2A AT mail DOT gmail DOT com> <0ec2d4a0-07e7-1c04-4efc-dbd0a21c077e AT t-online DOT de> <636aef6d-c47f-ee0e-52c5-db4976452c18 AT redhat DOT com> <20180612084843 DOT GO7851 AT calimero DOT vinschen DOT de> <95cbcdf4-909a-e7b6-b983-5ca82a25ffab AT redhat DOT com> <f083b061-5a1a-ba85-67b0-4f41ab5b493f AT tiscali DOT co DOT uk>
MIME-Version: 1.0
In-Reply-To: <f083b061-5a1a-ba85-67b0-4f41ab5b493f@tiscali.co.uk>
User-Agent: Mutt/1.9.2 (2017-12-15)

--SLauP2uySp+9cKYP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 24 00:13, David Stacey wrote:
> On 12/06/18 12:45, Eric Blake wrote:
> > On 06/12/2018 03:48 AM, Corinna Vinschen wrote:
> > > On Jun=C2=A0 8 12:43, Eric Blake wrote:
> > > > On 06/08/2018 12:26 PM, Hans-Bernhard Br=C3=B6ker wrote:
> > > > > Am 08.06.2018 um 17:16 schrieb Denis Nikiforov:
> > > > > > /usr/include/boost/process/detail/posix/is_running.hpp:18:1: er=
ror:
> > > > > > non-constant condition for static assertion
> > > > > > =C2=A0=C2=A0 static_assert(!WIFEXITED(still_active), "Internal =
Error");
> > > > > > =C2=A0=C2=A0 ^~~~~~~~~~~~~
> > > > > >=20
> > > > > > __wait_status_to_int must be a macros but it's redefined
> > > > > > as a function.
> > >=20
> > > But, assuming I'm completely off-track above and a macro is really
> > > desired:
> > >=20
> > > Defining __wait_status_to_int as function is C++-specific.=C2=A0 I do=
n't
> > > think
> > > this is really required.=C2=A0 A quick test implies the C macro defin=
ition in
> > > sys/wait.h is sufficent for C++ as well.
> >=20
> > Yes, I think you're right on that front.
>=20
> Apologies for reviving an old thread, but I ran into the same problem tod=
ay.
> Is there any chance we could have a macro-only '__wait_status_to_int' in
> Cygwin 2.11.0, please?

Here's the glibc approach:

https://sourceware.org/git/?p=3Dglibc.git;a=3Dcommit;h=3Db49ab5f4503f36dcbf=
43f821f817da66b2931fe6

So glibc/Linux doesn't provide `union wait' at all since 2016.

I'm inclined to do the same.  Thoughts?


Corinna

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

--SLauP2uySp+9cKYP
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlt/ypgACgkQ9TYGna5E
T6DI6g/6Ag9pISnW1UiLGwXnSnYbwGJaPTFN1v9ExbaJuBAQfluS933Iho+H1bPx
aw7Kx09J09hSbkR6EmMXQSYEXFuym+NlgCpz08Od/So6qT3t0sCdYPvz6bIJXphL
Zq4lvS7ARsdvqQxeqpz+eWEhrF8siJH+29eezyvx03VjUFZkXzdJS0+B5LCBY9J9
AdiZsL+zVMpl0XzJqylWLpuuNTD2+xYTdaFTyuNV82a8ljPfEDzXZO/lnTXvE+8U
hfQmT1uOsL+pMiNQ0yIbpF3M/3ARqZa4/gFfip+Gu1e1mOUACp4irNASpluQZg/v
LKiJWurpCWqs9WLZd2/KWeoaMMnxe3+4ecP3C/ge7f3/pE9LFFNe5ZKwvNMUldOk
Gd90u0kip97BBAsu6umoBZ12r1NfFk/foFOgv5zccQKPvrwyDtUMchmoaPS5zVHv
9EmIbqkTv5EekiPwkVwF2LNiLVBVWAXsXd5TpfXNIShI2V+nGIQCjeUvJTr2ZqT3
8ZY8936OiAPtFBq1UtLcNrEa3/1Gg/sKfMzl3vLekiob0uSm6gamocoz9YAImp18
xawK51tIYlkktZc9M1A8NqYg2SD4vzPGuaoRerYQkd1n4UR0ZYIySONLZBQ4IwEN
VGbCEn7Rn/D+hxhahCyA7SAhXjLIEQYaYFxwCffJ7FlgxuxZxwQ=
=A8Yy
-----END PGP SIGNATURE-----

--SLauP2uySp+9cKYP--

- Raw text -


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