HomeSort by relevance Sort by last modified time
    Searched refs:SIGTOTEST (Results 1 - 25 of 72) sorted by null

1 2 3

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
4-1.c 12 - Register for myhandler to be called when SIGTOTEST is called, and make
14 - Block signal SIGTOTEST from the process.
15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current
17 - Verify that the handler is executed NUMCALLS times AFTER SIGTOTEST
22 #define SIGTOTEST SIGRTMIN
48 sigaction(SIGTOTEST, &act, 0);
52 sighold(SIGTOTEST);
56 if (sigqueue(pid, SIGTOTEST, value) != 0) {
66 SIGTOTEST);
70 sigrelse(SIGTOTEST);
    [all...]
5-1.c 12 - Register for myhandler to be called when SIGTOTEST is called, and make
14 - Block signal SIGTOTEST from the process.
15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current
17 - Verify that the handler is executed at least once AFTER SIGTOTEST
22 #define SIGTOTEST SIGRTMIN
48 sigaction(SIGTOTEST, &act, 0);
53 sighold(SIGTOTEST);
56 if (sigqueue(pid, SIGTOTEST, value) != 0) {
66 SIGTOTEST);
70 sigrelse(SIGTOTEST);
    [all...]
8-1.c 12 - Register for myhandler to be called when SIGTOTEST is called, and make
14 - Block signal SIGTOTEST from the process.
15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current
17 - Verify that the handler is executed NUMCALLS times AFTER SIGTOTEST
23 #define SIGTOTEST SIGRTMIN
49 sigaction(SIGTOTEST, &act, 0);
54 sighold(SIGTOTEST);
57 if (sigqueue(pid, SIGTOTEST, value) != 0) {
67 SIGTOTEST);
71 sigrelse(SIGTOTEST);
    [all...]
