From patchwork Wed Jul 22 02:51:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 498394 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 827F814031D for ; Wed, 22 Jul 2015 12:51:38 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=aFRsE7ub; 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:from:to:subject:date:message-id; q=dns; s= default; b=u6paXFqahGGrh9kMBJWWz1Z577FKhWsIxZgy1TyyiRaoQgVXUJ5Jr zympqMHqdT6BuKG3PCV8tWmiynXbMsV7IEgTHJ6r4HEoAancxEvV3xZ+uTAtUT0A r3ae9AOBbbUduFpbN3pk+mG/t3y40yuIzMPEVlIfgT8kjBuZRHQOIU= 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:from:to:subject:date:message-id; s=default; bh=jL3kLAwTYgn8UxjJ6T+Wf/rqhIE=; b=aFRsE7ubJPT8hr7U8jsh2plZLELH 0QalsK0nSjelISBQ+93xuS3ebEyWhjC2l5IiysvYUe34TunVZfEXa2mXRK+Eh/ET 4cRv0pi+LNMFV9JQLTDIJrl6qDgEb+edB8P15Et7mBy2DkH+eQCYCVBujsVpIA9t naMVNvYjqEmdUlg= Received: (qmail 9270 invoked by alias); 22 Jul 2015 02:51:32 -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 9127 invoked by uid 89); 22 Jul 2015 02:51:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org From: Mike Frysinger To: libc-alpha@sourceware.org Subject: [PATCH] hppa: sigaction.h: change sa_flags to an int Date: Tue, 21 Jul 2015 22:51:11 -0400 Message-Id: <1437533471-21611-1-git-send-email-vapier@gentoo.org> This fixes the conform test for the sigaction.h header and makes it match all the other arches. 2015-07-22 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h. (struct sigaction): Change sa_flags from a long to an int, and add __glibc_reserved0 before it for padding when __WORDSIZE is 64. --- sysdeps/unix/sysv/linux/hppa/bits/sigaction.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h b/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h index ee41396..ebe375f 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h @@ -20,6 +20,8 @@ # error "Never include directly; use instead." #endif +#include + /* Structure describing the action to be taken when a signal arrives. */ struct sigaction { @@ -40,7 +42,10 @@ struct sigaction #endif /* Special flags. */ - unsigned long int sa_flags; +#if __WORDSIZE == 64 + int __glibc_reserved0; +#endif + int sa_flags; /* Additional set of signals to be blocked. */ __sigset_t sa_mask;