From owner-freebsd-current Mon Sep 6 6:54:59 1999 Delivered-To: freebsd-current@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 375AA14DEB for ; Mon, 6 Sep 1999 06:54:55 -0700 (PDT) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i212.ztm.euronet.nl [194.134.67.13]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id PAA00612; Mon, 6 Sep 1999 15:54:49 +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 PAA85656; Mon, 6 Sep 1999 15:54:45 +0200 (CEST) (envelope-from marcel@scc.nl) Message-ID: <37D3C7A5.1B8A4935@scc.nl> Date: Mon, 06 Sep 1999 15:54:45 +0200 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Dufault Cc: current@FreeBSD.ORG Subject: Re: (P)review: sigset_t for more than 32 signals References: <199909061300.JAA07157@hda.hda.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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