Home
last modified time | relevance | path

Searched refs:cleanup_flag (Results 1 – 18 of 18) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/
D1-3.c30 int cleanup_flag[3]; /* Array to hold the cleanup flags for the 3 cleanup handlers */ variable
36 cleanup_flag[i] = 1; in a_cleanup_func1()
43 cleanup_flag[i] = 2; in a_cleanup_func2()
50 cleanup_flag[i] = 3; in a_cleanup_func3()
75 cleanup_flag[i] = 0; in main()
92 if ((cleanup_flag[0] != 3) || (cleanup_flag[1] != 2) in main()
93 || (cleanup_flag[2] != 1)) { in main()
96 printf("%d, %d, %d\n", cleanup_flag[0], cleanup_flag[1], in main()
97 cleanup_flag[2]); in main()
D1-1.c34 int cleanup_flag; variable
39 cleanup_flag = (long)flag_val; in a_cleanup_func()
67 cleanup_flag = CLEANUP_NOTCALLED; in main()
80 if (cleanup_flag != CLEANUP_CALLED) { in main()
D1-2.c34 int cleanup_flag; variable
39 cleanup_flag = (long)flag_val; in a_cleanup_func()
67 cleanup_flag = CLEANUP_NOTCALLED; in main()
80 if (cleanup_flag == CLEANUP_CALLED) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/
D2-1.c38 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
45 cleanup_flag = -1; in a_cleanup_func()
69 cleanup_flag = 1; in a_thread_func()
76 cleanup_flag = -2; in a_thread_func()
87 cleanup_flag = 0; in main()
126 if (cleanup_flag == -1) { in main()
131 if (cleanup_flag == -2) { in main()
D1-2.c42 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
49 cleanup_flag = -1; in a_cleanup_func()
74 cleanup_flag = 1; in a_thread_func()
81 cleanup_flag = -2; in a_thread_func()
92 cleanup_flag = 0; in main()
131 if (cleanup_flag == -1) { in main()
136 if (cleanup_flag == -2) { in main()
D1-1.c39 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
46 cleanup_flag = 1; in a_cleanup_func()
71 cleanup_flag = -1; in a_thread_func()
84 cleanup_flag = 0; in main()
111 while ((cleanup_flag == 0) && (i != TIMEOUT)) { in main()
121 if (cleanup_flag <= 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_testcancel/
D1-1.c42 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
49 cleanup_flag = -1; in a_cleanup_func()
74 cleanup_flag = 1; in a_thread_func()
81 cleanup_flag = -2; in a_thread_func()
92 cleanup_flag = 0; in main()
131 if (cleanup_flag == -1) { in main()
136 if (cleanup_flag == -2) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/
D1-3.c43 int cleanup_flag; /* Flag to indicate the thread's cleanup handler was called */ variable
50 cleanup_flag = -1; in a_cleanup_func()
75 cleanup_flag = 1; in a_thread_func()
82 cleanup_flag = -2; in a_thread_func()
93 cleanup_flag = 0; in main()
132 if (cleanup_flag == -1) { in main()
137 if (cleanup_flag == -2) { in main()
D1-2.c37 int cleanup_flag; variable
44 cleanup_flag = -1; in a_cleanup_func()
67 cleanup_flag = 1; in a_thread_func()
78 cleanup_flag = 0; in main()
103 while (cleanup_flag == 0) in main()
108 if (cleanup_flag <= 0) { in main()
D1-1.c37 int cleanup_flag; variable
43 cleanup_flag = 1; in a_cleanup_func()
69 cleanup_flag = -1; in a_thread_func()
81 cleanup_flag = 0; in main()
105 while (cleanup_flag == INTHREAD) in main()
110 if (cleanup_flag < 0) { in main()
D2-1.c26 int cleanup_flag; /* Made global so that the cleanup function variable
33 cleanup_flag = 1; in a_cleanup_func()
68 cleanup_flag = 0; in main()
99 if (cleanup_flag != 1) { in main()
D2-2.c30 int cleanup_flag = 0; variable
35 cleanup_flag = 1; in destructor()
101 if (cleanup_flag != 1) { in main()
D2-3.c32 int cleanup_flag = 0; variable
52 cleanup_flag = 1; in cleanup_function()
123 if (cleanup_flag != 1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
D3-1.c32 static int cleanup_flag; variable
40 cleanup_flag = 1; in a_cleanup_func()
70 cleanup_flag = -1; in a_thread_func()
102 if (cleanup_flag == 0) { in main()
108 if (cleanup_flag == -1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/
D1-3.c36 int cleanup_flag; variable
41 cleanup_flag = (long)flag_val; in a_cleanup_func()
60 cleanup_flag = CLEANUP_NOTCALLED; in main()
75 if (cleanup_flag != CLEANUP_CALLED) { in main()
D1-1.c37 int cleanup_flag; variable
42 cleanup_flag = (long)flag_val; in a_cleanup_func()
61 cleanup_flag = CLEANUP_NOTCALLED; in main()
76 if (cleanup_flag != CLEANUP_CALLED) { in main()
D1-2.c40 int cleanup_flag; variable
45 cleanup_flag = (long)flag_val; in a_cleanup_func()
85 cleanup_flag = CLEANUP_NOTCALLED; in main()
121 if (cleanup_flag != CLEANUP_CALLED) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
D3-1.c32 int cleanup_flag = 0; variable
36 cleanup_flag = 1; in destructor()
81 if (cleanup_flag != 1) { in main()