SIGISMEMBER(3)             POSIX Programmer's Manual            SIGISMEMBER(3)



PPRROOLLOOGG
       This manual page is part of the POSIX Programmer's Manual.  The OS
       implementation of this interface may differ (consult the corresponding
       OS manual page for details of OS behavior), or the interface may not be
       implemented on OS.

NNAAMMEE
       sigismember -- test for a signal in a signal set

SSYYNNOOPPSSIISS
       #include <signal.h>

       int sigismember(const sigset_t *_s_e_t, int _s_i_g_n_o);

DDEESSCCRRIIPPTTIIOONN
       The _s_i_g_i_s_m_e_m_b_e_r() function shall test whether the signal specified by
       _s_i_g_n_o is a member of the set pointed to by _s_e_t.

       Applications should call either _s_i_g_e_m_p_t_y_s_e_t() or _s_i_g_f_i_l_l_s_e_t() at least
       once for each object of type ssiiggsseett__tt prior to any other use of that
       object. If such an object is not initialized in this way, but is
       nonetheless supplied as an argument to any of _p_t_h_r_e_a_d___s_i_g_m_a_s_k(),
       _s_i_g_a_c_t_i_o_n(), _s_i_g_a_d_d_s_e_t(), _s_i_g_d_e_l_s_e_t(), _s_i_g_i_s_m_e_m_b_e_r(), _s_i_g_p_e_n_d_i_n_g(),
       _s_i_g_p_r_o_c_m_a_s_k(), _s_i_g_s_u_s_p_e_n_d(), _s_i_g_t_i_m_e_d_w_a_i_t(), _s_i_g_w_a_i_t(), or
       _s_i_g_w_a_i_t_i_n_f_o(), the results are undefined.

RREETTUURRNN VVAALLUUEE
       Upon successful completion, _s_i_g_i_s_m_e_m_b_e_r() shall return 1 if the
       specified signal is a member of the specified set, or 0 if it is not.
       Otherwise, it shall return -1 and set _e_r_r_n_o to indicate the error.

EERRRROORRSS
       The _s_i_g_i_s_m_e_m_b_e_r() function may fail if:

       EEIINNVVAALL The _s_i_g_n_o argument is not a valid signal number, or is an
              unsupported signal number.

       _T_h_e _f_o_l_l_o_w_i_n_g _s_e_c_t_i_o_n_s _a_r_e _i_n_f_o_r_m_a_t_i_v_e_.

EEXXAAMMPPLLEESS
       None.

AAPPPPLLIICCAATTIIOONN UUSSAAGGEE
       None.

RRAATTIIOONNAALLEE
       None.

FFUUTTUURREE DDIIRREECCTTIIOONNSS
       None.

SSEEEE AALLSSOO
       _S_e_c_t_i_o_n _2_._4, _S_i_g_n_a_l _C_o_n_c_e_p_t_s, _p_t_h_r_e_a_d___s_i_g_m_a_s_k(), _s_i_g_a_c_t_i_o_n(),
       _s_i_g_a_d_d_s_e_t(), _s_i_g_d_e_l_s_e_t(), _s_i_g_f_i_l_l_s_e_t(), _s_i_g_e_m_p_t_y_s_e_t(), _s_i_g_p_e_n_d_i_n_g(),
       _s_i_g_s_u_s_p_e_n_d()

       The Base Definitions volume of POSIX.1-2017, <<ssiiggnnaall..hh>>

CCOOPPYYRRIIGGHHTT
       Portions of this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1-2017, Standard for Information Technology --
       Portable Operating System Interface (POSIX), The Open Group Base
       Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the
       Institute of Electrical and Electronics Engineers, Inc and The Open
       Group.  In the event of any discrepancy between this version and the
       original IEEE and The Open Group Standard, the original IEEE and The
       Open Group Standard is the referee document. The original Standard can
       be obtained online at http://www.opengroup.org/unix/online.html .

       Any typographical or formatting errors that appear in this page are
       most likely to have been introduced during the conversion of the source
       files to man page format. To report such errors, see
       https://www.kernel.org/doc/man-pages/reporting_bugs.html .



IEEE/The Open Group                  2017                       SIGISMEMBER(3)
