Anatomy of a sigset_t.

Ole Myren R|hne (
Wed, 10 Dec 1997 14:10:26 +0100

>>>>> "Scott" == C Scott Ananian <> writes:

Scott> OK. Here's our discussion program:
Scott> - ------ begin test.c -----
Scott> #include <signal.h>
Scott> void main()
Scott> {
Scott> sigset_t s;
Scott> sigemptyset(&s);
Scott> sigaddset(&s, SIGUSR1);
Scott> sigprocmask(SIG_BLOCK, &s, NULL);
Scott> }
Scott> - ----- end test.c --------

Scott> Simple, eh? We compile it:

Scott> [cananian@cananian ~/Test]$ gcc -o test -Wall test.c

$ gcc -c -O4 -Wall test.c
test.c: In function `main':
test.c:6: incompatible types in assignment
test.c:6: warning: left-hand operand of comma expression has no effect
test.c:6: warning: statement with no effect

Simple, eh?

BTW: some application require NSIG (instead of _NSIG) which is missing
with linux-2.1.71 / libc-5.4.38