Home
last modified time | relevance | path

Searched refs:signal (Results 2801 - 2825 of 6337) sorted by relevance

1...<<111112113114115116117118119120>>...254

/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl38.c11 #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 Dfutimesat01.c34 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/inotify/
H A Dinotify06.c24 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/listen/
H A Dlisten01.c50 #include <sys/signal.h>
/third_party/ltp/testcases/kernel/syscalls/mincore/
H A Dmincore02.c35 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/modify_ldt/
H A Dmodify_ldt02.c123 signal(SIGSEGV, SIG_DFL); in main()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
H A Dmove_pages04.c62 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/munmap/
H A Dmunmap02.c38 * 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 Dmunmap01.c37 * 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 Dpidfd_send_signal03.c11 * 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 Dpidfd_send_signal01.c16 #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 Dptrace08.c42 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/rt_sigprocmask/
H A Drt_sigprocmask01.c25 /* 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 Drt_sigqueueinfo01.c11 * 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 Dsigaction01.c28 * 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 Dsigaction02.c28 * 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 Dsigaltstack01.c24 * 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 Dsigaltstack02.c35 * Setup signal handling.
75 #include <signal.h>
87 stack_t sigstk; /* signal stack storing struct. */
/third_party/ltp/testcases/kernel/syscalls/sigprocmask/
H A Dsigprocmask01.c25 * 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 Dstat02.c12 #include <sys/signal.h>
/third_party/ltp/testcases/kernel/syscalls/tee/
H A Dtee01.c12 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/timer_settime/
H A Dtimer_settime03.c13 * 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 Dtimer_gettime01.c10 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/ulimit/
H A Dulimit01.c96 * Setup signal handling.
115 #include <signal.h>
/third_party/ltp/testcases/kernel/syscalls/waitpid/
H A Dwaitpid09.c22 #include <signal.h>

Completed in 9 milliseconds

1...<<111112113114115116117118119120>>...254