From patchwork Thu Jul 23 23:46:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 499564 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9F2D51402ED for ; Fri, 24 Jul 2015 09:46:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=NEsg6qJK; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=yWoil4TCVsIiL4fk0y44PFgKlUHLW+f1agjj9I8jhjR/b0 KD+B+FimHOLH3I5f6sofNzAyQPReAiBe6nj9H/jVBXciN/hPW4uoKmS/kNqicvgN KzGEleGZAB7qRmYOoIoLD06SN+TOOtp72oUm6J0bK5z3SIUrg7fZDSmkqG0/M= 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:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=j6UiTAEZUm1UZEJUtEaxDLnXbwA=; b=NEsg6qJK2nHO5KG6iuNS ppxsY10YEDEkE1hymoF2vWMjn3QUQdNjRYV8t0feUrc10ztQ6NrgN+cftp6E0F3C +e49vBXjEiney5E9eAl95PW+1bh8UQTApoOucQrtR9Ix1XmKO35P7x4F7GneJ4yZ sv7Zqfr8c3rSh0Z8FeK/W/U= Received: (qmail 121818 invoked by alias); 23 Jul 2015 23:46:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 121737 invoked by uid 89); 23 Jul 2015 23:46:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_05, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Add SIGWINCH to generic . Message-Id: <20150723234606.D04D92C3B92@topped-with-meat.com> Date: Thu, 23 Jul 2015 16:46:06 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=hOe2yjtxAAAA:8 a=kj9zAlcOel0A:10 a=M8Y1zzmGVIXX1Kw19hMA:9 a=CjuIK1q_8ugA:10 The only configuration affected by this is NaCl. I've declared it a "bug fix" because all real-world POSIX systems have SIGWINCH, so the "generic" GNU API should include it. Thanks, Roland * bits/signum.h: Update comments to mention 1003.1-2013 too. (SIGWINCH): New macro. diff --git a/bits/signum.h b/bits/signum.h index a07a9b4..e6deefd 100644 --- a/bits/signum.h +++ b/bits/signum.h @@ -28,9 +28,13 @@ # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */ #endif -/* We define here all the signal names listed in POSIX (1003.1-2008). +/* We define here all the signal names listed in POSIX (1003.1-2008); + as of 1003.1-2013, no additional signals have been added by POSIX. + We also define here signal names that historically exist in every + real-world POSIX variant (e.g. SIGWINCH). + Signals in the 1-15 range are defined with their historical numbers. - For other signals specified by POSIX, we use the BSD numbers. */ + For other signals, we use the BSD numbers. */ /* ISO C99 signals. */ #define SIGINT 2 /* Interactive attention signal. */ @@ -50,7 +54,7 @@ #define SIGPIPE 13 /* Broken pipe. */ #define SIGALRM 14 /* Alarm clock. */ -/* New(er) POSIX signals (1003.1-2008). */ +/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */ #define SIGURG 16 /* High bandwidth data is available at a socket. */ #define SIGSTOP 17 /* Stopped (signal). */ #define SIGTSTP 18 /* Stopped. */ @@ -67,10 +71,14 @@ #define SIGUSR1 30 /* User-defined signal 1. */ #define SIGUSR2 31 /* User-defined signal 2. */ +/* Nonstandard signals found in all modern POSIX systems + (including both BSD and Linux). */ +#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */ + #define _NSIG 32 /* Archaic names for compatibility. */ -#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP11 */ +#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */ #define SIGCLD SIGCHLD /* Old System V name */ #endif /* included. */