Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

Appendix A Function Prototypes 885


int sigdelset(sigset_t *set,intsigno);
<signal.h> p. 344
Returns: 0 if OK,−1 on error

int sigemptyset(sigset_t *set);
<signal.h> p. 344
Returns: 0 if OK,−1 on error

int sigfillset(sigset_t *set);
<signal.h> p. 344
Returns: 0 if OK,−1 on error

int sigismember(const sigset_t *set,intsigno);
<signal.h> p. 344
Returns: 1 if true, 0 if false,−1 on error

void siglongjmp(sigjmp_bufenv,intval);
<setjmp.h> p. 356
This function never returns

void (*signal(intsigno,void (*func)(int)))(int);
<signal.h> p. 323
Returns: previous disposition of signal if OK,
SIG_ERRon error

int sigpending(sigset_t *set);
<signal.h> p. 347
Returns: 0 if OK,−1 on error

int sigprocmask(inthow,const sigset_t *restrictset,
sigset_t *restrictoset);
<signal.h> p. 346
how:SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK
Returns: 0 if OK,−1 on error

int sigqueue(pid_tpid,intsigno,const union sigvalvalue)
<signal.h> p. 376
Returns: 0 if OK,−1 on error

int sigsetjmp(sigjmp_bufenv,intsavemask);
<setjmp.h> p. 356
Returns: 0 if called directly,nonzero if returning from a call
tosiglongjmp
Free download pdf