From owner-freebsd-amd64@FreeBSD.ORG Wed Sep 1 12:18:04 2010 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14869106567A; Wed, 1 Sep 2010 12:18:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id D9FA08FC0A; Wed, 1 Sep 2010 12:18:03 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 8D1CD46B38; Wed, 1 Sep 2010 08:18:03 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A6A878A03C; Wed, 1 Sep 2010 08:18:02 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org, Andriy Gapon Date: Wed, 1 Sep 2010 08:17:35 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <201009011050.o81Ao3DB072806@freefall.freebsd.org> In-Reply-To: <201009011050.o81Ao3DB072806@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009010817.35653.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 01 Sep 2010 08:18:02 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: bde@freebsd.org Subject: Re: amd64/150170: SIG_ATOMIC_MIN/SIG_ATOMIC_MAX 32-bit when sig_atomic_t is 64-bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 12:18:04 -0000 On Wednesday, September 01, 2010 6:50:03 am Andriy Gapon wrote: > The following reply was made to PR amd64/150170; it has been noted by GNATS. > > From: Andriy Gapon > To: Gerald Pfeifer > Cc: Gerald Pfeifer , FreeBSD-gnats-submit@FreeBSD.org > Subject: Re: amd64/150170: SIG_ATOMIC_MIN/SIG_ATOMIC_MAX 32-bit when sig_atomic_t > is 64-bit > Date: Wed, 01 Sep 2010 13:26:36 +0300 > > on 01/09/2010 01:32 Gerald Pfeifer said the following: > >> Number: 150170 > >> Category: amd64 > >> Synopsis: SIG_ATOMIC_MIN/SIG_ATOMIC_MAX 32-bit when sig_atomic_t is 64-bit > >> Confidential: no > >> Severity: non-critical > >> Priority: medium > >> Responsible: freebsd-amd64 > >> State: open > >> Quarter: > >> Keywords: > >> Date-Required: > >> Class: sw-bug > >> Submitter-Id: current-users > >> Arrival-Date: Tue Aug 31 23:00:13 UTC 2010 > >> Closed-Date: > >> Last-Modified: > >> Originator: Gerald Pfeifer > >> Release: FreeBSD 8.0-CURRENT amd64 > >> Organization: > >> Environment: > > System: FreeBSD ref9-amd64.freebsd.org 9.0-CURRENT FreeBSD 9.0-CURRENT #4 r208973: Thu Jun 10 08:49:43 UTC 2010 simon@ref9- amd64.freebsd.org:/scratch/obj/usr/src/sys/REF9-AMD64 amd64 > >> Description: > > On a 9.0-CURRENT machine, amd64, we have: > > > > /usr/include/machine/signal.h:typedef long sig_atomic_t; > > > > This is 32-bit. At the same time we have: > > > > /usr/include/machine/_stdint.h:#define SIG_ATOMIC_MIN INT32_MIN > > /usr/include/machine/_stdint.h:#define SIG_ATOMIC_MAX INT32_MAX > > > > Which is 64-bit. > > 32-bit vs 64-bit seems to be reversed here... Yes, but we should still fix this one way or another. I was surprised recently when I found that sig_atomic_t was long on amd64. Perhaps Bruce (cc'd) knows which way it should be fixed? -- John Baldwin