Scroll to navigation

SIGSETOPS(3) Library Functions Manual SIGSETOPS(3)

이름

sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - POSIX 시그널 집합 조작

라이브러리

표준 C 라이브러리 (libc-lc)

요약

#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);

c

sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember():


_POSIX_C_SOURCE

설명

These functions allow the manipulation of POSIX signal sets.

sigemptyset() 은 빈 시그널 집합 set 을 만든다.

sigfillset() 은 모든 신호가 들어있는 시그널 집합 set 을 만든다.

sigaddset() 과 sigdelset() 은 각각 시그널 집합 set에서 시그널 signum 를 추가하거나 지운다.

sigismember() 는 시그널 signum 가 시그널 집합 set 의 일부인지를 검사한다.

Objects of type sigset_t must be initialized by a call to either sigemptyset() or sigfillset() before being passed to the functions sigaddset(), sigdelset(), and sigismember() or the additional glibc functions described below (sigisemptyset(), sigandset(), and sigorset()). The results are undefined if this is not done.

반환값

sigemptyset(), sigfillset(), sigaddset(), sigdelset() 는 모두 성공시 0을 리턴하고 에러시 -1을 리턴한다.

만일 시그널 signum 가 시그널 집합 set 의 일부라면 sigismember() 는 1을 반환하고, signum 가 일부가 아니라면 0을 반환하고 에러라면 -1을 반환한다.

On error, these functions set errno to indicate the error.

에러

signum 가 유효한 시그널이 아니다.

속성

이 섹션에서 사용되는 용어에 대한 설명은 attributes(7)을 참조하십시오.

상호 작용 속성 번호
sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember(), sigisemptyset(), sigorset(), sigandset() Thread safety MT-Safe

버전S

GNU

If the _GNU_SOURCE feature test macro is defined, then <signal.h> exposes three other functions for manipulating signal sets:

int sigisemptyset(const sigset_t *set);
int sigorset(sigset_t *dest, const sigset_t *left,
              const sigset_t *right);
int sigandset(sigset_t *dest, const sigset_t *left,
              const sigset_t *right);

sigisemptyset() returns 1 if set contains no signals, and 0 otherwise.

sigorset() places the union of the sets left and right in dest. sigandset() places the intersection of the sets left and right in dest. Both functions return 0 on success, and -1 on failure.

These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications.

표준

POSIX.1-2008.

이력

POSIX.1-2001.

주의

When creating a filled signal set, the glibc sigfillset() function does not include the two real-time signals used internally by the NPTL threading implementation. See nptl(7) for details.

추가 참조

sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)

번역

이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 정강훈 <skyeyes@soback.kornet.net> , 한글 Manpage 프로젝트 <http://man.kldp.org>

이 번역은 무료 문서입니다. 저작권 조건에 대해서는 GNU General Public License 버전 3 이상을 읽으십시오. 책임이 없습니다.

이 매뉴얼 페이지의 번역에서 오류를 발견하면 translation-team-ko@googlegroups.com 로 이메일을 보내주십시오.

2026년 2월 8일 Linux man-pages 6.17