|
shm_open(2) -- create/open a shared memory object
|
The shm_open() system call establishes a connection between a shared memory object and a file descriptor. It creates an open file description that corresponds to the shared memory object and returns a file descriptor that refers to that open file description. This file descriptor (which is the lowest numbered file descriptor not currently open for that process) is used by other functions to refer ... |
shm_unlink(2) -- unlink a shared memory object
|
The shm_unlink() system call removes the name of the shared memory object named by the string pointed to by name. If one or more references to the shared memory object exists when the object is unlinked, the name will be removed before shm_unlink() returns, but the removal of the memory object contents will be postponed until all open and map references to the shared memory object have been remove... |
|
shutdown(2) -- shut down a socket
|
The shutdown() system call is used to shut down a socket. In the case of a full-duplex connection, shutdown() can be used to either partially or fully shut down the socket, depending upon the value of how. how Interpretation SHUT_RD or 0 Further receives are disallowed SHUT_WR or 1 Further sends are disallowed SHUT_RDWR or 2 Further sends and receives are disallowed The s parameter is a socket des... |
sigaction(2) -- examine and change signal action
|
The sigaction() function allows the calling process to examine and/or specify the action to be associated with a specific signal. The argument sig specifies the signal; acceptable values are defined in . The structure sigaction, used to describe an action to be taken, is defined in the header to include at least the following members: Member Type Member Name Description void(*... |
sigaltstack(2) -- set and/or get signal alternate stack context.
|
The sigaltstack() function allows a process to define and examine the state of an alternate stack for signal handlers. Signals that have been explicitly declared to execute on the alternate stack will be delivered on the alternate stack. If ss is not a null pointer, it points to a stack_t structure that specifies the alternate signal stack that will take effect upon return from sigaltstack(). The ... |
sigblock(2) -- block signals
|
sigblock() causes the signals specified in mask to be added to the set of signals currently being blocked from delivery. Signal i is blocked if the i-th bit in mask is 1, as specified with the macro sigmask(i). It is not possible to block signals that cannot be ignored, as documented in i). It is not possible to block signals that cannot be ignored, as documented in ). It is not possible to block ... |
siginterrupt(2) -- allow signals to interrupt functions
|
The siginterrupt() function is used to change the restart behaviour when a function is interrupted by the specified signal. The function siginterrupt(sig, flag) has an effect as if implemented as: siginterrupt(int sig, int flag) { int ret; struct sigaction act; (void) sigaction(sig, NULL, &act); if (flag) act.sa_flags &= ~SA_RESTART; else act.sa_flags |= SA_RESTART; ret = sigaction(sig, &act, NULL... |
signal(2) -- signal management
|
The functions described in this reference page provide simplified signal management: + The signal() function chooses one of three ways in which receipt of the signal number sig is to be subsequently handled. + The sigset() function is used to modify signal dispositions. + The sighold() function adds sig to the calling process' signal mask. + The sigrelse() function removes sig from the calling pr... |
sigpending(2) -- examine pending signals
|
sigpending() stores the set of signals that are blocked from delivery and are pending to the calling thread, at the location pointed to by set. |
sigprocmask(2) -- examine and change blocked signals
|
The sigprocmask() function allows the calling thread to examine and/or change its signal mask. If the argument set is not a null pointer, it points to a set of signals to be used to change the currently blocked set. The argument how indicates the way in which the set is changed and consists of one of the following values: SIG_BLOCK The resulting set will be the union of the current set and the sig... |
sigqueue(2) -- queue a signal to a process
|
The sigqueue() system call causes the signal specified by signo to be sent with the value specified by value to the process specified by pid. If signo is zero (the null signal), error checking is performed but no signal is actually sent. The null signal can be used to check the validity of pid. The conditions required for a process to have permission to queue a signal to another process are the sa... |
sigsend(2) -- send a signal to a process or a group of processes
|
The sigsend() system call sends a signal to a process or a group of processes. The process or group of processes to which the signal is to be sent is specified by id and idtype. The signal to be sent is specified by sig and is either one from the list given in signal() (see signal(2)) or 0. If sig is equal to zero (the null signal), error checking is performed but no signal is actually sent. This ... |
sigsendset(2) -- send a signal to a process or a group of processes
|
The sigsend() system call sends a signal to a process or a group of processes. The process or group of processes to which the signal is to be sent is specified by id and idtype. The signal to be sent is specified by sig and is either one from the list given in signal() (see signal(2)) or 0. If sig is equal to zero (the null signal), error checking is performed but no signal is actually sent. This ... |
sigsetmask(2) -- set current signal mask
|
sigsetmask() sets the current signal mask (those signals that are blocked from delivery). Signal i is blocked if the i-th bit in mask, as specified with the macro sigmask(i), is a i), is a ), is a 1. It is not possible to mask signals that cannot be ignored, as documented in signal(5); this restriction is silently imposed by the system. sigblock() can be used to add elements to the set of blocked ... |
sigspace(2) -- assure sufficient signal stack space
|
sigspace() requests additional stack space that is guaranteed to be available for processing signals received by the calling process. If the value of stacksize is positive, it specifies the size of a space, in bytes, which the system guarantees to be available when processing a signal. If the value of stacksize is zero, any guarantee of space is removed. If the value is negative, the guarantee is ... |