From owner-freebsd-hackers Mon Aug 30 6:56:15 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id A120F15193 for ; Mon, 30 Aug 1999 06:56:01 -0700 (PDT) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i231.ztm.euronet.nl [194.134.67.32]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id PAA21140; Mon, 30 Aug 1999 15:55:59 +0200 (MET DST) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id PAA86113; Mon, 30 Aug 1999 15:55:56 +0200 (CEST) (envelope-from marcel@scc.nl) Message-ID: <37CA8D6C.3885E2C5@scc.nl> Date: Mon, 30 Aug 1999 15:55:56 +0200 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Nick Hibma Cc: hackers@FreeBSD.ORG Subject: Re: More than 32 signals. Thought? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nick Hibma wrote: > > > Basicly what I'm going to do is rewrite the signalling code to use a new > > sigset_t and provide new syscalls to use it. The current syscalls convert > > between the current and the new types for compatibility. I think I'm going > > to borrow a thought or two from Linux which allows further increasing of > > the number of signals without rewriting the logic, but that's basicly > > undecided yet and open for discussion. > > How does NetBSD do it? Or more precise: What is wrong with it that you > prefer the Linux way? This basicly how NetBSD does it. The Linux trick I like to add is to have sigset_t always be the last field in structures so that the impact of enlarging sigset_t is minimal. If you pass a size argument along with syscalls that include sigset_t, you are free to further enlarge sigset_t in the kernel without recompilation of userland tools. -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ Amsterdam, The Netherlands tel: +31 20 4200655 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message