Lines Matching refs:rc

60   int old, rc;  in do_test()  local
64 rc = pipe (fd); in do_test()
65 if (rc < 0) in do_test()
68 rc = pthread_create (&th, NULL, tf, NULL); in do_test()
69 if (rc) in do_test()
70 error (EXIT_FAILURE, rc, "couldn't create thread"); in do_test()
72 rc = pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &old); in do_test()
73 if (rc) in do_test()
75 error (0, rc, "1st pthread_setcanceltype failed"); in do_test()
88 rc = pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &old); in do_test()
89 if (rc) in do_test()
91 error (0, rc, "pthread_setcanceltype after close failed"); in do_test()
104 rc = pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &old); in do_test()
105 if (rc) in do_test()
107 error (0, rc, "pthread_setcanceltype after 2nd close failed"); in do_test()
133 rc = pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &old); in do_test()
134 if (rc) in do_test()
136 error (0, rc, "pthread_setcanceltype after pause failed"); in do_test()
157 rc = pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &old); in do_test()
158 if (rc) in do_test()
160 error (0, rc, "pthread_setcanceltype after 2nd pause failed"); in do_test()
182 rc = pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &old); in do_test()
183 if (rc) in do_test()
185 error (0, rc, "pthread_setcanceltype after creat failed"); in do_test()
198 rc = pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &old); in do_test()
199 if (rc) in do_test()
201 error (0, rc, "pthread_setcanceltype after 2nd creat failed"); in do_test()
214 rc = pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &old); in do_test()
215 if (rc) in do_test()
217 error (0, rc, "pthread_setcanceltype after open failed"); in do_test()
230 rc = pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &old); in do_test()
231 if (rc) in do_test()
233 error (0, rc, "pthread_setcanceltype after 2nd open failed"); in do_test()
249 rc = pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &old); in do_test()
250 if (rc) in do_test()
252 error (0, rc, "pthread_setcanceltype after select failed"); in do_test()
265 rc = pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &old); in do_test()
266 if (rc) in do_test()
268 error (0, rc, "pthread_setcanceltype after 2nd select failed"); in do_test()