| |
| |
| |
| |
| #include <signal.h> |
| #include <string.h> |
| #include <errno.h> |
| #include "test.h" |
| |
| int main(void) |
| { |
| sigset_t s; |
| int i; |
| |
| sigemptyset(&s); |
| for (i = 32; i < SIGRTMIN; i++) { |
| sigaddset(&s, i); |
| if (sigismember(&s, i) == 1) |
| t_error("sigaddset(&s, %d) set implementation internal rt signal\n", i); |
| } |
| if (sigprocmask(SIG_BLOCK, &s, 0)) |
| t_error("blocking signals failed: %s\n", strerror(errno)); |
| if (sigprocmask(SIG_BLOCK, 0, &s)) |
| t_error("querying sigmask failed: %s\n", strerror(errno)); |
| for (i = 32; i < SIGRTMIN; i++) |
| if (sigismember(&s, i) == 1) |
| t_error("implementation internal rt signal %d can be blocked\n", i); |
| return t_status; |
| } |