/external/wpa_supplicant_8/wpa_supplicant/ |
D | eap_register.c | 26 int ret = 0; in eap_register_methods() local 29 if (ret == 0) in eap_register_methods() 30 ret = eap_peer_md5_register(); in eap_register_methods() 34 if (ret == 0) in eap_register_methods() 35 ret = eap_peer_tls_register(); in eap_register_methods() 39 if (ret == 0) in eap_register_methods() 40 ret = eap_peer_unauth_tls_register(); in eap_register_methods() 45 if (ret == 0) in eap_register_methods() 46 ret = eap_peer_wfa_unauth_tls_register(); in eap_register_methods() 51 if (ret == 0) in eap_register_methods() [all …]
|
/external/elfutils/tests/ |
D | funcretval_test.c | 11 large_struct1_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } }; in fun_large_struct1() local 12 return ret; in fun_large_struct1() 18 large_struct2_t ret = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in fun_large_struct2() local 19 return ret; in fun_large_struct2() 39 vec_char_8_t ret = { 1, 2, 3, 4, 5, 6, 7, 8 }; in fun_vec_char_8() local 40 return ret; in fun_vec_char_8() 45 vec_short_8_t ret = { 2, 3, 4, 5 }; in fun_vec_short_8() local 46 return ret; in fun_vec_short_8() 51 vec_int_8_t ret = { 3, 4 }; in fun_vec_int_8() local 52 return ret; in fun_vec_int_8() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
D | 2-5.c | 83 int ret; in threaded() local 88 ret = clock_gettime(data.cid, &ts); in threaded() 89 if (ret != 0) in threaded() 90 UNRESOLVED(ret, "Unable to get time from clock"); in threaded() 94 ret = pthread_mutex_lock(&(data.mtx1)); in threaded() 95 if (ret != 0) in threaded() 96 UNRESOLVED(ret, "Unable tu lock m1 in thread"); in threaded() 104 ret = pthread_cond_wait(&(data.cnd), &(data.mtx1)); in threaded() 106 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx1), in threaded() 108 } while ((ret == 0) && (data.boolcnd == 0)); in threaded() [all …]
|
D | 2-6.c | 74 int ret; in clnp1() local 79 ret = pthread_mutex_trylock(&(data.mtx)); in clnp1() 80 if (ret != 0) { in clnp1() 84 ret = pthread_mutex_unlock(&(data.mtx)); in clnp1() 85 if (ret != 0) { in clnp1() 86 UNRESOLVED(ret, in clnp1() 98 int ret; in clnp2() local 103 ret = sem_post(&(data.semA)); in clnp2() 104 } while ((ret != 0) && (errno == EINTR)); in clnp2() 105 if (ret != 0) { in clnp2() [all …]
|
D | 2-4.c | 161 int ret = 0; in tf() local 167 ret = pthread_mutex_lock(&(td->mtx)); in tf() 168 if (ret != 0) { in tf() 169 td->status = ret; in tf() 170 UNRESOLVED(ret, "[child] Unable to lock the mutex"); in tf() 177 ret = clock_gettime(td->cid, &ts); in tf() 178 if (ret != 0) { in tf() 179 td->status = ret; in tf() 190 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts); in tf() 192 } while ((ret == 0) && (td->bool == 0)); in tf() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
D | 2-3.c | 102 int ret; in clnp1() local 104 ret = pthread_mutex_trylock(&(data.mtx)); in clnp1() 105 if (ret != 0) { in clnp1() 109 ret = pthread_mutex_unlock(&(data.mtx)); in clnp1() 110 if (ret != 0) { in clnp1() 111 UNRESOLVED(ret, in clnp1() 123 int ret; in clnp2() local 125 ret = sem_post(&(data.semA)); in clnp2() 126 } while ((ret != 0) && (errno == EINTR)); in clnp2() 127 if (ret != 0) { in clnp2() [all …]
|
D | 2-2.c | 189 int ret = 0; in tf() local 194 ret = pthread_mutex_lock(&(td->mtx)); in tf() 195 if (ret != 0) { in tf() 196 td->status = ret; in tf() 197 UNRESOLVED(ret, "[child] Unable to lock the mutex"); in tf() 205 ret = pthread_cond_wait(&(td->cnd), &(td->mtx)); in tf() 207 } while ((ret == 0) && (td->bool == 0)); in tf() 211 if (ret != 0) { in tf() 212 td->status = ret; in tf() 213 UNRESOLVED(ret, "[child] Cond wait returned an error"); in tf() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/ |
D | s-c1.c | 114 int ret; in threaded() local 119 ret = pthread_mutex_lock(&mtx[i]); in threaded() 120 if (ret == 0) { /* The thread was blocked successfuly */ in threaded() 122 ret = pthread_mutex_lock(&m); in threaded() 123 if (ret != 0) { in threaded() 124 UNRESOLVED(ret, "Unable to lock 'm'"); in threaded() 128 ret = pthread_mutex_unlock(&m); in threaded() 129 if (ret != 0) { in threaded() 130 UNRESOLVED(ret, "Unable to unlock 'm'"); in threaded() 134 ret = pthread_mutex_unlock(&mtx[i]); in threaded() [all …]
|
D | stress.c | 142 int ret; in sigthr() local 148 ret = pthread_mutex_lock(&(c->tmtx)); in sigthr() 149 if (ret != 0) { in sigthr() 150 UNRESOLVED(ret, "Failed to lock the mutex"); in sigthr() 153 ret = pthread_mutex_unlock(&(c->tmtx)); in sigthr() 154 if (ret != 0) { in sigthr() 155 UNRESOLVED(ret, "Failed to unlock the mutex"); in sigthr() 162 ret = sem_wait(&(c->semsig)); in sigthr() 163 if (ret != 0) { in sigthr() 169 ret = pthread_kill(c->threads[++i], SIGUSR2); in sigthr() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 3-2.c | 122 int ret = 0; in overflow() local 129 ret = sem_wait(&semsync[0]); in overflow() 131 while ((ret == -1) && (errno == EINTR)); in overflow() 132 if (ret == -1) { in overflow() 141 ret = sem_post(&semsync[1]); in overflow() 143 while ((ret == -1) && (errno == EINTR)); in overflow() 144 if (ret == -1) { in overflow() 187 int ret; in test_stack() local 245 ret = sem_init(&semsync[0], 0, 0); in test_stack() 246 if (ret == -1) { in test_stack() [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | eap_register.c | 25 int ret = 0; in eap_server_register_methods() local 28 if (ret == 0) in eap_server_register_methods() 29 ret = eap_server_identity_register(); in eap_server_register_methods() 33 if (ret == 0) in eap_server_register_methods() 34 ret = eap_server_md5_register(); in eap_server_register_methods() 38 if (ret == 0) in eap_server_register_methods() 39 ret = eap_server_tls_register(); in eap_server_register_methods() 43 if (ret == 0) in eap_server_register_methods() 44 ret = eap_server_unauth_tls_register(); in eap_server_register_methods() 49 if (ret == 0) in eap_server_register_methods() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
D | 2-1.c | 220 int ret = 0; in child() local 225 ret = pthread_mutex_lock(&td->mtx1); in child() 226 if (ret != 0) { in child() 227 UNRESOLVED(ret, "Failed to lock mutex in child"); in child() 237 ret = clock_gettime(td->cid, &ts); in child() 238 if (ret != 0) { in child() 247 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts); in child() 249 ret = pthread_cond_wait(&td->cnd, &td->mtx1); in child() 250 } while ((ret == 0) && (td->predicate1 == 0)); in child() 251 if ((ret != 0) && (td->predicate1 != 0)) { in child() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/ |
D | stress2.c | 212 int ret; in cleanup() local 216 ret = pthread_mutex_unlock(&(cd->mtx)); in cleanup() 217 if (ret != 0) { in cleanup() 218 UNRESOLVED(ret, "Failed to unlock mutex in cancel handler"); in cleanup() 225 int ret; in worker() local 230 ret = pthread_mutex_lock(&(cd->mtx)); in worker() 231 if (ret != 0) { in worker() 232 UNRESOLVED(ret, "Unable to lock mutex in worker"); in worker() 239 ret = clock_gettime(cd->cid, &ts); in worker() 240 if (ret != 0) { in worker() [all …]
|
D | stress.c | 212 int ret; in cleanup() local 216 ret = pthread_mutex_unlock(&(cd->mtx)); in cleanup() 217 if (ret != 0) { in cleanup() 218 UNRESOLVED(ret, "Failed to unlock mutex in cancel handler"); in cleanup() 225 int ret; in worker() local 230 ret = pthread_mutex_lock(&(cd->mtx)); in worker() 231 if (ret != 0) { in worker() 232 UNRESOLVED(ret, "Unable to lock mutex in worker"); in worker() 239 ret = clock_gettime(cd->cid, &ts); in worker() 240 if (ret != 0) { in worker() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/ |
D | stress2.c | 212 int ret; in cleanup() local 216 ret = pthread_mutex_unlock(&(cd->mtx)); in cleanup() 217 if (ret != 0) { in cleanup() 218 UNRESOLVED(ret, "Failed to unlock mutex in cancel handler"); in cleanup() 225 int ret; in worker() local 230 ret = pthread_mutex_lock(&(cd->mtx)); in worker() 231 if (ret != 0) { in worker() 232 UNRESOLVED(ret, "Unable to lock mutex in worker"); in worker() 239 ret = clock_gettime(cd->cid, &ts); in worker() 240 if (ret != 0) { in worker() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/ |
D | stress.c | 167 int ret = 0, ret2 = 0; in threaded() local 173 ret = pthread_mutex_trylock(td->mtx); in threaded() 180 while ((ret == EBUSY) && (go_on == 1)); in threaded() 183 if ((go_on == 1) && (ret == 0)) { in threaded() 199 if (ret == 0) { in threaded() 201 ret = pthread_mutex_unlock(td->mtx); in threaded() 202 if (ret != 0) { in threaded() 203 UNRESOLVED(ret, "Failed to unlock the mutex"); in threaded() 213 int ret; in main() local 238 if ((ret = sigaction(SIGUSR1, &sa, NULL))) { in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/ |
D | 1-3.c | 48 int ret; in check_param() local 52 ret = pthread_getschedparam(thread, &t_pol, &t_parm); in check_param() 53 if (ret) { in check_param() 54 ERR_MSG("pthread_getscheparam()", ret); in check_param() 72 int ret; in threaded() local 77 ret = pthread_barrier_wait(arg); in threaded() 78 if (ret && (ret != PTHREAD_BARRIER_SERIAL_THREAD)) { in threaded() 79 ERR_MSG("pthread_barrier_wait()", ret); in threaded() 83 ret = pthread_barrier_wait(arg); in threaded() 84 if (ret && (ret != PTHREAD_BARRIER_SERIAL_THREAD)) { in threaded() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
D | 4-3.c | 135 int ret; in sendsig() local 141 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); in sendsig() 142 if (ret != 0) { in sendsig() 143 UNRESOLVED(ret, in sendsig() 149 if ((ret = sem_wait(thearg->sem))) { in sendsig() 155 ret = kill(process, thearg->sig); in sendsig() 156 if (ret != 0) { in sendsig() 188 int ret = 0; in test() local 195 ret = pthread_sigmask(SIG_UNBLOCK, &usersigs, NULL); in test() 196 if (ret != 0) { in test() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
D | 4-2.c | 76 int ret; in sendsig() local 82 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); in sendsig() 83 if (ret != 0) in sendsig() 84 UNRESOLVED(ret, "Unable to block SIGUSR1 and SIGUSR2 " in sendsig() 89 ret = sem_wait(thearg->sem); in sendsig() 90 if (ret) in sendsig() 95 ret = kill(process, thearg->sig); in sendsig() 96 if (ret != 0) in sendsig() 127 int ret; in waiter() local 130 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); in waiter() [all …]
|
D | 1-2.c | 176 int ret = 0; in child() local 181 ret = pthread_mutex_lock(&td->mtx); in child() 182 if (ret != 0) in child() 183 UNRESOLVED(ret, "Failed to lock mutex in child"); in child() 192 ret = clock_gettime(td->cid, &ts); in child() 193 if (ret != 0) in child() 201 ret = pthread_cond_timedwait(&td->cnd, &td->mtx, &ts); in child() 203 ret = pthread_cond_wait(&td->cnd, &td->mtx); in child() 206 timed, td->predicate, ret); in child() 208 } while ((ret == 0) && (td->predicate == 0)); in child() [all …]
|
D | 2-3.c | 168 int ret = 0; in child() local 173 ret = pthread_mutex_lock(&td->mtx); in child() 174 if (ret != 0) in child() 175 UNRESOLVED(ret, "Failed to lock mutex in child"); in child() 182 ret = clock_gettime(td->cid, &ts); in child() 183 if (ret != 0) in child() 191 ret = pthread_cond_timedwait(&td->cnd, &td->mtx, &ts); in child() 193 ret = pthread_cond_wait(&td->cnd, &td->mtx); in child() 196 timed, td->predicate, ret); in child() 198 } while ((ret == 0) && (td->predicate == 0)); in child() [all …]
|
/external/llvm/test/CodeGen/NVPTX/ |
D | arithmetic-int.ll | 13 ; CHECK: ret 14 %ret = add i64 %a, %b 15 ret i64 %ret 20 ; CHECK: ret 21 %ret = sub i64 %a, %b 22 ret i64 %ret 27 ; CHECK: ret 28 %ret = mul i64 %a, %b 29 ret i64 %ret 41 ret i64 %3 [all …]
|
/external/clang/test/SemaCXX/ |
D | warn-logical-not-compare.cpp | 8 bool ret; in test1() local 10 ret = !i1 == i2; in test1() 22 ret = !i1 != i2; in test1() 34 ret = !i1 < i2; in test1() 46 ret = !i1 > i2; in test1() 58 ret = !i1 <= i2; in test1() 70 ret = !i1 >= i2; in test1() 82 ret = i1 == i2; in test1() 83 ret = i1 != i2; in test1() 84 ret = i1 < i2; in test1() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_kill/ |
D | stress.c | 103 int ret = 0; in flood_receiver() local 111 if ((ret = sigaction(SIGABRT, &sa, NULL))) { in flood_receiver() 112 UNRESOLVED(ret, "Unable to register signal handler"); in flood_receiver() 115 if ((ret = sigaction(SIGBUS, &sa, NULL))) { in flood_receiver() 116 UNRESOLVED(ret, "Unable to register signal handler"); in flood_receiver() 131 int ret = 0; in flooder_1() local 135 ret = pthread_kill(*(pthread_t *) arg, SIGABRT); in flooder_1() 137 if (ret != 0) { in flooder_1() 138 UNRESOLVED(ret, "Flooder 1 thread got an error"); in flooder_1() 147 int ret = 0; in flooder_2() local [all …]
|
/external/clang/test/Sema/ |
D | warn-logical-not-compare.c | 7 int ret; in test1() local 9 ret = !i1 == i2; in test1() 21 ret = !i1 != i2; in test1() 33 ret = !i1 < i2; in test1() 45 ret = !i1 > i2; in test1() 57 ret = !i1 <= i2; in test1() 69 ret = !i1 >= i2; in test1() 81 ret = i1 == i2; in test1() 82 ret = i1 != i2; in test1() 83 ret = i1 < i2; in test1() [all …]
|