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=s7rRlb7aGUN3Hds6o9kL58jU9eYlar42a/CjXyuifOCWq5wkJoe7C UViulV7QuIDmqwqnRzY5nZE4kCbCArVdojgOr5imuC36GZ8HFAzWQCGD+L9RV52m qVx80NcKcuEP78alrbTypSekNYWYWd/+7zRAggIlsIFh6NdZuFd4Fk= 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=GTEY69bsVRWuwMKuWCWzh9UGnl0=; b=hZTk0IdrsNm7MZLJn+DoSwX/5Do/ E3tv9+wL+l3DQK6sG5zSvfzkmLsXotZ5kwsWLnLm/clIZWmRScp4iWODIecGoH18 zbz501BU7zGP/DwRUE7wA/CzUJcqkFzpCA7Al1UBrpfXbc3Ry7IIOcI9u8lABntz uYPxVCyJA9oImVI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 22 Jun 2015 13:08:35 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.1.0-0.1 Message-ID: <20150622110835.GE28301@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <558706D5 DOT 1020508 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <558706D5.1020508@cornell.edu> User-Agent: Mutt/1.5.23 (2014-03-12) --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ken, On Jun 21 14:47, Ken Brown wrote: > On 6/20/2015 4:55 PM, Corinna Vinschen wrote: > >- First cut of an implementation to allow signal handlers running on an > > alternate signal stack. > > > >- New API sigaltstack, plus definitions for SA_ONSTACK, SS_ONSTACK, SS_D= ISABLE, > > MINSIGSTKSZ, SIGSTKSZ. >=20 > I must be doing something wrong. Shouldn't including signal.h make the n= ew > API available? >=20 > $ uname -a > CYGWIN_NT-6.1-WOW fiona 2.1.0(0.287/5/3) 2015-06-20 21:44 i686 Cygwin >=20 > $ cygcheck -cd cygwin-devel > Cygwin Package Information > Package Version > cygwin-devel 2.1.0-0.1 >=20 > $ cat test.c > #include > int > main() > { > int foo =3D SIGSTKSZ; > return 0; > } >=20 > $ gcc test.c > test.c: In function =E2=80=98main=E2=80=99: > test.c:6:13: error: =E2=80=98SIGSTKSZ=E2=80=99 undeclared (first use in t= his function) > int foo =3D SIGSTKSZ; > ^ You're not doing anything wrong. The relevant definitions in sys/signal.h were originally only available for RTEMS. I just made them availbale for all platforms. The problem was that the orignal code missed to include sys/cdefs.h, which is required to get the macros guarding the definitions. I fixed that in the git repo. I also made a bigger change to code setting up the alternate stack when calling the signal handler function. It turned out that my code moving to the new stack missed to safe all potentially clobbered volatile registers on both platforms. I'll upload new snapshots and 2.1.0-0.2 test releases shortly. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVh+yzAAoJEPU2Bp2uRE+gNm4P/2O9LP8EE8E3bPwUWl/yJxeG F0amP0Bfom4+KKESlkOM+//SlEBiCyyEWfJ8UypluRFeGqpNxv0NSbQeNygPpF0s oRSKb1yFOyQevLTKYzFyrZqycr2dU6Ms8WFKKHKlxL0p7q5XRD0ytJOTVnXev1GD HZYp3vtY2ePcJ+vKAW1Vtt2B/MhWBWOfVQIDfm+9A/33AK/GynS3n6+/L5Qkw6gp 1t4ntgN/g569n8gR/FmgbwykmhcmW6d3tTVtsfegdIRACQ1GbMtIzfC9xpB700K8 lDK7Cg27NpoL4hFdLg+8Nrf+YWNfBQ3fjmGg7IuHD0qIFyFUE8LAII0tKrCeI2mf 7ldTvgjc7vrhMIm0c2282BFakNLlxDCYzPi4pPq1PnYG8YMVQhulsf2njX32+6xr KGFyjkaeK7Pip+8/w7wVreBkFq7qYIUh5bsxCBA15FCQQkWaT2YanLWmGIxVLBFS gS+oJNOZwY3qmQcCBVrhOd466BD0srlFiMlqI8Bl88odl8vkfqGvmlWKoHGTu3Ez QzGhuhw0D7e04iOddoTJtqca3CaDD/65ryBU7odKmqJXkrP6BRTG52dxBev6a+uU pTOvzqQropIWIGSRrbe2YVzHlT5r/3XZx9FkGmaBGptRSeNDIqC/N7I+8OtQbsVS q+ixvCVxoUkX7t9gszbs =fvv/ -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--