Date: Tue, 31 Aug 1999 13:38:12 +0200 From: Marcel Moolenaar <marcel@scc.nl> To: hackers@FreeBSD.ORG Subject: Re: More than 32 signals. Thought? Message-ID: <37CBBEA4.C03DB96E@scc.nl> References: <37CABABF.33E13FF@netscape.net>, <Pine.BSF.4.10.9908311122040.340-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson wrote: > > On Mon, 30 Aug 1999, Francis Jordan wrote: > > > 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. I also was not quite happy with the choice of type for __sigbits. Is it worth having __sigbits to be the size that most suits the architecture (32 for i386; 64 for alpha) because of the frequent bit manipulations that are expected to be performed with it? -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37CBBEA4.C03DB96E>