Searched refs:cleanup_flag (Results 1 - 19 of 19) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/
H A D1-3.c30 int cleanup_flag[3]; /* Array to hold the cleanup flags for the 3 cleanup handlers */ variable
36 cleanup_flag[i] = 1;
43 cleanup_flag[i] = 2;
50 cleanup_flag[i] = 3;
75 cleanup_flag[i] = 0;
92 if ((cleanup_flag[0] != 3) || (cleanup_flag[1] != 2)
93 || (cleanup_flag[2] != 1)) {
96 printf("%d, %d, %d\n", cleanup_flag[0], cleanup_flag[
[all...]
H A D1-1.c34 int cleanup_flag; variable
39 cleanup_flag = (long)flag_val;
67 cleanup_flag = CLEANUP_NOTCALLED;
80 if (cleanup_flag != CLEANUP_CALLED) {
H A D1-2.c34 int cleanup_flag; variable
39 cleanup_flag = (long)flag_val;
67 cleanup_flag = CLEANUP_NOTCALLED;
80 if (cleanup_flag == CLEANUP_CALLED) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/
H A D2-1.c20 * cleanup handler would have been executed, setting the cleanup_flag to -1, making the
25 * will continue execution and set the cleanup_flag to -2, failing the test.
38 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
42 * cleanup_flag is 1, it means that the thread was canceled. */
45 cleanup_flag = -1;
69 cleanup_flag = 1;
76 cleanup_flag = -2;
87 cleanup_flag = 0;
126 if (cleanup_flag == -1) {
131 if (cleanup_flag
[all...]
H A D1-1.c39 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
43 * cleanup_flag is 1, it means that the thread was canceled. */
46 cleanup_flag = 1;
71 cleanup_flag = -1;
84 cleanup_flag = 0;
111 while ((cleanup_flag == 0) && (i != TIMEOUT)) {
121 if (cleanup_flag <= 0) {
H A D1-2.c24 * cleanup handler would have been executed, setting the cleanup_flag to -1, making the
29 * will continue execution and set the cleanup_flag to -2, failing the test.
42 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
46 * cleanup_flag is 1, it means that the thread was canceled. */
49 cleanup_flag = -1;
74 cleanup_flag = 1;
81 cleanup_flag = -2;
92 cleanup_flag = 0;
131 if (cleanup_flag == -1) {
136 if (cleanup_flag
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/
H A D1-1.c37 int cleanup_flag; variable
40 * cleanup_flag is -1, it means that the thread was canceled. */
43 cleanup_flag = 1;
69 cleanup_flag = -1;
81 cleanup_flag = 0;
105 while (cleanup_flag == INTHREAD)
110 if (cleanup_flag < 0) {
H A D1-2.c37 int cleanup_flag; variable
40 * cleanup_flag is -1, it means that the thread was canceled, meaning
44 cleanup_flag = -1;
67 cleanup_flag = 1;
78 cleanup_flag = 0;
103 while (cleanup_flag == 0)
108 if (cleanup_flag <= 0) {
H A D1-3.c25 * cleanup handler would have been executed, setting the cleanup_flag to -1, making the
30 * will continue execution and set the cleanup_flag to -2, failing the test.
43 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
47 * cleanup_flag is 1, it means that the thread was canceled. */
50 cleanup_flag = -1;
75 cleanup_flag = 1;
82 cleanup_flag = -2;
93 cleanup_flag = 0;
132 if (cleanup_flag == -1) {
137 if (cleanup_flag
[all...]
H A D2-1.c26 int cleanup_flag; /* Made global so that the cleanup function variable
29 /* A cleanup function that sets the cleanup_flag to 1, meaning that the
33 cleanup_flag = 1;
68 cleanup_flag = 0;
99 if (cleanup_flag != 1) {
H A D3-1.c43 int cleanup_flag; variable
46 /* A cleanup function that sets the cleanup_flag to 1, meaning that the
52 cleanup_flag = 1;
101 cleanup_flag = 0;
144 if (cleanup_flag != 1) {
H A D2-2.c30 int cleanup_flag = 0; variable
35 cleanup_flag = 1;
101 if (cleanup_flag != 1) {
H A D2-3.c32 int cleanup_flag = 0; variable
52 cleanup_flag = 1;
123 if (cleanup_flag != 1) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/
H A D1-1.c37 int cleanup_flag; variable
42 cleanup_flag = (long)flag_val;
61 cleanup_flag = CLEANUP_NOTCALLED;
76 if (cleanup_flag != CLEANUP_CALLED) {
H A D1-3.c36 int cleanup_flag; variable
41 cleanup_flag = (long)flag_val;
60 cleanup_flag = CLEANUP_NOTCALLED;
75 if (cleanup_flag != CLEANUP_CALLED) {
H A D1-2.c40 int cleanup_flag; variable
45 cleanup_flag = (long)flag_val;
85 cleanup_flag = CLEANUP_NOTCALLED;
121 if (cleanup_flag != CLEANUP_CALLED) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_testcancel/
H A D1-1.c24 * cleanup handler would have been executed, setting the cleanup_flag to -1, making the
29 * will continue execution and set the cleanup_flag to -2, failing the test.
42 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
46 * cleanup_flag is 1, it means that the thread was canceled. */
49 cleanup_flag = -1;
74 cleanup_flag = 1;
81 cleanup_flag = -2;
92 cleanup_flag = 0;
131 if (cleanup_flag == -1) {
136 if (cleanup_flag
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
H A D3-1.c32 static int cleanup_flag; variable
36 * cleanup_flag is 1, it means that the thread was canceled.
40 cleanup_flag = 1;
70 cleanup_flag = -1;
102 if (cleanup_flag == 0) {
108 if (cleanup_flag == -1) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
H A D3-1.c32 int cleanup_flag = 0; variable
36 cleanup_flag = 1;
81 if (cleanup_flag != 1) {

Completed in 945 milliseconds