SIGSETOPS(3) NetBSD Programmer's Manual SIGSETOPS(3) NNAAMMEE ssiiggeemmppttyysseett, ssiiggffiillllsseett, ssiiggaaddddsseett, ssiiggddeellsseett, ssiiggiissmmeemmbbeerr - manipulate signal sets SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t ssiiggeemmppttyysseett(_s_i_g_s_e_t___t _*_s_e_t); _i_n_t ssiiggffiillllsseett(_s_i_g_s_e_t___t _*_s_e_t); _i_n_t ssiiggaaddddsseett(_s_i_g_s_e_t___t _*_s_e_t, _i_n_t _s_i_g_n_o); _i_n_t ssiiggddeellsseett(_s_i_g_s_e_t___t _*_s_e_t, _i_n_t _s_i_g_n_o); _i_n_t ssiiggiissmmeemmbbeerr(_s_i_g_s_e_t___t _*_s_e_t, _i_n_t _s_i_g_n_o); DDEESSCCRRIIPPTTIIOONN These functions manipulate signal sets stored in a _s_i_g_s_e_t___t. Either ssiiggeemmppttyysseett() or ssiiggffiillllsseett() must be called for every object of type _s_i_g_s_e_t___t before any other use of the object. ssiiggeemmppttyysseett() and ssiiggffiillllsseett() are provided as macros, but actual functions are available if their names are undefined (with #undef _n_a_m_e). The ssiiggeemmppttyysseett() function initializes a signal set to be empty. The ssiiggffiillllsseett() function initializes a signal set to contain all sig- nals. The ssiiggaaddddsseett() function adds the specified signal _s_i_g_n_o to the signal set. The ssiiggddeellsseett() function deletes the specified signal _s_i_g_n_o from the sig- nal set. The ssiiggiissmmeemmbbeerr() function returns whether a specified signal _s_i_g_n_o is contained in the signal set. These functions are provided as macros in the include file . Actual functions are available if their names are undefined (with #undef _n_a_m_e). RREETTUURRNN VVAALLUUEESS The ssiiggiissmmeemmbbeerr() function returns 1 if the signal is a member of the set, a 0 otherwise. The other functions return 0 upon success. A -1 re- turn value indicates an error occurred and the global variable _e_r_r_n_o is set to indicated the reason. EERRRROORRSS These functions could fail if one of the following occurs: [EINVAL] _s_i_g_n_o has an invalid value. SSEEEE AALLSSOO kill(2), sigaction(2), sigsuspend(2) SSTTAANNDDAARRDDSS These functions conform to IEEE Std1003.1-1990 (``POSIX'').