Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2000 10:20:50 -0500 (EST)
From:      Kelly Yancey <kbyanc@posi.net>
To:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.ORG>
Cc:        Bruce Evans <bde@zeta.org.au>, current@FreeBSD.ORG
Subject:   Re: sigisempty?
Message-ID:  <Pine.BSF.4.05.10001241018180.38363-100000@kronos.alcnet.com>
In-Reply-To: <vqcr9f7sh1f.fsf@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 Jan 2000, Satoshi - Ports Wraith - Asami wrote:

> 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
>  
>  /*
> 

  Suggestion: use sigemptyset() rather than bzero().

  Kelly

--
Kelly Yancey  -  kbyanc@posi.net  -  Richmond, VA
Analyst / E-business Development, Bell Industries  http://www.bellind.com/
Maintainer, BSD Driver Database       http://www.posi.net/freebsd/drivers/
Coordinator, Team FreeBSD        http://www.posi.net/freebsd/Team-FreeBSD/



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?Pine.BSF.4.05.10001241018180.38363-100000>