1-1.c 11 * 2) In the parent process, call sigqueue with signal SIGTOTEST and
14 * 3) Wait for signal SIGTOTEST.
15 * 4) Return 1 if SIGTOTEST and SIGTOVAL are the values of signo and
22 #define SIGTOTEST SIGRTMIN
34 if ((signo == SIGTOTEST) && (info->si_value.sival_int == VALTOTEST)) {
51 sigaction(SIGTOTEST, &act, 0);
65 if (sigqueue(pid, SIGTOTEST, value) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/
1-1.c 13 1. Register signal SIGTOTEST with the handler myhandler
14 2. Block SIGTOTEST from the process
20 #define SIGTOTEST SIGUSR1
45 sigaddset(&selectset, SIGTOTEST);
48 sigaction(SIGTOTEST, &act, 0);
49 sighold(SIGTOTEST);
50 raise(SIGTOTEST);
54 if (sigismember(&pendingset, SIGTOTEST) != 1) {
55 perror("SIGTOTEST is not pending\n");
67 if (sigismember(&pendingset, SIGTOTEST) != 0)
    [all...]
9-1.c 12 1. Register signal SIGTOTEST with the handler myhandler
13 2. Block SIGTOTEST from the process
15 4. Call sigwaitinfo() and verify that it returns the signal SIGTOTEST.
19 #define SIGTOTEST SIGUSR1
44 sigaddset(&selectset, SIGTOTEST);
47 sigaction(SIGTOTEST, &act, 0);
48 sighold(SIGTOTEST);
49 raise(SIGTOTEST);
53 if (sigismember(&pendingset, SIGTOTEST) != 1) {
54 perror("SIGTOTEST is not pending\n")
    [all...]
5-1.c 11 1. Register signal SIGTOTEST with the handler myhandler.
12 2. Block signal SIGTOTEST, and then raise it causing it to become pending.
13 3. Call sigwaitinfo() with only SIGTOTEST in set.
14 4. Verify that info.si_signo equals SIGTOTEST.
19 #define SIGTOTEST SIGUSR1
45 sigaddset(&selectset, SIGTOTEST);
48 sigaction(SIGTOTEST, &act, 0);
49 sighold(SIGTOTEST);
51 raise(SIGTOTEST);
58 if (info.si_signo != SIGTOTEST) {
    [all...]
8-1.c 13 - Register for myhandler to be called when SIGTOTEST is called, and make
15 - Block signal SIGTOTEST from the process.
16 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current
19 for signal SIGTOTEST has been reset.
24 #define SIGTOTEST SIGRTMIN
50 sigaction(SIGTOTEST, &act, 0);
54 sighold(SIGTOTEST);
58 if (sigqueue(pid, SIGTOTEST, value) != 0) {
66 sigaddset(&selectset, SIGTOTEST);
69 if (sigwaitinfo(&selectset, &info) != SIGTOTEST) {
    [all...]
6-1.c 11 1. Register signal SIGTOTEST with the handler myhandler.
12 2. Block signal SIGTOTEST, and then raise it causing it to become pending.
13 3. Call sigwaitinfo() with only SIGTOTEST in set.
19 #define SIGTOTEST SIGUSR1
45 sigaddset(&selectset, SIGTOTEST);
48 sigaction(SIGTOTEST, &act, 0);
49 sighold(SIGTOTEST);
51 raise(SIGTOTEST);
7-1.c 12 - Register for myhandler to be called when SIGTOTEST is called, and make
14 - Block signal SIGTOTEST from the process.
15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current
23 #define SIGTOTEST SIGRTMIN
51 sigaction(SIGTOTEST, &act, 0);
55 sighold(SIGTOTEST);
59 if (sigqueue(pid, SIGTOTEST, value) != 0) {
67 sigaddset(&selectset, SIGTOTEST);
70 if (sigwaitinfo(&selectset, &info) != SIGTOTEST) {
72 ("sigwaitinfo() returned signal other than SIGTOTEST\n")
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/
4-1.c 12 1. Register signal SIGTOTEST with the handler myhandler
13 2. Block SIGTOTEST from the process
15 4. Call sigtimedwait() and verify that it returns the signal SIGTOTEST.
19 #define SIGTOTEST SIGUSR1
49 sigaddset(&selectset, SIGTOTEST);
52 sigaction(SIGTOTEST, &act, 0);
53 sighold(SIGTOTEST);
54 raise(SIGTOTEST);
58 if (sigismember(&pendingset, SIGTOTEST) != 1) {
59 perror("SIGTOTEST is not pending\n")
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/
1-1.c 23 #define SIGTOTEST SIGABRT
42 if (sigaction(SIGTOTEST, &act, 0) == -1) {
46 if (raise(SIGTOTEST) != 0) {
4-1.c 28 #define SIGTOTEST SIGABRT
47 if (sigaction(SIGTOTEST, &act, 0) == -1) {
51 if (kill(getpid(), SIGTOTEST) != 0) {
1-2.c 33 #define SIGTOTEST SIGABRT
57 if (sigaction(SIGTOTEST, &parentact, 0) == -1) {
72 if (sigaction(SIGTOTEST, &childact, 0) == -1) {
76 if (raise(SIGTOTEST) != 0) {
2-1.c 21 #define SIGTOTEST SIGABRT
56 if (sigaction(SIGTOTEST, &act, 0) == -1) {
60 if (raise(SIGTOTEST) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/
1-2.c 12 * 2) In the parent process, call kill with signal SIGTOTEST for the
15 * 3) Wait for signal SIGTOTEST.
16 * 4) Return 1 if SIGTOTEST is found. Return 0 otherwise.
34 #define SIGTOTEST SIGUSR1
54 if (sigaddset(&set, SIGTOTEST) == -1) {
66 sigaction(SIGTOTEST, &act, 0);
75 if (sig != SIGTOTEST)
85 if (kill(pid, SIGTOTEST) != 0) {
1-1.c 18 #define SIGTOTEST SIGABRT
45 if (sigaction(SIGTOTEST, &act, 0) == -1) {
49 if (kill(getpid(), SIGTOTEST) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/
1-1.c 14 2. Have main() send the signal indicated by SIGTOTEST to the new thread,
29 #define SIGTOTEST SIGABRT
46 sigaction(SIGTOTEST, &act, 0);
47 sighold(SIGTOTEST);
48 sigpause(SIGTOTEST);
63 if (pthread_kill(new_th, SIGTOTEST) != 0) {
2-1.c 13 a second to set up for receiving a signal, add SIGTOTEST to its signal
14 mask and to suspend itself using sigpause(SIGTOTEST).
15 2. Have main() send the signal indicated by SIGTOTEST to the new thread,
18 SIGTOTEST. At this point, SIGTOTEST should be restored to the signal mask,
39 #define SIGTOTEST SIGABRT
62 sigaction(SIGTOTEST, &act, 0);
63 sighold(SIGTOTEST);
65 if ((sigpause(SIGTOTEST) != -1) || (errno != EINTR)) {
74 raise(SIGTOTEST);
    [all...]
1-2.c 31 #define SIGTOTEST SIGABRT
47 sigaction(SIGTOTEST, &act, 0);
48 sigpause(SIGTOTEST);
72 if (pthread_kill(new_th, SIGTOTEST) != 0) {
3-1.c 27 #define SIGTOTEST SIGABRT
47 sigaction(SIGTOTEST, &act, 0);
48 return_value = sigpause(SIGTOTEST);
83 if (pthread_kill(new_th, SIGTOTEST) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/killpg/
1-1.c 18 #define SIGTOTEST SIGCHLD
46 if (sigaction(SIGTOTEST, &act, 0) == -1) {
56 if (killpg(pgrp, SIGTOTEST) != 0) {
1-2.c 10 * 2) In the parent process, call killpg with signal SIGTOTEST for the
15 * 3) Wait for signal SIGTOTEST.
16 * 4) Return 1 if SIGTOTEST is found. Return 0 otherwise.
21 #define SIGTOTEST SIGUSR1
46 sigaction(SIGTOTEST, &act, 0);
67 sigignore(SIGTOTEST);
75 if (killpg(child_pgid, SIGTOTEST) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
1-1.c 24 SIGTOTEST, and calling a handler that sets handler_called to 1. Now
26 3. Have main() send the signal indicated by SIGTOTEST to the new thread,
46 #define SIGTOTEST SIGABRT
64 sigaction(SIGTOTEST, &act, 0);
92 if (pthread_kill(new_th, SIGTOTEST) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/
3-1.c 13 - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK.
16 - raise SIGTOTEST
31 #define SIGTOTEST SIGUSR1
68 if (sigaction(SIGTOTEST, &act, 0) == -1) {
89 if (raise(SIGTOTEST) == -1) {

Completed in 7163 milliseconds

1 2 3