/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/pthread_mutex_lock/ |
H A D | s-c1.c | 58 * 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 D | 5-1.c | 59 * 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 D | 5-2.c | 58 * 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 D | gb12345.h | 38 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 D | 1-3.c | 58 * 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 D | 12-1.c | 32 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 D | 2-6.c | 57 * 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 D | 2-5.c | 68 * 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 D | 1-2.c | 52 * 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 D | 16-1.c | 64 * 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 D | 16-10.c | 64 * 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 D | 16-11.c | 64 * 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 D | 16-12.c | 64 * 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 D | 16-13.c | 64 * 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 D | 16-14.c | 64 * 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 D | 16-15.c | 64 * 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 D | 16-16.c | 64 * 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 D | 16-17.c | 64 * 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 D | 16-18.c | 64 * 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 D | 16-19.c | 64 * 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 D | 16-2.c | 64 * 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 D | 16-20.c | 64 * 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 D | 16-21.c | 64 * 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 D | 16-22.c | 64 * 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 D | 16-23.c | 64 * 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...] |