home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSIIIIGGGGSSSSEEEETTTTOOOOPPPPSSSS((((3333)))) SSSSIIIIGGGGSSSSEEEETTTTOOOOPPPPSSSS((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- sigsetops: sigaddset, sigdelset, sigemptyset, sigfillset, sigismember,
- sgi_altersigs, sgi_sigffset, sgi_siganyset, sgi_dumpset - signal set
- manipulation and examination routines (POSIX, with SGI-specific
- additions)
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _P_O_S_I_X
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssiiiiggggnnnnaaaallll....hhhh>>>>
-
- iiiinnnntttt ssssiiiiggggaaaaddddddddsssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt,,,, iiiinnnntttt ssssiiiigggg))));;;;
-
- iiiinnnntttt ssssiiiiggggddddeeeellllsssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt,,,, iiiinnnntttt ssssiiiigggg))));;;;
-
- iiiinnnntttt ssssiiiiggggeeeemmmmppppttttyyyysssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt))));;;;
-
- iiiinnnntttt ssssiiiiggggffffiiiillllllllsssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt))));;;;
-
- iiiinnnntttt ssssiiiiggggiiiissssmmmmeeeemmmmbbbbeeeerrrr((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt,,,, iiiinnnntttt ssssiiiigggg))));;;;
-
- _S_G_I
- iiiinnnntttt ssssggggiiii____aaaalllltttteeeerrrrssssiiiiggggssss((((iiiinnnntttt aaaaccccttttiiiioooonnnn,,,, ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt,,,, iiiinnnntttt ssssiiiiggggaaaarrrrrrrraaaayyyy[[[[]]]]))));;;;
-
- iiiinnnntttt ssssggggiiii____ssssiiiiggggffffffffsssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt,,,, iiiinnnntttt cccclllleeeeaaaarrrriiiitttt))));;;;
-
- iiiinnnntttt ssssggggiiii____ssssiiiiggggaaaannnnyyyysssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt))));;;;
-
- iiiinnnntttt ssssggggiiii____dddduuuummmmppppsssseeeetttt((((ssssiiiiggggsssseeeetttt____tttt ****sssseeeetttt))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These library calls modify or return information about the disposition of
- the signal mask pointed to by _s_e_t. The system defines a set of signals
- that may be delivered to a process. Signal delivery resembles the
- occurrence of a hardware interrupt: the signal is blocked from further
- occurrence, the current process context is saved, and a new one is built.
- A global _s_i_g_n_a_l _m_a_s_k defines the set of signals currently blocked from
- delivery to a process; it may be changed with a _s_i_g_p_r_o_c_m_a_s_k(2) call. The
- masks submitted as parameters to _s_i_g_p_r_o_c_m_a_s_k, _s_i_g_a_c_t_i_o_n, and _s_i_g_s_u_s_p_e_n_d
- and returned by _s_i_g_p_e_n_d_i_n_g may be constructed, altered, and examined via
- the sigsetops described in this man page. They do _N_O_T themselves alter
- the global signal mask. The masks that the routines manipulate are of
- type _s_i_g_s_e_t__t.
-
- _s_i_g_a_d_d_s_e_t adds _s_i_g to the specified set.
-
- _s_i_g_d_e_l_s_e_t deletes _s_i_g from the specified set.
-
- _s_i_g_e_m_p_t_y_s_e_t clears all signals in the specified set.
-
- _s_i_g_f_i_l_l_s_e_t sets all signals in the specified set.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSIIIIGGGGSSSSEEEETTTTOOOOPPPPSSSS((((3333)))) SSSSIIIIGGGGSSSSEEEETTTTOOOOPPPPSSSS((((3333))))
-
-
-
- _s_i_g_i_s_m_e_m_b_e_r returns 1 if _s_i_g is a member of the specified set, else
- returns 0.
-
- SSSSGGGGIIII----SSSSPPPPEEEECCCCIIIIFFFFIIIICCCC FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- The following four functions, although _n_o_t part of the POSIX
- specification, provide additional capabilities:
-
- _s_g_i__a_l_t_e_r_s_i_g_s performs _a_c_t_i_o_n on the specified signal set, for each
- signal in _s_i_g_a_r_r_a_y. _A_c_t_i_o_n may be ADDSIGS or DELSIGS (defined in
- <_s_y_s/_s_i_g_n_a_l._h). The final signal entry in _s_i_g_a_r_r_a_y must be followed by a
- 0 entry (in this way _s_g_i__a_l_t_e_r_s_i_g_s knows how many signals to process).
- The array may include all legal signals; however, if the intent is to set
- or clear all signals the _s_i_g_a_d_d_s_e_t and _s_i_g_d_e_l_s_e_t routines are more
- efficient. Any illegal signal numbers are silently skipped.
- _s_g_i__a_l_t_e_r_s_i_g_s returns the number of signals which were processed, or -1
- with _e_r_r_n_o set to [[[[EEEEIIIINNNNVVVVAAAALLLL]]]] if _a_c_t_i_o_n is not ADDSIGS or DELSIGS.
-
- _s_g_i__s_i_g_f_f_s_e_t returns the number of the lowest pending signal in _s_e_t. If
- none are pending, it returns 0. If _c_l_e_a_r_i_t is non-zero, the returned
- signal is cleared in the mask. In this way _s_g_i__s_i_g_f_f_s_e_t may be used to
- sequentially examine the signals in a mask without duplication.
-
- _s_g_i__s_i_g_a_n_y_s_e_t(_s_e_t) returns 1 if _a_n_y signals are set in the specified
- mask, otherwise it returns 0. The mask is not altered.
-
- _s_g_i__d_u_m_p_s_e_t displays the specified set of signals as a bit-vector,
- primarily for debugging purposes.
-
- For a list of valid signal numbers please see _ssss_iiii_gggg_nnnn_aaaa_llll(5).
-
- EEEERRRRRRRROOOORRRRSSSS
- In every routine, the _s_e_t parameter is a _p_o_i_n_t_e_r to sigset_t. All of
- these functions are library routines (executing in user space); therefore
- if they are passed a _R_E_F_E_R_E_N_C_E to _s_e_t instead of a _P_O_I_N_T_E_R, the compiler
- will issue a warning, and when the program is run the process will
- receive a memory fault signal [SSSSIIIIGGGGSSSSEEEEGGGGVVVV] and terminate (unless the process
- has installed a handler for SSSSIIIIGGGGSSSSEEEEGGGGVVVV).
-
- All routines which require a _s_i_g parameter will fail, returning -1 and
- setting _e_r_r_n_o to [[[[EEEEIIIINNNNVVVVAAAALLLL]]]] if _s_i_g is not a valid signal number.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- sigaction(2), sigprocmask(2), sigpending(2), sigsuspend(2), sigsetjmp(3),
- pthread_sigmask(3P).
-
- WWWWAAAARRRRNNNNIIIINNNNGGGG
- The POSIX and System V signal facilities have different semantics. Using
- both facilities in the same program is ssssttttrrrroooonnnnggggllllyyyy ddddiiiissssccccoooouuuurrrraaaaggggeeeedddd and will
- result in unpredictable behavior.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-