/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl38.c | 11 #include <signal.h> 31 tst_brk(TBROK, "Got unexpected signal %d with si_fd %d", sig, si->si_fd); in dnotify_handler() 63 /* Generate DN_ATTRIB event on subdir that should send a signal on both fds */ in verify_dnotify()
|
/third_party/ltp/testcases/kernel/syscalls/futimesat/ |
H A D | futimesat01.c | 34 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
H A D | inotify06.c | 24 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/listen/ |
H A D | listen01.c | 50 #include <sys/signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/mincore/ |
H A D | mincore02.c | 35 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/modify_ldt/ |
H A D | modify_ldt02.c | 123 signal(SIGSEGV, SIG_DFL); in main()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
H A D | move_pages04.c | 62 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/munmap/ |
H A D | munmap02.c | 38 * Setup signal handling. 93 void sig_handler(); /* signal catching function */ 151 * Setup signal handler to catch SIGSEGV. 161 /* call signal function to trap the signal generated */ in setup() 162 if (signal(SIGSEGV, sig_handler) == SIG_ERR) { in setup() 163 tst_brkm(TBROK, cleanup, "signal fails to catch signal"); in setup() 229 * sig_handler() - signal catching function. 230 * This function is used to trap the signal generate [all...] |
H A D | munmap01.c | 37 * Setup signal handling. 91 void sig_handler(); /* signal catching function */ 146 * Set up signal handler to catch SIGSEGV. 157 /* call signal function to trap the signal generated */ in setup() 158 if (signal(SIGSEGV, sig_handler) == SIG_ERR) { in setup() 159 tst_brkm(TBROK, cleanup, "signal fails to catch signal"); in setup() 216 * sig_handler() - signal catching function. 217 * This function is used to trap the signal generate [all...] |
/third_party/ltp/testcases/kernel/syscalls/pidfd_send_signal/ |
H A D | pidfd_send_signal03.c | 11 * a signal to a new process which inherited the PID of the actual 19 * It is then checked, if the syscall will send a signal to the second 24 #include <signal.h> 106 "Did not send signal to wrong process with same PID!"); in verify_pidfd_send_signal()
|
H A D | pidfd_send_signal01.c | 16 #include <signal.h> 34 tst_res(TPASS, "Received correct signal and data!"); in received_signal() 37 tst_res(TFAIL, "Received wrong signal and/or data!"); in received_signal()
|
/third_party/ltp/testcases/kernel/syscalls/ptrace/ |
H A D | ptrace08.c | 42 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigprocmask/ |
H A D | rt_sigprocmask01.c | 25 /* The set value stores the signal mask of the pending signals. */ 26 /* The previous action on the signal is saved in oact. The value */ 35 /* blocked signals. It is okay to unblock a signal that is */ 43 #include <signal.h> 107 /* call rt_sigprocmask() to block signal#TEST_SIG */ in main() 123 "the process's signal mask"); in main() 139 * signal#TEST_SIG */ in main()
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigqueueinfo/ |
H A D | rt_sigqueueinfo01.c | 11 * signal handler. After that the main thread sends a signal and data 12 * to the handler thread. If the correct signal and data is received, 16 #include <signal.h> 37 tst_res(TPASS, "Received correct signal and data!"); in received_signal() 40 tst_res(TFAIL, "Received wrong signal and/or data!"); in received_signal()
|
/third_party/ltp/testcases/kernel/syscalls/sigaction/ |
H A D | sigaction01.c | 28 * Use sigaction(2) to set a signal handler for SIGUSR1 with a certain 30 * finally send the signal to ourselves, causing the signal handler to 31 * run. The signal handler then checks the signal handler to run. The 32 * signal handler then checks certain conditions based on the test case 47 * 4) A signal generated from an interface or condition that does not 67 #include <signal.h> 85 * A signal handler that understands which test case is currently 106 * Get current signal mas in handler() [all...] |
H A D | sigaction02.c | 28 * 1. Pass an invalid signal as the "sig" parameter, and expect EINVAL. 57 #include <signal.h> 73 * A dummy signal handler for attempting to catch signals. 78 tst_resm(TINFO, "Inside signal handler. Got signal: %d", sig); in handler() 84 * Establish a signal handler for "sig" with the specified flags and 85 * signal to mask while the handler executes. 154 "signal number", testcase_no); in main()
|
/third_party/ltp/testcases/kernel/syscalls/sigaltstack/ |
H A D | sigaltstack01.c | 24 * Send a signal using the main stack. While executing the signal handler 29 * sigaltstack() should succeed to get/set signal alternate stack context. 33 * Setup signal handling. 73 #include <signal.h> 83 void *addr, *main_stk; /* address of main stack for signal */ 87 stack_t sigstk, osigstk; /* signal stack storing struct. */ 92 void sig_handler(int); /* signal catching function */ 97 void *alt_stk; /* address of alternate stack for signal */ in main() 117 /* Set up the signal handle in main() [all...] |
H A D | sigaltstack02.c | 35 * Setup signal handling. 75 #include <signal.h> 87 stack_t sigstk; /* signal stack storing struct. */
|
/third_party/ltp/testcases/kernel/syscalls/sigprocmask/ |
H A D | sigprocmask01.c | 25 * process's signal mask. 26 * Also, verify that sigpending() succeeds to store signal mask that are 32 * - sigpending() should succeed to store the signal mask of pending signal. 36 * Setup signal handling. 79 #include <signal.h> 86 void sig_handler(int sig); /* signal catching function */ 93 struct sigaction sa_new; /* struct to hold signal info */ 94 sigset_t set; /* signal set to hold signal list [all...] |
/third_party/ltp/testcases/kernel/syscalls/stat/ |
H A D | stat02.c | 12 #include <sys/signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/tee/ |
H A D | tee01.c | 12 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/timer_settime/ |
H A D | timer_settime03.c | 13 * check the overrun counter in the timer signal handler. On a patched system, 25 #include <signal.h> 43 * schedule another pending signal before the timer gets disabled. in sighandler()
|
/third_party/ltp/testcases/kernel/syscalls/timer_gettime/ |
H A D | timer_gettime01.c | 10 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/ulimit/ |
H A D | ulimit01.c | 96 * Setup signal handling. 115 #include <signal.h>
|
/third_party/ltp/testcases/kernel/syscalls/waitpid/ |
H A D | waitpid09.c | 22 #include <signal.h>
|