From owner-freebsd-current Thu Dec 26 16:39:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FFA637B401; Thu, 26 Dec 2002 16:39:20 -0800 (PST) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id E02BE43E4A; Thu, 26 Dec 2002 16:39:19 -0800 (PST) (envelope-from allbery@ece.cmu.edu) Received: from [10.9.204.1] (allbery@dhcp-57-198.dsl.telerama.com [205.201.57.198]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id gBR0dDW00466; Thu, 26 Dec 2002 19:39:13 -0500 (EST) Subject: Re: sa_handler and sigaction... From: "Brandon S. Allbery " KF8NH To: Tim Robbins Cc: Dan Nelson , Donn Miller , current In-Reply-To: <20021227110226.A27921@dilbert.robbins.dropbear.id.au> References: <3E0B422C.2000407@cvzoom.net> <20021226182742.GA1473@dan.emsphone.com> <20021227110226.A27921@dilbert.robbins.dropbear.id.au> Content-Type: text/plain Organization: Message-Id: <1040949549.10056.9.camel@rushlight.kf8nh.apk.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 26 Dec 2002 19:39:09 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 2002-12-26 at 19:02, Tim Robbins wrote: > On Thu, Dec 26, 2002 at 12:27:43PM -0600, Dan Nelson wrote: > > In the last episode (Dec 26), Donn Miller said: > > > Just tried compiling the mgv port on current. It bombs out with the > > > following error message: > > > > > > >Making all in toolbar > > > >cc -DPACKAGE=\"mgv\" -DVERSION=\"3.1.5\" -DHAVE_PUTENV=0 -DUSE_DMALLOC=0 > > > >-DHAVE_XPM=1 -DHAVE_X11_XPM_H=1 -DHAVE_MOTIF=1 -DHAVE_LIBHELP=0 > > > >-DHAVE_EDITRES=1 -I. -I. -I. -Iwlib -I/usr/X11R6/include -O2 -Os -pipe > > > >-march=pentium3 -D_POSIX_SOURCE -I/usr/X11R6/include -c Ghostview.c > > > >Ghostview.c: In function `Input': > > > >Ghostview.c:487: structure has no member named `sa_handler' > > > >Ghostview.c: In function `StopInterpreter': > > > >Ghostview.c:1529: structure has no member named `sa_handler' > > > >*** Error code 1 > > > > > > It looks like it should compile, but it doesn't. I mean, > > > does have a #define for sa_handler. > > > > But not in the -D_POSIX_SOURCE case. Could someone with the POSIX spec > > see whether sa_handler is supposed to be visible or not? > > From the SUSv3 System Interfaces volume (excuse the bad formatting): I don't have the spec, but a perusal of secondary sources has P1003.1-1990 specifying sa_handler and P1003.1-1993 adding sa_sigaction. I should add that sigaction() without sa_handler is almost entirely useless for portable programming, so it would be downright bizarre for POSIX to specify sigaction() and yet omit sa_handler. -- brandon s allbery [openafs/solaris/japh/freebsd] allbery@kf8nh.apk.net system administrator [linux/heimdal/too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university [better check the oblivious first -ke6sls] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message