Searched refs:ret (Results 1 - 25 of 1471) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_mutex_lock/
H A Ds-c1.c58 * UNRESOLVED(ret, descr);
59 * where descr is a description of the error and ret is an int (error code for example)
116 int ret; local
122 ret=pthread_mutex_lock(&mtx[i]);
123 if (ret == 0) /* The thread was blocked successfuly */
126 ret = pthread_mutex_lock(&m);
127 if (ret != 0)
128 { UNRESOLVED(ret, "Unable to lock 'm'"); }
131 ret = pthread_mutex_unlock(&m);
132 if (ret !
178 int ret; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutex_unlock/
H A D5-1.c59 * UNRESOLVED(ret, descr);
60 * where descr is a description of the error and ret is an int (error code for example)
92 int ret; local
93 ret = pthread_mutex_unlock(&m);
94 if (ret == 0)
95 { UNRESOLVED(ret, "Unlocking a not owned recursive mutex succeeded"); }
97 if (ret != EPERM) /* This is a "may" assertion */
106 int ret; local
116 ret = pthread_mutexattr_init(&ma);
117 if (ret !
[all...]
H A D5-2.c58 * UNRESOLVED(ret, descr);
59 * where descr is a description of the error and ret is an int (error code for example)
90 int ret; local
100 ret = pthread_mutexattr_init(&ma);
101 if (ret != 0)
102 { UNRESOLVED(ret, "Mutex attribute init failed"); }
104 ret = pthread_mutexattr_settype(&ma, PTHREAD_MUTEX_RECURSIVE);
105 if (ret != 0)
106 { UNRESOLVED(ret, "Set type recursive failed"); }
108 ret
[all...]
/haiku-fatelf/src/libs/iconv/
H A Dgb12345.h38 int ret; local
42 ret = gb12345ext_mbtowc(conv,pwc,s,n);
43 if (ret != RET_ILSEQ)
44 return ret;
46 ret = gb2312_mbtowc(conv,pwc,s,n);
47 return ret;
53 int ret; local
57 ret = gb12345ext_wctomb(conv,r,wc,n);
58 if (ret != RET_ILUNI)
59 return ret;
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_getschedparam/
H A D1-3.c58 * UNRESOLVED(ret, descr);
59 * where descr is a description of the error and ret is an int
90 int ret = 0; local
104 ret = pthread_getschedparam( thread, &t_pol, &t_parm );
106 if ( ret != 0 )
108 UNRESOLVED( ret, "Failed to get thread's parameters" );
125 int ret = 0; local
132 ret = pthread_barrier_wait( arg );
134 if ( ( ret != 0 ) && ( ret !
187 int ret = 0; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_create/
H A D12-1.c32 int ret; local
35 ret = pthread_create(&new_th, NULL, a_thread_func, NULL);
36 if(ret != 0)
38 if((ret != EINVAL) && (ret != EAGAIN) && (ret != EPERM))
40 printf("Test FAILED: Wrong return code: %d\n", ret);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-6.c57 * UNRESOLVED(ret, descr);
58 * where descr is a description of the error and ret is an int (error code for example)
106 int ret; local
109 ret = pthread_mutex_trylock(&(data.mtx));
110 if (ret != 0) { FAILED("Unable to double-lock a recursive mutex in clean-up handler 1"); }
111 ret = pthread_mutex_unlock(&(data.mtx));
112 if (ret != 0) { UNRESOLVED(ret, "Unable to unlock double-locked recursive mutex in clean-up handler 1"); }
122 int ret; local
124 ret
141 int ret; local
162 int ret; local
201 int ret, i; local
[all...]
H A D2-5.c68 * UNRESOLVED(ret, descr);
69 * where descr is a description of the error and ret is an int (error code for example)
116 int ret; local
121 ret = clock_gettime(data.cid, &ts);
122 if (ret != 0) { UNRESOLVED(ret, "Unable to get time from clock"); }
126 ret = pthread_mutex_lock(&(data.mtx1));
127 if (ret != 0) { UNRESOLVED(ret, "Unable tu lock m1 in thread"); }
136 ret
191 int ret, i, j; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_setschedparam/
H A D1-2.c52 * UNRESOLVED(ret, descr);
53 * where descr is a description of the error and ret is an int
84 int ret = 0; local
98 ret = pthread_getschedparam( thread, &t_pol, &t_parm );
100 if ( ret != 0 )
102 UNRESOLVED( ret, "Failed to get thread's parameters" );
119 int ret = 0; local
122 ret = pthread_barrier_wait( arg );
124 if ( ( ret != 0 ) && ( ret !
140 int ret = 0; local
164 int ret = 0; local
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigaction/
H A D16-1.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-10.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-11.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-12.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-13.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-14.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-15.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-16.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-17.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-18.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-19.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-2.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-20.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-21.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-22.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
H A D16-23.c64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0; local
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret; local
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]

Completed in 99 milliseconds

1234567891011>>