delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/08/06/12:16:55

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=GtHsgSljOCFzvyAE
rct7PJs8V3Pk989/RiCvwAbJ+7hRnKHPw6thOZQjAc4NweXQfglKqvSo6YZZaeuI
cfmpPUvJLOJWwA76F6zoMMyA2Hm/q1hiwYxCYbgrXrLMETck3JflITsTYNPiHl/O
v5Fw/gkb0iVXGldD+4GnmsVdEKg=
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=yOWG70Zkgctf3TOM7ZlnRw
Tre8E=; b=b3MTnkZ1H5xDv5lipnH2MUL4x2MrE0PzcoIIaIPqp2B8zlQcuit1tX
FkVZu2NOClmY0Mx+/EHS5HqqVemnBN5OGfPRQUF53reWi4zj6AJ8BcvUbOlA2/C0
SQMx4v8G3ckULPz541XhfJH3H9vr0npU5IOw0qxfTedi302aXSlmQ=
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=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:forged, H*r:may, scientific, H*F:D*cornell.edu
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>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <aa7a837b-e64f-c4fb-9a4f-3c8de1dc7284@cornell.edu>
Date: Sun, 6 Aug 2017 12:16:36 -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: <77932431-b0cc-0e23-3cb8-0659a5c3307a@gmail.com>
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 8/6/2017 10:51 AM, Marco Atzeri wrote:
> On 06/08/2017 11:44, Achim Gratz wrote:
>> The "-std=c*" options are not meant to expose any symbols that are not
>> defined in the respective C standard.  You almost always want to use
>> "-std=gnu*" instead if you target POSIX-y systems.
> 
> formally you are right. However it seems that Cygwin is now
> more stringent than Linux where this problem does not arise.

That's not what I see on Linux (Scientific Linux 7.2):

$ cat test.c
#include <signal.h>
#include <stdio.h>

int
main ()
{
#ifdef SIG_SETMASK
   printf ("SIG_SETMASK is defined.\n");
#else
   printf ("SIG_SETMASK is not defined.\n");
#endif
}

$ gcc -o test test.c

$ gcc -std=c99 -o test_c99 test.c

$ ./test
SIG_SETMASK is defined.

$ ./test_c99
SIG_SETMASK is not defined.

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