Home
last modified time | relevance | path

Searched refs:sig_handler (Results 1 – 25 of 55) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/syslog/
Dsyslogtst.c36 void sig_handler(int signal);
46 signal(SIGINT, sig_handler); in main()
47 signal(SIGTERM, sig_handler); in main()
48 signal(SIGHUP, sig_handler); in main()
49 signal(SIGABRT, sig_handler); in main()
50 signal(SIGSEGV, sig_handler); in main()
51 signal(SIGQUIT, sig_handler); in main()
304 void sig_handler(int signal) in sig_handler() function
/external/ltp/testcases/kernel/io/disktest/
Dsignals.c53 void sig_handler(int sig) in sig_handler() function
55 void *sig_handler(void *arg) in sig_handler()
140 signal(SIGINT, sig_handler); in setup_sig_mask()
141 signal(SIGTERM, sig_handler); in setup_sig_mask()
142 signal(SIGUSR1, sig_handler); in setup_sig_mask()
158 pthread_create(&sig_thread, NULL, sig_handler, NULL); in setup_sig_mask()
/external/linux-kselftest/tools/testing/selftests/timers/
Dposix_timers.c54 static void sig_handler(int nr) in sig_handler() function
100 signal(SIGVTALRM, sig_handler); in check_itimer()
102 signal(SIGPROF, sig_handler); in check_itimer()
104 signal(SIGALRM, sig_handler); in check_itimer()
162 signal(SIGALRM, sig_handler); in check_timer_create()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/
D3-2.c28 static void sig_handler() in sig_handler() function
50 act.sa_handler = sig_handler; in main()
64 sig_handler(); in main()
D3-1.c27 static void sig_handler() in sig_handler() function
43 act.sa_handler = sig_handler; in main()
/external/ltp/testcases/kernel/syscalls/sigaltstack/
Dsigaltstack01.c92 void sig_handler(int); /* signal catching function */
119 act.sa_handler = (void (*)())sig_handler; in main()
188 act.sa_handler = (void (*)(int))sig_handler; in setup()
218 void sig_handler(int n) in sig_handler() function
/external/ltp/testcases/kernel/syscalls/sigsuspend/
Dsigsuspend01.c92 void sig_handler(int sig); /* signal catching function */
175 sa_new.sa_handler = sig_handler; in setup()
199 void sig_handler(int sig) in sig_handler() function
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap3.c119 static void sig_handler(int signal) in sig_handler() function
163 SAFE_SIGNAL(SIGALRM, sig_handler); in setup()
164 SAFE_SIGNAL(SIGBUS, sig_handler); in setup()
165 SAFE_SIGNAL(SIGSEGV, sig_handler); in setup()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap13.c57 static void sig_handler(int sig);
105 tst_sig(NOFORK, sig_handler, cleanup); in setup()
128 static void sig_handler(int sig) in sig_handler() function
Dmmap05.c65 static void sig_handler(int sig);
132 tst_sig(NOFORK, sig_handler, cleanup); in setup()
189 static void sig_handler(int sig) in sig_handler() function
Dmmap03.c69 static void sig_handler(int sig);
154 tst_sig(NOFORK, sig_handler, cleanup); in setup()
215 static void sig_handler(int sig) in sig_handler() function
/external/ltp/testcases/kernel/syscalls/nanosleep/
Dnanosleep02.c45 static void sig_handler();
145 if (signal(SIGINT, sig_handler) == SIG_ERR) { in setup()
151 static void sig_handler(void) in sig_handler() function
Dnanosleep03.c42 static void sig_handler();
141 if (signal(SIGINT, sig_handler) == SIG_ERR) { in setup()
148 static void sig_handler(void) in sig_handler() function
/external/ltp/testcases/kernel/syscalls/vfork/
Dvfork02.c87 void sig_handler(); /* signal catching function */
177 if (signal(SIGUSR1, sig_handler) == SIG_ERR) { in setup()
213 void sig_handler(void) in sig_handler() function
/external/libedit/src/
Dsig.c61 private void sig_handler(int);
69 sig_handler(int signo) in sig_handler() function
164 nsa.sa_handler = sig_handler; in sig_set()
173 osa.sa_handler != sig_handler) in sig_set()
/external/ltp/testcases/kernel/syscalls/sigprocmask/
Dsigprocmask01.c86 void sig_handler(int sig); /* signal catching function */
227 sa_new.sa_handler = sig_handler; in setup()
254 void sig_handler(int sig) in sig_handler() function
/external/ltp/testcases/kernel/syscalls/munmap/
Dmunmap01.c90 void sig_handler(); /* signal catching function */
157 if (signal(SIGSEGV, sig_handler) == SIG_ERR) { in setup()
225 void sig_handler(void) in sig_handler() function
Dmunmap02.c92 void sig_handler(); /* signal catching function */
161 if (signal(SIGSEGV, sig_handler) == SIG_ERR) { in setup()
238 void sig_handler(void) in sig_handler() function
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/
D6-1.c27 void sig_handler() in sig_handler() function
43 act.sa_handler = sig_handler; in main()
/external/ltp/testcases/kernel/syscalls/pause/
Dpause01.c21 static void sig_handler(int sig LTP_ATTRIBUTE_UNUSED) in sig_handler() function
27 SAFE_SIGNAL(SIGINT, sig_handler); in do_child()
/external/ltp/testcases/kernel/controllers/cpuacct/
Dcpuacct_task.c32 static void sig_handler(int signo) in sig_handler() function
58 sa.sa_handler = sig_handler; in main()
/external/compiler-rt/test/tsan/
Dsignal_cond.cc15 void sig_handler(int sig) { in sig_handler() function
35 signal(SIGUSR1, &sig_handler); in main()
/external/valgrind/memcheck/tests/
Dsigaltstack.c7 void sig_handler(int sig){ in sig_handler() function
33 act.sa_handler=&sig_handler; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/
D1-1.c40 static void sig_handler() in sig_handler() function
63 act.sa_handler = sig_handler; in fn_chld()
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/
Drt_sigsuspend01.c48 static void sig_handler(int sig) in sig_handler() function
70 act.sa_handler = sig_handler; in main()

123