*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> pthread_sigmask (3)              
Title
Content
Arch
Section
 

pthread_sigmask(3)

Contents


NAME    [Toc]    [Back]

       pthread_sigmask  -  Examine or change the current thread's
       signal mask

SYNOPSIS    [Toc]    [Back]

       #include <pthread.h> #include <signal.h>

       int pthread_sigmask(
               int how,
               const sigset_t *set,
               sigset_t *oset );

LIBRARY    [Toc]    [Back]

       DECthreads POSIX 1003.1c Library (libpthread.so)

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       IEEE  Std  1003.1c-1995,  POSIX System Application Program
       Interface

PARAMETERS    [Toc]    [Back]

       Indicates the manner in which the set of masked signals is
       changed. The optional values are as follows: The resulting
       set is the union of the current set  and  the  signal  set
       pointed to by the set argument.)  The resulting set is the
       intersection of the current set and the complement of  the
       signal  set pointed to by the set argument.  The resulting
       set is the signal set pointed  to  by  the  set  argument.
       Specifies  the  signal set by pointing to a set of signals
       used to change the blocked set. If this set value is NULL,
       the how argument is ignored and the process signal mask is
       unchanged.  Receives the value of the current signal  mask
       (unless this value is NULL).

DESCRIPTION    [Toc]    [Back]

       This routine is for UNIX systems only.

       This routine examines or changes the calling thread's signal
 mask.  Typically, you use the SIG_BLOCK option for the
       how  value  to  block signals during a critical section of
       code, and then use this routine's  SIG_SETMASK  option  to
       restore  the  mask  to  the previous value returned by the
       previous call to the pthread_sigmask(3) routine.

       If there are any unblocked signals pending after a call to
       this  routine,  at least one of those signals is delivered
       before this routine returns.

       This routine does not allow the SIGKILL or SIGSTOP signals
       to  be  blocked.   If  a  program attempts to block one of
       these signals, pthread_sigmask(3) gives no  indication  of
       the error.








RETURN VALUES    [Toc]    [Back]

       If  an  error  condition  occurs,  this routine returns an
       integer value  indicating  the  type  of  error.  Possible
       return  values are as follows: Successful completion.  The
       value specified for how is invalid.

ERRORS    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Manuals: Guide to DECthreads and Programmer's Guide



                                               pthread_sigmask(3)
[ Back ]
 Similar pages
Name OS Title
pthread_sigmask OpenBSD examine and/or change a thread's signal mask
pthread_sigmask FreeBSD examine and/or change a thread's signal mask
sigaction HP-UX examine and change signal action
sigsetmask Tru64 Set the current signal mask
sigsetmask HP-UX set current signal mask
sigsetmask NetBSD set current signal mask
sigsetmask OpenBSD set current signal mask
sigprocmask Tru64 Set the current signal mask
sigmask FreeBSD manipulate current signal mask
sigprocmask FreeBSD manipulate current signal mask
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service