Date: Wed, 19 Jan 2000 07:03:04 -0800 (PST) From: asami@cs.berkeley.edu (Satoshi Asami) To: current@freebsd.org Subject: sigisempty? Message-ID: <200001191503.HAA04869@silvia.hip.berkeley.edu>
next in thread | raw e-mail | index | archive | help
Hi,
How do I test if sigset_t is empty in -current? The xview sources
have this macro:
#define sigisempty(s) (!(*(s)))
which is ok for the old sigset_t (unsigned int) but obviously won't
work for the new one since it's a struct.
typedef struct __sigset {
unsigned int __bits[_SIG_WORDS];
} sigset_t;
Am I supposed to use a loop to iterate through the __bits and test if
all of them are zero or something?
Thanks,
Satoshi
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?200001191503.HAA04869>
