Lines Matching refs:ret
39 int ret = pthread_mutex_lock (&mutex); in thread_func() local
40 if (ret != 0) in thread_func()
41 FAIL ("pthread_mutex_lock (thread): %d", ret); in thread_func()
48 ret = pthread_mutex_unlock (&mutex); in thread_func()
49 if (ret != 0) in thread_func()
50 FAIL ("pthread_mutex_unlock (thread): %d", ret); in thread_func()
52 ret = pthread_mutex_lock (&mutex); in thread_func()
53 if (ret != 0) in thread_func()
54 FAIL ("pthread_mutex_lock (thread): %d", ret); in thread_func()
56 ret = pthread_cond_signal (&cond_recv); in thread_func()
57 if (ret != 0) in thread_func()
58 FAIL ("pthread_cond_signal (recv): %d", ret); in thread_func()
60 ret = pthread_cond_wait (&cond_send, &mutex); in thread_func()
61 if (ret != 0) in thread_func()
62 FAIL ("pthread_cond_wait (send): %d", ret); in thread_func()
70 int ret = pthread_mutex_lock (&mutex); in run_on_thread() local
71 if (ret != 0) in run_on_thread()
72 FAIL ("pthread_mutex_lock (%s): %d", __func__, ret); in run_on_thread()
74 ret = pthread_mutex_unlock (&mutex); in run_on_thread()
75 if (ret != 0) in run_on_thread()
76 FAIL ("pthread_mutex_unlock (%s): %d", __func__, ret); in run_on_thread()
78 ret = pthread_cond_signal (&cond_send); in run_on_thread()
79 if (ret != 0) in run_on_thread()
80 FAIL ("pthread_mutex_lock (%s): %d", __func__, ret); in run_on_thread()
82 ret = pthread_mutex_lock (&mutex); in run_on_thread()
83 if (ret != 0) in run_on_thread()
84 FAIL ("pthread_mutex_lock (%s): %d", __func__, ret); in run_on_thread()
88 ret = pthread_cond_wait (&cond_recv, &mutex); in run_on_thread()
89 if (ret != 0) in run_on_thread()
90 FAIL ("pthread_mutex_wait (%s): %d", __func__, ret); in run_on_thread()
92 ret = pthread_mutex_unlock (&mutex); in run_on_thread()
93 if (ret != 0) in run_on_thread()
94 FAIL ("pthread_mutex_unlock (%s): %d", __func__, ret); in run_on_thread()
100 long ret = syscall (__NR_setresuid, 2001, 2002, 2003); in change_thread_ids() local
101 if (ret != 0) in change_thread_ids()
102 FAIL ("setresuid (2001, 2002, 2003): %ld", ret); in change_thread_ids()
124 int ret = pthread_create (&thread, NULL, thread_func, NULL); in do_test() local
125 if (ret != 0) in do_test()
126 FAIL ("pthread_create: %d", ret); in do_test()