-
-
-
-SIGSETOPS(3) 1990 SIGSETOPS(3)
-
-
+SIGSETOPS(3) BSD Programmer's Manual SIGSETOPS(3)
N\bNA\bAM\bME\bE
- sigsetops, sigemptyset, sigfillset, sigaddset, sigdelset,
- sigismember - manipulate signal masks
+ s\bsi\big\bge\bem\bmp\bpt\bty\bys\bse\bet\bt, s\bsi\big\bgf\bfi\bil\bll\bls\bse\bet\bt, s\bsi\big\bga\bad\bdd\bds\bse\bet\bt, s\bsi\big\bgd\bde\bel\bls\bse\bet\bt, s\bsi\big\bgi\bis\bsm\bme\bem\bmb\bbe\ber\br - manipulate
+ signal sets
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bsi\big\bgn\bna\bal\bl.\b.h\bh>\b>
- s\bsi\big\bge\bem\bmp\bpt\bty\bys\bse\bet\bt(\b(s\bse\bet\bt)\b);\b;
- s\bsi\big\bgs\bse\bet\bt_\b_t\bt *\b*s\bse\bet\bt;\b;
+ s\bsi\big\bge\bem\bmp\bpt\bty\bys\bse\bet\bt(_\bs_\bi_\bg_\bs_\be_\bt_\b__\bt _\b*_\bs_\be_\bt);
- s\bsi\big\bgf\bfi\bil\bll\bls\bse\bet\bt(\b(s\bse\bet\bt)\b);\b;
- s\bsi\big\bgs\bse\bet\bt_\b_t\bt *\b*s\bse\bet\bt;\b;
+ s\bsi\big\bgf\bfi\bil\bll\bls\bse\bet\bt(_\bs_\bi_\bg_\bs_\be_\bt_\b__\bt _\b*_\bs_\be_\bt);
- s\bsi\big\bga\bad\bdd\bds\bse\bet\bt(\b(s\bse\bet\bt,\b, s\bsi\big\bgn\bno\bo)\b);\b;
- s\bsi\big\bgs\bse\bet\bt_\b_t\bt *\b*s\bse\bet\bt;\b;
- i\bin\bnt\bt s\bsi\big\bgn\bno\bo;\b;
+ s\bsi\big\bga\bad\bdd\bds\bse\bet\bt(_\bs_\bi_\bg_\bs_\be_\bt_\b__\bt _\b*_\bs_\be_\bt, _\bi_\bn_\bt _\bs_\bi_\bg_\bn_\bo);
- s\bsi\big\bgd\bde\bel\bls\bse\bet\bt(\b(s\bse\bet\bt,\b, s\bsi\big\bgn\bno\bo)\b);\b;
- s\bsi\big\bgs\bse\bet\bt_\b_t\bt *\b*s\bse\bet\bt;\b;
- i\bin\bnt\bt s\bsi\big\bgn\bno\bo;\b;
-
- s\bsi\big\bgi\bis\bsm\bme\bem\bmb\bbe\ber\br(\b(s\bse\bet\bt,\b, s\bsi\big\bgn\bno\bo)\b);\b;
- s\bsi\big\bgs\bse\bet\bt_\b_t\bt *\b*s\bse\bet\bt;\b;
- i\bin\bnt\bt s\bsi\big\bgn\bno\bo;\b;
+ s\bsi\big\bgd\bde\bel\bls\bse\bet\bt(_\bs_\bi_\bg_\bs_\be_\bt_\b__\bt _\b*_\bs_\be_\bt, _\bi_\bn_\bt _\bs_\bi_\bg_\bn_\bo);
+ s\bsi\big\bgi\bis\bsm\bme\bem\bmb\bbe\ber\br(_\bs_\bi_\bg_\bs_\be_\bt_\b__\bt _\b*_\bs_\be_\bt, _\bi_\bn_\bt _\bs_\bi_\bg_\bn_\bo);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
- These functions manipulate signal mask stored in a _\bs_\bi_\bg_\bs_\be_\bt__\bt.
- They are provided as macros, but actual functions are avail-
- able if their names are undefined (with #undef _\bn_\ba_\bm_\be).
-
- The _\bs_\bi_\bg_\be_\bm_\bp_\bt_\by_\bs_\be_\bt function initializes a signal set to be
- empty. The _\bs_\bi_\bg_\bf_\bi_\bl_\bl_\bs_\be_\bt function initializes a signal set to
- contain all of the known signals. One of these routines
- must be used to initialize a signal set before its use by
- the other functions.
-
- The _\bs_\bi_\bg_\ba_\bd_\bd_\bs_\be_\bt function adds a specified signal _\bs_\bi_\bg_\bn_\bo to a
- signal set. The _\bs_\bi_\bg_\bd_\be_\bl_\bs_\be_\bt function deletes a specified sig-
- nal _\bs_\bi_\bg_\bn_\bo from a signal set.
-
- The _\bs_\bi_\bg_\bi_\bs_\bm_\be_\bm_\bb_\be_\br function tests whether a specified signal
- _\bs_\bi_\bg_\bn_\bo is contained in a signal set.
+ These functions manipulate signal sets stored in a _\bs_\bi_\bg_\bs_\be_\bt_\b__\bt. Either
+ s\bsi\big\bge\bem\bmp\bpt\bty\bys\bse\bet\bt() or s\bsi\big\bgf\bfi\bil\bll\bls\bse\bet\bt() must be called for every object of type
+ _\bs_\bi_\bg_\bs_\be_\bt_\b__\bt before any other use of the object.
-R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bE
- The _\bs_\bi_\bg_\bi_\bs_\bm_\be_\bm_\bb_\be_\br function returnes 1 if the signal is a
- member of the set, a 0 otherwise. The other functions
- return 0 upon success. A -1 return value indicates an error
- occurred and _\be_\br_\br_\bn_\bo is set to indicated the reason. The
- current implementation does not detect any errors.
+ The s\bsi\big\bge\bem\bmp\bpt\bty\bys\bse\bet\bt() function initializes a signal set to be empty.
+ The s\bsi\big\bgf\bfi\bil\bll\bls\bse\bet\bt() function initializes a signal set to contain all sig-
+ nals.
+ The s\bsi\big\bga\bad\bdd\bds\bse\bet\bt() function adds the specified signal _\bs_\bi_\bg_\bn_\bo to the signal
+ set.
+ The s\bsi\big\bgd\bde\bel\bls\bse\bet\bt() function deletes the specified signal _\bs_\bi_\bg_\bn_\bo from the sig-
+ nal set.
+ The s\bsi\big\bgi\bis\bsm\bme\bem\bmb\bbe\ber\br() function returns whether a specified signal _\bs_\bi_\bg_\bn_\bo is
+ contained in the signal set.
-Printed 7/27/90 July 1
-
-
-
-
-
-
-SIGSETOPS(3) 1990 SIGSETOPS(3)
-
+ These functions are provided as macros in the include file <signal.h>.
+ Actual functions are available if their names are undefined (with #undef
+ _\bn_\ba_\bm_\be).
+R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS
+ The s\bsi\big\bgi\bis\bsm\bme\bem\bmb\bbe\ber\br() function returns 1 if the signal is a member of the
+ set, 0 otherwise. The other functions return 0.
E\bER\bRR\bRO\bOR\bRS\bS
- These functions could fail if one of the following occurs:
-
- [EINVAL] _\bs_\bi_\bg_\bn_\bo has an invalid value.
-
-S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
- These functions are defined by POSIX.1.
+ Currently no errors are detected.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
- kill(2), sigaction(2), sigsetops(2), sigsuspend(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Printed 7/27/90 July 2
-
+ kill(2), sigaction(2), sigsuspend(2)
+S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
+ These functions are defined by IEEE Std1003.1-1988 (``POSIX'').
+4.4BSD June 4, 1993 1