delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/08/06/17:49:37

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=foJZ2wB5x6/d5RVG
Y+MF1cNQ2NXYHDWLwuzD96bHPwcStalDzl+vNksHSVf35sXnTHFFBKcvLzSD6jn0
Ov6Dec96UxdtpLkLCE9vdSBYg7bUBITjtqse/L2cp5UyveMxJrAOTR734Wl6AzvE
e9F3h/ixi2NlyGO0nJEWD43CBK8=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=FqLauSzfDo6N9BNGPL4/gL
iOUAM=; b=lLhMY6U8nicz6GN6evCFus7OBPB7JTM8mQ+OA40KLjqAfpdwHgiBxJ
hTkZljmXRsJHuCEpW+kpQlJtsyQgsO03p67qMqWDfu8Gloup0CTuxJ4D26FEJMdP
IXEuPRBRSWNy9eaRPY9xDZepmrAsLt/D19tTTd1IfCOuBPamwpN40=
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=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=cygwin-patches, cygwinpatches, HContent-Transfer-Encoding:8bit
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: =?UTF-8?B?UmU6IOKAmFNJR19TRVRNQVNL4oCZIGFuZCAtc3RkPWM5OQ==?=
To: cygwin AT cygwin DOT com
References: <2adce715-b45b-ed1c-567e-68bc826710ec AT gmail DOT com> <87vam16nez DOT fsf AT Rainer DOT invalid> <77932431-b0cc-0e23-3cb8-0659a5c3307a AT gmail DOT com> <aa7a837b-e64f-c4fb-9a4f-3c8de1dc7284 AT cornell DOT edu> <cb33e319-512a-0ce8-5839-34efc85613cd AT gmail DOT com> <1fc0475c-6551-0897-d122-1214b1d1f8d1 AT cornell DOT edu>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <745233fb-d11d-e75c-bb19-2d72f8933406@cornell.edu>
Date: Sun, 6 Aug 2017 17:49:18 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <1fc0475c-6551-0897-d122-1214b1d1f8d1@cornell.edu>
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 8/6/2017 4:43 PM, Ken Brown wrote:
> On 8/6/2017 12:59 PM, Marco Atzeri wrote:
>> hdf5 seems wrong to use sigsetjmp and C99 but Cygwin seems to
>> have a consistency issue.
> 
> I think you're right that Cygwin shouldn't declare or define sigsetjmp 
> under -std=c99.  Here's a simple test:
> 
> $ cat test.c
> #include <setjmp.h>
> 
> int
> main ()
> {
>    sigjmp_buf env;
>    sigsetjmp (env, 0);
> }
> 
> On Cygwin:
> 
> $ gcc -std=c99 test.c
> In file included from /usr/include/setjmp.h:10:0,
>                   from test.c:1:
> test.c: In function ‘main’:
> test.c:7:3: error: ‘SIG_SETMASK’ undeclared (first use in this function)
>     sigsetjmp (env, 0);
>     ^
> 
> On Linux:
> 
> $ gcc -std=c99 test.c
> test.c: In function ‘main’:
> test.c:6:3: error: unknown type name ‘sigjmp_buf’
>     sigjmp_buf env;
>     ^
> test.c:7:3: warning: implicit declaration of function ‘sigsetjmp’ 
> [-Wimplicit-function-declaration]
>     sigsetjmp (env, 0);

I've submitted a patch 
(https://cygwin.com/ml/cygwin-patches/2017-q3/msg00014.html) which makes 
the behavior on Cygwin the same as on Linux.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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