Lines Matching refs:ret
64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0;
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret;
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret = sigaction( SIGNAL, &sa, 0 );
152 if ( ret != 0 )
154 UNRESOLVED( ret, "Failed to set signal handler" );
158 ret = sem_init( &sem, 0, 0 );
160 if ( ret != 0 )
162 UNRESOLVED( ret, "Failed to init a semaphore" );
166 ret = pthread_create( &child, NULL, threaded, NULL );
168 if ( ret != 0 )
170 UNRESOLVED( ret, "Failed to create a child thread" );
183 ret = pthread_kill( child, SIGNAL );
185 if ( ret != 0 )
187 UNRESOLVED( ret, "Failed to kill the child thread" );
195 ret = sem_post( &sem );
197 if ( ret != 0 )
202 ret = pthread_join( child, NULL );
204 if ( ret != 0 )
206 UNRESOLVED( ret, "Failed to join the thread" );
210 ret = sem_destroy( &sem );
212 if ( ret != 0 )
214 UNRESOLVED( ret, "Failed to destroy the semaphore" );