NetBSD Problem Report #55429
From www@netbsd.org Sun Jun 28 12:03:43 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 3885B1A9217
for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Jun 2020 12:03:43 +0000 (UTC)
Message-Id: <20200628120342.5311B1A9228@mollari.NetBSD.org>
Date: Sun, 28 Jun 2020 12:03:42 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: SA_RESTART not available if -D_POSIX_C_SOURCE=200809L
X-Send-Pr-Version: www-1.0
>Number: 55429
>Category: standards
>Synopsis: SA_RESTART not available if -D_POSIX_C_SOURCE=200809L
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: standards-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 28 12:05:00 +0000 2020
>Originator: coypu
>Release: NetBSD 9.99.63
>Organization:
>Environment:
NetBSD planets 9.99.63 NetBSD 9.99.63 (GENERIC) #4: Sun May 24 22:55:24 IDT 2020 fly@planets:/home/fly/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
#define _POSIX_C_SOURCE 200809L
#include <signal.h>
int main() {
return SA_RESTART;
}
~> cc test.c
test.c: In function ‘main’:
test.c:4:9: error: ‘SA_RESTART’ undeclared (first use in this function)
return SA_RESTART;
^~~~~~~~~~
test.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
>How-To-Repeat:
>Fix:
I can't understand POSIX.
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.