1SIGSETOPS(3) 386BSD Programmer's Manual SIGSETOPS(3) 2 3NNAAMMEE 4 ssiiggsseettooppss, ssiiggeemmppttyysseett, ssiiggffiillllsseett, ssiiggaaddddsseett, ssiiggddeellsseett, ssiiggiissmmeemmbbeerr - 5 manipulate signal masks 6 7SSYYNNOOPPSSIISS 8 ##iinncclluuddee <<ssiiggnnaall..hh>> 9 10 ssiiggeemmppttyysseett(_s_i_g_s_e_t__t *_s_e_t) 11 12 ssiiggffiillllsseett(_s_i_g_s_e_t__t *_s_e_t) 13 14 ssiiggaaddddsseett(_s_i_g_s_e_t__t *_s_e_t, _i_n_t _s_i_g_n_o) 15 16 ssiiggddeellsseett(_s_i_g_s_e_t__t *_s_e_t, _i_n_t _s_i_g_n_o) 17 18 ssiiggiissmmeemmbbeerr(_s_i_g_s_e_t__t *_s_e_t, _i_n_t _s_i_g_n_o) 19 20DDEESSCCRRIIPPTTIIOONN 21 These functions manipulate signal mask stored in a _s_i_g_s_e_t__t. 22 23 The ssiiggeemmppttyysseett() function initializes a signal set to be empty. The 24 ssiiggffiillllsseett() function initializes a signal set to contain all of the 25 known signals. One of these routines must be used to initialize a signal 26 set before its use by the other functions. 27 28 The ssiiggaaddddsseett() function adds a specified signal _s_i_g_n_o to a signal set. 29 The ssiiggddeellsseett() function deletes a specified signal _s_i_g_n_o from a signal 30 set. 31 32 The ssiiggiissmmeemmbbeerr() function tests whether a specified signal _s_i_g_n_o is 33 contained in a signal set. 34 35RREETTUURRNN VVAALLUUEESS 36 The ssiiggiissmmeemmbbeerr() function returns 1 if the signal is a member of the 37 set, a 0 otherwise. The other functions return 0 upon success. A -1 38 return value indicates an error occurred and the global variable _e_r_r_n_o is 39 set to indicated the reason. The current implementation does not detect 40 any errors. 41 42EERRRROORRSS 43 These functions could fail if one of the following occurs: 44 45 [EINVAL] _s_i_g_n_o has an invalid value. 46 47SSEEEE AALLSSOO 48 kill(2), sigaction(2), sigsetops(2), sigsuspend(2) 49 50SSTTAANNDDAARRDDSS 51 These functions are defined by IEEE Std1003.1-1988 (``POSIX''). 52 53BSD Experimental April 19, 1991 1 54 55 56 57 58 59 60 61 62 63 64 65 66 67