sigsetops

SIGSETOPS(3)               Linux Programmer's Manual              SIGSETOPS(3)



åå
       sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - POSIX
       ã·ã°ãã«éåã®æä½

æ¸å¼
       #include <signal.h>

       int sigemptyset(sigset_t *set);

       int sigfillset(sigset_t *set);

       int sigaddset(sigset_t *set, int signum);

       int sigdelset(sigset_t *set, int signum);

       int sigismember(const sigset_t *set, int signum);

   glibc åãã®æ©è½æ¤æ»ãã¯ãã®è¦ä»¶ (feature_test_macros(7)  åç§):

       sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember():
           _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

説æ
       ãããã®é¢æ°ã¯ POSIX ã·ã°ãã«éå(signal set)ãæä½ãããã使ç¨ããã

       sigemptyset()  㯠set ã§ä¸ããããã·ã°ãã«éåã空ã«åæåããã·ã°ãã«ãä¸ã¤ã
       å«ã¾ãã¦ããªãç¶æã«ããã

       sigfillset()  㯠set ã§ä¸ããããã·ã°ãã«éåãå¨ã¦ã®ã·ã°ãã«ãå«ãããã«ããã

       sigaddset()  㨠sigdelset()  㯠set 㫠signum
       ã·ã°ãã«ãããããå ããããåé¤ãããããã

       sigismember()  㯠signum ã set ã«å«ã¾ãã¦ãããã©ããããã¹ãããã

       sigset_t åã®ãªãã¸ã§ã¯ãã¯ãé¢æ° sigaddset(), sigdelset(), sigismember()
       ãå¾è¿°ã® glibc ã®è¿½å é¢æ° (sigisemptyset(), sigandset(), sigorset())
       ã«æ¸¡ãåã«ã sigemptyset()  ã sigfillset()  ãå¼ã³åºãã¦åæåããªããã°ãªããªãã
       åæåããªãã£ãå ´åã®çµæã¯æªå®ç¾©ã§ããã

è¿ãå¤
       sigemptyset(), sigfillset(), sigaddset(), sigdelset()  ã¯æåããã° 0
       ããã¨ã©ã¼ã®å ´å㯠-1 ãè¿ãã

       sigismember()  㯠signum ã set ã«å«ã¾ãã¦ããã° 1 ãè¿ããå«ã¾ãã¦ããªããã° 0
       ãè¿ãã ã¨ã©ã¼ã®å ´å㯠-1 ãè¿ãã

ã¨ã©ã¼
       EINVAL sig ãæå¹ãªã·ã°ãã«ã§ã¯ãªãã

æºæ
       POSIX.1-2001.

注æ
   glibc ã§ã®æ³¨æ
       _GNU_SOURCE æ©è½æ¤æ»ãã¯ããå®ç¾©ããã¦ããã¨ã <signal.h> ã§ã·ã°ãã«éåãæä½ãã
       3ã¤ã®é¢æ°ã追å ã§å¬éãããã

       int sigisemptyset(sigset_t *set);
              set ã«ã·ã°ãã«ãä¸ã¤ãå«ã¾ãã¦ããªããã° 1 ãè¿ãã ãã以å¤ã¯ 0 ãè¿ãã

       int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right);
              ã·ã°ãã«éå left 㨠left ã®åéåã dest ã«æ¸ãè¾¼ãã

       int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right);
              ã·ã°ãã«éå left 㨠left ã®ç©éåã dest ã«æ¸ãè¾¼ãã

       sigorset()  㨠sigandset()  ã¯æåãã㨠0 ãã失æãã㨠-1 ãè¿ãã

       ãããã®é¢æ°ã¯éæ¨æºã§ããã(ä»ã«ãåæ§ã®é¢æ°ãæä¾ãã¦ããã·ã¹ãã ã ããã¤ãã¯ããã)
       移æ¤æ§ãèæ®ããã¢ããªã±ã¼ã·ã§ã³ã§ã¯ä½¿ç¨ãé¿ããã¹ã ã§ããã

é¢é£é ç®
       sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)

ãã®ææ¸ã«ã¤ãã¦
       ãã® man ãã¼ã¸ã¯ Linux man-pages ããã¸ã§ã¯ãã®ãªãªã¼ã¹ 3.51 ã®ä¸é¨
       ã§ãããããã¸ã§ã¯ãã®èª¬æã¨ãã°å ±åã«é¢ããæå ±ã¯
       http://www.kernel.org/doc/man-pages/ ã«æ¸ããã¦ããã



Linux                             2008-09-01                      SIGSETOPS(3)