#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);
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
int sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
struct sigaction {
void (*sa_handler)(int);
void (*sa_sigaction)(int, siginfo_t *, void *);
sigset_t sa_mask;
int sa_flags;
void (*sa_restorer)(void);
};
int signum;
SIGTERM
SIGINT
SIGHUP
SIGFPE
...
[링크 : http://linux.die.net/man/3/sigemptyset]
[링크 : http://linux.die.net/man/3/sigfillset]
[링크 : http://linux.die.net/man/3/sigaddset]
[링크 : http://linux.die.net/man/3/sigdelset]
[링크 : http://linux.die.net/man/2/sigaction]
[링크 : http://linux.die.net/man/2/sigprocmask]
'Linux API > linux' 카테고리의 다른 글
linux open mode (0) | 2015.10.29 |
---|---|
named pipe / mkfifo() (0) | 2015.10.27 |
select() (0) | 2015.10.26 |
mmap / ioremap (0) | 2015.10.21 |
리눅스 모듈 - 세마포어 / 뮤텍스 (0) | 2015.10.21 |