lkml.org 
[lkml]   [1997]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectAnatomy of a sigset_t.
>>>>> "Scott" == C Scott Ananian <cananian@lcs.mit.edu> 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

Ole


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.022 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site