Lines Matching refs:r
40 int r; in main() local
76 r= pthread_create( &child, NULL, racy_child, NULL ); assert(!r); in main()
79 r= pthread_join( child, NULL ); assert(!r); in main()
83 r= pthread_join( pthread_self(), NULL ); assert(r); in main()
92 r= pthread_mutex_init( &mx, &mxa ); in main()
94 assert(r); /* glibc >= 2.4: the call should fail */ in main()
96 assert(!r); /* glibc < 2.4: oh well, glibc didn't bounce this */ in main()
100 r= pthread_mutex_init( &mx2, NULL ); assert(!r); in main()
101 r= pthread_mutex_lock( &mx2 ); assert(!r); in main()
102 r= pthread_mutex_destroy( &mx2 ); assert(r); in main()
108 r= pthread_mutex_lock( &mx3 ); assert(r); in main()
116 r= pthread_mutex_trylock( &mx3 ); assert(r); in main()
121 r= pthread_mutex_timedlock( &mx3, &abstime ); assert(r); in main()
125 r= pthread_mutex_unlock( &mx3 ); in main()
127 assert(r); in main()
129 assert(!r); in main()
142 r= pthread_mutexattr_init( &mxa2 ); assert(!r); in main()
143 r= pthread_mutexattr_settype( &mxa2, PTHREAD_MUTEX_ERRORCHECK ); in main()
144 assert(!r); in main()
145 r= pthread_mutex_init( &mx4, &mxa2 ); assert(!r); in main()
146 r= pthread_cond_init( &cv, NULL ); assert(!r); in main()
147 r= pthread_cond_wait( &cv, &mx4 ); assert(r); in main()
148 r= pthread_mutexattr_destroy( &mxa2 ); assert(!r); in main()
152 r= pthread_cond_signal( &cv ); assert(!r); in main()
158 r= pthread_cond_broadcast( &cv ); assert(!r); in main()
165 r= pthread_cond_timedwait( &cv, &mx4, &abstime ); assert(r); in main()
178 r= pthread_rwlock_init( &rwl, NULL ); assert(!r); in main()
179 r= pthread_rwlock_unlock( &rwl ); in main()
186 r= pthread_rwlock_init( &rwl2, NULL ); assert(!r); in main()
190 r= pthread_rwlock_wrlock( &rwl2 ); assert(!r); in main()
193 r= pthread_rwlock_unlock( &rwl2 ); assert(!r); in main()
196 r= pthread_rwlock_unlock( &rwl2 ); assert(!r); in main()
199 r= pthread_rwlock_init( &rwl2, NULL ); assert(!r); in main()
202 r= pthread_rwlock_rdlock( &rwl2 ); assert(!r); in main()
204 r= pthread_rwlock_rdlock( &rwl2 ); assert(!r); in main()
207 r= pthread_rwlock_unlock( &rwl2 ); assert(!r); in main()
209 r= pthread_rwlock_unlock( &rwl2 ); assert(!r); in main()
212 r= pthread_rwlock_unlock( &rwl2 ); assert(!r); in main()
216 r= pthread_rwlock_init( &rwl3, NULL ); assert(!r); in main()
217 r= pthread_rwlock_rdlock( &rwl3 ); assert(!r); in main()
228 r= sem_init(&s1, 0, ~0); assert(r); in main()
231 r= sem_init(&s1, 0, 0); in main()
242 r= sem_wait(&s1); /* assert(r != 0); */ in main()
245 r= sem_post(&s1); in main()