Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Sep 1999 15:54:45 +0200
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Peter Dufault <dufault@hda.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: (P)review: sigset_t for more than 32 signals
Message-ID:  <37D3C7A5.1B8A4935@scc.nl>
References:  <199909061300.JAA07157@hda.hda.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Dufault wrote:

> Firstly, you should get rid of any explicit 32, 31, etc and anything
> else tied to the assumed number of bits in an int.

You first need to get rid of any code that assumes that siget_t is an
(unsigned) integer. Use macros to abstract the access to the new sigset_t
so that you don't replace one assumption with the other...

> typedef struct {
>         unsigned int n;
>         uint64_t v;
> } sigset_t;

You can't use any BSD or FreeBSD specific types (such as u_int32)t) in
publicly visible types (such as sigset_t). It breaks programs because it's
not ANSI and/or Posix.

-- 
Marcel Moolenaar                        mailto:marcel@scc.nl
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:marcel@FreeBSD.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37D3C7A5.1B8A4935>