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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 28 12:05:00 +0000 2020
>Closed-Date: Fri Oct 11 18:55:29 +0000 2024
>Last-Modified: Fri Oct 11 18:55:29 +0000 2024
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Mon, 09 Sep 2024 12:01:56 +0000
State-Changed-Why:
fixed in HEAD, needs pullup-10, pullup-9
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55429 CVS commit: src/sys/sys
Date: Mon, 9 Sep 2024 12:01:17 +0000
Module Name: src
Committed By: riastradh
Date: Mon Sep 9 12:01:16 UTC 2024
Modified Files:
src/sys/sys: signal.h
Log Message:
signal.h: Fix namespacing for various SA_* constants.
References:
POSIX 2001 (items labeled XSI are restricted by _XOPEN_SOURCE):
https://pubs.opengroup.org/onlinepubs/009695399/basedefs/signal.h.html
POSIX 2008 (items no longer labeled XSI are available if
_POSIX_C_SOURCE >= 200809L):
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
PR standards/55429: SA_RESTART not available if
-D_POSIX_C_SOURCE=200809L
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/sys/signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: needs-pullups->pending-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 11 Oct 2024 15:25:47 +0000
State-Changed-Why:
pullup-10 #948 https://releng.netbsd.org/cgi-bin/req-10.cgi?show=948
pullup-9 probably not worth the build breakage risk
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55429 CVS commit: [netbsd-10] src/sys/sys
Date: Fri, 11 Oct 2024 18:48:01 +0000
Module Name: src
Committed By: martin
Date: Fri Oct 11 18:48:01 UTC 2024
Modified Files:
src/sys/sys [netbsd-10]: signal.h
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #948):
sys/sys/signal.h: revision 1.76
signal.h: Fix namespacing for various SA_* constants.
References:
POSIX 2001 (items labeled XSI are restricted by _XOPEN_SOURCE):
https://pubs.opengroup.org/onlinepubs/009695399/basedefs/signal.h.html
POSIX 2008 (items no longer labeled XSI are available if
_POSIX_C_SOURCE >= 200809L):
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
PR standards/55429: SA_RESTART not available if
-D_POSIX_C_SOURCE=200809L
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.75.4.1 src/sys/sys/signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 11 Oct 2024 18:55:29 +0000
State-Changed-Why:
fixed in HEAD, pulled up to 10, risk to 9 is probably not worth it
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.