From owner-freebsd-hackers Mon Jul 1 01:48:53 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA11140 for hackers-outgoing; Mon, 1 Jul 1996 01:48:53 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA11032 for ; Mon, 1 Jul 1996 01:47:29 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id SAA18029; Mon, 1 Jul 1996 18:40:26 +1000 Date: Mon, 1 Jul 1996 18:40:26 +1000 From: Bruce Evans Message-Id: <199607010840.SAA18029@godzilla.zeta.org.au> To: bde@zeta.org.au, jau@aphrodite.funet.fi Subject: Re: POSIX.4 signals + other POSIX.4 stuff to FreeBSD... Cc: hackers@freebsd.org, terry@lambert.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> >struct sigaction { >> > union { >> >.... >> > void (*sa_handler) _P((int, ...)); > then some" implementation. Those dots were put there just to keep > the compiler quiet when I needed the BSD style extended argument > list. They don't break anything really, but for reasons of strict They break the possibility of compiling (all) applications with -mrtd on i386's, and they break implementations where the equivalent of -mrtd or some other complicated (efficient) arg passing convention is standard. >> The user sigismember() is more or less required to check the bounds, so >> it needs to be larger and uglier. The kernel should probably check `sig' >> in advance and then use special kernel versions of the signal manipulation >> functions. > Right - the kernel should check that the signal code is within > the range of known signals. It should be done almost the first > thing at the beginning of the system calls that deal with the > signals. It would be much more of an effort if the macros were > really changed to check the range every time they are used. The kernel shouldn't use the user macros because it would become slower if the the user macros were fixed to actually meet their specification. Bruce