From owner-freebsd-hackers Tue Aug 31 3:22:46 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id D2DDC158F9 for ; Tue, 31 Aug 1999 03:22:37 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id LAA35164; Tue, 31 Aug 1999 11:23:14 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Tue, 31 Aug 1999 11:23:14 +0100 (BST) From: Doug Rabson To: Francis Jordan Cc: Marcel Moolenaar , hackers@freebsd.org Subject: Re: More than 32 signals. Thought? In-Reply-To: <37CABABF.33E13FF@netscape.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 30 Aug 1999, Francis Jordan wrote: > Marcel Moolenaar wrote: > > > > [cc'd to David E. Cross (crossd@cs.rpi.edu) and James Raynard > > (jraynard@freebsd.org)] > > > > I'm thinking about extending the number of signals. I like your thoughts > > and opinions. > > > > 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. > > > Do as NetBSD does to remain compatible? Or borrow a few thoughts from > Solaris, which also has 128 signals: > > typedef struct { /* signal set type */ > unsigned long __sigbits[4]; > } sigset_t; Please be careful with your datatypes when formulating this. If you are going to pack 32 signals into one field, make it u_int32_t, not int or long. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message