/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/ |
stress.c | 52 * UNRESOLVED(ret, descr); 53 * where descr is a description of the error and ret is an int (error code for example) 105 int ret = 0; local 113 ret = pthread_getschedparam(td[i].thread, &pol, &sp); 115 if (ret != 0) { 116 UNRESOLVED(ret, "Failed to get sched param"); 139 int ret = 0; local 142 ret = pthread_barrier_wait(arg); 144 if ((ret != 0) && (ret != PTHREAD_BARRIER_SERIAL_THREAD)) 154 int ret = 0, i; local [all...] |
/external/toybox/toys/android/ |
setenforce.c | 23 int state, ret; local 30 ret = security_setenforce(state); 31 if (ret == -1) perror_msg("Couldn't set enforcing status to '%s'", new);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/resize_policy/ |
hash_exponential_size_policy_imp.hpp | 62 size_type ret = m_start_size; local 63 while (ret <= size) 65 const size_type next_ret = ret* m_grow_factor; 66 if (next_ret < ret) 68 ret = next_ret; 70 return ret; 78 size_type ret = m_start_size; local 81 const size_type next_ret = ret* m_grow_factor; 82 if (next_ret < ret) 85 return (ret); [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ext/pb_ds/detail/resize_policy/ |
hash_exponential_size_policy_imp.hpp | 62 size_type ret = m_start_size; local 63 while (ret <= size) 65 const size_type next_ret = ret* m_grow_factor; 66 if (next_ret < ret) 68 ret = next_ret; 70 return ret; 78 size_type ret = m_start_size; local 81 const size_type next_ret = ret* m_grow_factor; 82 if (next_ret < ret) 85 return (ret); [all...] |
/system/core/liblog/ |
uio.c | 33 int ret = read(fd, buf, len); local 34 if (ret < 0) { 38 if (ret == 0) goto Exit; 40 total += ret; 41 buf += ret; 42 len -= ret; 57 int ret = write(fd, buf, len); local 58 if (ret < 0) { 62 if (ret == 0) goto Exit; 64 total += ret; [all...] |
/external/libnetfilter_conntrack/src/expect/ |
snprintf_xml.c | 56 int ret; local 59 ret = snprintf(buf, len, "<meta>"); 60 BUFFER_SIZE(ret, size, len, offset); 63 ret = snprintf(buf+offset, len, 66 BUFFER_SIZE(ret, size, len, offset); 69 ret = snprintf(buf+offset, len, "<timeout>%u</timeout>", 71 BUFFER_SIZE(ret, size, len, offset); 74 ret = snprintf(buf+offset, len, "<class>%u</class>", 76 BUFFER_SIZE(ret, size, len, offset); 79 ret = snprintf(buf+offset, len, "<zone>%u</zone>", exp->zone) 122 int ret; local 182 int ret; local 243 int ret = 0, size = 0, offset = 0; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
1-2.c | 59 * UNRESOLVED(ret, descr); 60 * where descr is a description of the error and ret is an int (error code for example) 217 int ret = 0; local 222 ret = pthread_mutex_lock(&td->mtx); 223 if (ret != 0) { 224 UNRESOLVED(ret, "Failed to lock mutex in child"); 234 ret = clock_gettime(td->cid, &ts); 235 if (ret != 0) { 244 ret = pthread_cond_timedwait(&td->cnd, &td->mtx, &ts); 246 ret = pthread_cond_wait(&td->cnd, &td->mtx) 292 int ret; local [all...] |
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/ |
stress1.c | 83 * UNRESOLVED(ret, descr); 84 * where descr is a description of the error and ret is an int (error code for example) 236 int ret; local 240 ret = pthread_mutex_lock(&(cd->mtx)); 241 if (ret != 0) { 242 UNRESOLVED(ret, "[gchild] Unable to lock mutex"); 246 ret = pthread_cond_broadcast(&(cd->cnd)); 247 if (ret != 0) { 248 UNRESOLVED(ret, "[gchild] Broadcast failed"); 251 ret = clock_gettime(cd->cid, &ts) 288 int ret, status; local 395 int ret, i, j; local [all...] |
/external/libxkbcommon/xkbcommon/test/ |
x11comp.c | 43 int ret, status; local 68 ret = pipe(pipefds); 69 assert(ret == 0); 71 ret = snprintf(displayfd, sizeof(displayfd), "%d", pipefds[1]); 72 assert(ret >= 0 && ret < sizeof(displayfd)); 74 ret = posix_spawnp(&xvfb_pid, "Xvfb", NULL, NULL, xvfb_argv, envp); 75 if (ret != 0) { 76 ret = SKIP_TEST; 83 ret = read(pipefds[0], display + 1, sizeof(display) - 1) [all...] |
/cts/hostsidetests/security/securityPatch/CVE-2014-3145/ |
poc.c | 66 ssize_t ret; local 68 ret = send(s[1], pkt, len, 0); 69 if (ret != len) { 73 ret = recv(s[0], tmp, len, MSG_DONTWAIT); 74 if (ret < 0 && errno == EAGAIN) 93 int s[2], ret; local 95 ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, s); 96 if (ret) { 100 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, 102 if (ret < 0) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/common/ |
css_bl2u_setup.c | 39 int ret; local 43 ret = css_scp_boot_image_xfer((void *)scp_bl2u_image_info.image_base, 46 if (ret == 0) 47 ret = css_scp_boot_ready(); 49 if (ret == 0) 54 return ret;
|
/device/linaro/bootloader/edk2/StdLib/LibC/NetUtil/ |
inet_ntoa.c | 63 static char ret[18];
local 65 //strlcpy(ret, "[inet_ntoa error]", sizeof(ret));
66 strncpyX(ret, "[inet_ntoa error]", sizeof(ret));
67 (void) inet_ntop(AF_INET, &in, ret, sizeof ret);
68 return (ret);
|
/external/flac/include/share/ |
safe_str.h | 44 char * ret; local 49 ret = strncat(dest, src, dest_size - strlen (dest)); 52 return ret; 58 char * ret; local 63 ret = strncpy(dest, src, dest_size); 66 return ret;
|
/external/libdrm/intel/tests/ |
gen4-3d.batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
gen5-3d.batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
gen6-3d.batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
gen7-2d-copy.batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
gen7-3d.batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
gm45-3d.batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
test-batch.sh | 6 ret=$? 10 if test $ret = 1; then 20 exit $ret
|
/external/libunwind/src/unwind/ |
Backtrace.c | 34 int ret = _URC_NO_REASON; local 39 ret = _URC_FATAL_PHASE1_ERROR; 44 while (ret == _URC_NO_REASON) 47 ret = _URC_END_OF_STACK; 49 ret = _URC_FATAL_PHASE1_ERROR; 55 return ret;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
2-4.c | 161 int ret = 0; local 167 ret = pthread_mutex_lock(&(td->mtx)); 168 if (ret != 0) { 169 td->status = ret; 170 UNRESOLVED(ret, "[child] Unable to lock the mutex"); 177 ret = clock_gettime(td->cid, &ts); 178 if (ret != 0) { 179 td->status = ret; 190 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts); 192 } while ((ret == 0) && (td->bool == 0)) 248 int ret; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/ |
6-2.c | 48 int ret; local 55 ret = pthread_join(new_th, NULL); 57 if (ret != 0) { 66 ret = pthread_join(new_th, NULL); 67 if (ret != ESRCH) { 69 "%d instead.\n", ret);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcancelstate/ |
3-1.c | 28 int ret; /* Return value of pthread_setcancelstate(). */ variable 34 ret = pthread_setcancelstate(-100, NULL); 45 ret = 0; 61 if (ret != EINVAL) { 62 if (ret == 0) { 69 ret);
|
/toolchain/binutils/binutils-2.27/gold/testsuite/ |
ifunc-sel.h | 28 register void *ret __asm__ ("r3"); 46 : "=&b" (ret), "=&b" (temp1), "=&b" (temp2) 48 return ret; 77 register void *ret __asm__ ("r3"); 85 : "=&b" (ret), "=&r" (temp) 87 return ret;
|