Query: pthread_sigmask
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pthread_sigmask(3) Library Functions Manual pthread_sigmask(3)NAMEpthread_sigmask - Examine or change the current thread's signal mask.LIBRARYDECthreads POSIX 1003.1c Library (libpthread.so)SYNOPSIS#include <pthread.h> #include <signal.h> int pthread_sigmask( int how, const sigset_t *set, sigset_t *oset);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: IEEE Std 1003.1c-1995, POSIX System Application Program InterfacePARAMETERSIndicates 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 com- plement 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).DESCRIPTIONThis 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 sig- nals 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 VALUESIf 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.ERRORSNoneRELATED INFORMATIONManuals: Guide to DECthreads and Programmer's Guide delim off pthread_sigmask(3)
Related Man Pages |
---|
sigprocmask(2) - linux |
sigprocmask(3) - linux |
sigprocmask(2) - freebsd |
sigsetmask(2) - osf1 |
pthread_sigmask(3t) - hpux |
Similar Topics in the Unix Linux Community |
---|
capturing synchronous signals |
SIGCHLD interrupts its own handler |
Unable to create a UDP client from thread? |
Thread parameter in ANSI C makes a segmentation fault |