Date: 24 Jan 2000 06:03:40 -0800 From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) To: Bruce Evans <bde@zeta.org.au> Cc: current@FreeBSD.ORG Subject: Re: sigisempty? Message-ID: <vqcr9f7sh1f.fsf@silvia.hip.berkeley.edu> In-Reply-To: Bruce Evans's message of "Thu, 20 Jan 2000 08:27:18 %2B1100 (EST)" References: <Pine.BSF.4.21.0001200800100.1541-100000@alphplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* From: Bruce Evans <bde@zeta.org.au>
* 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vqcr9f7sh1f.fsf>
