Lines Matching refs:err
31 int err; in tf() local
33 err = pthread_mutex_lock (&mut); in tf()
34 if (err != 0) in tf()
35 error (EXIT_FAILURE, err, "child: cannot get mutex"); in tf()
43 err = pthread_mutex_unlock (&mut); in tf()
44 if (err != 0) in tf()
45 error (EXIT_FAILURE, err, "child: cannot unlock"); in tf()
57 int err; in do_test() local
63 err = pthread_mutex_lock (&mut); in do_test()
64 if (err != 0) in do_test()
65 error (EXIT_FAILURE, err, "parent: cannot get mutex"); in do_test()
69 err = pthread_create (&th, NULL, tf, NULL); in do_test()
70 if (err != 0) in do_test()
71 error (EXIT_FAILURE, err, "parent: cannot create thread"); in do_test()
78 err = pthread_cond_wait (&cond, &mut); in do_test()
79 if (err != 0) in do_test()
80 error (EXIT_FAILURE, err, "parent: cannot wait fir signal"); in do_test()
84 err = pthread_join (th, NULL); in do_test()
85 if (err != 0) in do_test()
86 error (EXIT_FAILURE, err, "parent: failed to join"); in do_test()