/* * Copyright (c) 2003, Intel Corporation. All rights reserved. * Created by: salwan.searty REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. Go through all the signals (with the exception of SIGKILL and SIGSTOP since they cannot be added to a process's signal mask) and add each one to the signal mask. Every time a signal gets added to the signal mask (using the sigprocmask() function), make sure that all signals added before it in preceding iterations before it, exist in the old signal set returned by the sigprocmask functions. */ #include #include #include "posixtest.h" #define NUMSIGNALS 26 int main() { sigset_t oactl, tempset; int i, j, test_failed=0; int siglist[] = {SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGPIPE, SIGQUIT, SIGSEGV, SIGTERM, SIGTSTP, SIGTTIN, SIGTTOU, SIGUSR1, SIGUSR2, SIGPOLL, SIGPROF, SIGSYS, SIGTRAP, SIGURG, SIGVTALRM, SIGXCPU, SIGXFSZ }; for (i=0; i 0) { for (j=0; j