From owner-freebsd-current Mon Jan 24 6: 6:41 2000 Delivered-To: freebsd-current@freebsd.org Received: from m2.cs.berkeley.edu (m2.CS.Berkeley.EDU [128.32.45.178]) by hub.freebsd.org (Postfix) with ESMTP id 0B30314E79 for ; Mon, 24 Jan 2000 06:06:33 -0800 (PST) (envelope-from asami@stampede.cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca7-14.ix.netcom.com [209.109.235.14]) by m2.cs.berkeley.edu (8.9.3/8.9.3) with ESMTP id GAA76513; Mon, 24 Jan 2000 06:05:52 -0800 (PST) (envelope-from asami@stampede.cs.berkeley.edu) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id GAA23462; Mon, 24 Jan 2000 06:04:00 -0800 (PST) To: Bruce Evans Cc: current@FreeBSD.ORG Subject: Re: sigisempty? References: From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: 24 Jan 2000 06:03:40 -0800 In-Reply-To: Bruce Evans's message of "Thu, 20 Jan 2000 08:27:18 +1100 (EST)" Message-ID: Lines: 28 X-Mailer: Gnus v5.7/Emacs 20.5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * From: Bruce Evans * The correct answer seems to be "you can't do that" :-). Even checking Err. Now why am I not surprised that you said that? ;) Anyway, I have committed the following patch submitted by Alexander Langer. It has a nice feature of working for both -current and -stable without any additional #ifdef's. I hope it's ok. Satoshi ======= --- lib/libxview/notify/ntfy.h.orig Tue Jun 29 07:18:14 1993 +++ lib/libxview/notify/ntfy.h Mon Jan 10 15:50:53 2000 @@ -188,7 +197,12 @@ #define sigisempty(s) (!(((s)->__sigbits[0]) | ((s)->__sigbits[1]) \ | ((s)->__sigbits[2]) | ((s)->__sigbits[3]))) #else -#define sigisempty(s) (!(*(s))) +static int +sigisempty (sigset_t *s) { + sigset_t n; + bzero(&n, sizeof(sigset_t)); + return (! memcmp(&n, s, sizeof(sigset_t))); +} #endif /* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message