/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/ |
H A D | 2-1.c | 50 * UNRESOLVED(ret, descr); 51 * where descr is a description of the error and ret is an int (error code for example) 101 int ret; local 107 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL); 108 if (ret != 0) { 109 UNRESOLVED(ret, 115 if ((ret = sem_wait(thearg->sem))) { 121 ret = kill(process, thearg->sig); 122 if (ret != 0) { 154 int ret local 188 int ret; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
H A D | 4-1.c | 52 * UNRESOLVED(ret, descr); 53 * where descr is a description of the error and ret is an int 162 int ret, status; local 166 ret = pthread_mutex_lock(&mtx); 168 if (ret != 0) { 169 UNRESOLVED(ret, "Failed to lock mutex"); 172 ret = pthread_mutex_unlock(&mtx); 174 if (ret != 0) { 175 UNRESOLVED(ret, "Failed to unlock mutex"); 217 int ret; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 14-1.c | 56 int ret, status; local 75 ret = sem_unlink("/fork_14_1b"); 77 if (ret != 0) { 91 ret = sem_post(sem_linked); 93 while ((ret != 0) && (errno == EINTR)); 95 if (ret != 0) { 100 ret = sem_post(sem_unlinked); 102 while ((ret != 0) && (errno == EINTR)); 104 if (ret != 0) { 125 ret [all...] |
H A D | 22-1.c | 51 int ret, status; local 77 ret = clock_getcpuclockid(0, &clp); 79 if (ret != 0) { 80 UNRESOLVED(ret, 85 ret = clock_gettime(clp, &tp); 87 if (ret != 0) { 96 ret = pthread_getcpuclockid(pthread_self(), &clt); 98 if (ret != 0) { 99 UNRESOLVED(ret, 104 ret [all...] |
H A D | 21-1.c | 55 int ret = 0; local 58 ret = sem_wait(sem); 59 } while (ret != 0 && errno == EINTR); 61 if (ret != 0) 72 int ret, status; local 89 ret = pthread_create(&th, NULL, threaded, &ctl); 91 if (ret != 0) 92 UNRESOLVED(ret, "Failed to create the thread"); 102 ret = sem_post(sem); 103 } while (ret ! [all...] |
/external/openssh/ |
H A D | buffer.c | 32 int ret; local 34 if ((ret = sshbuf_put(buffer, data, len)) != 0) 35 fatal("%s: %s", __func__, ssh_err(ret)); 41 int ret; local 44 if ((ret = sshbuf_reserve(buffer, len, &p)) != 0) 45 fatal("%s: %s", __func__, ssh_err(ret)); 52 int ret = sshbuf_check_reserve(buffer, len); local 54 if (ret == 0) 56 if (ret == SSH_ERR_NO_BUFFER_SPACE) 58 fatal("%s: %s", __func__, ssh_err(ret)); 64 int ret; local 83 int ret = sshbuf_consume(buffer, bytes); local 102 int ret = sshbuf_consume_end(buffer, bytes); local [all...] |
/external/autotest/client/tests/aio_dio_bugs/src/ |
H A D | aio-dio-subblock-eof-read.c | 38 int ret; local 54 ret = ftruncate(fd, FILE_SIZE); 55 if (ret < 0) 59 ret = read(fd, buffer, 4096); 60 if (ret != FILE_SIZE) 61 fail("buffered read returned %d, should be 300\n", ret); 74 ret = io_queue_init(1, &ioctx); 75 if (ret != 0) 76 fail("io_queue_init returned error %d\n", ret); 78 ret [all...] |
/external/avb/test/ |
H A D | avb_unittest_util.cc | 28 std::string ret; local 31 ret.push_back(digits[data[n] >> 4]); 32 ret.push_back(digits[data[n] & 0x0f]); 34 return ret;
|
/external/libdrm/ |
H A D | libsync.h | 64 int ret; local 70 ret = poll(&fds, 1, timeout); 71 if (ret > 0) { 77 } else if (ret == 0) { 81 } while (ret == -1 && (errno == EINTR || errno == EAGAIN)); 83 return ret; 89 int ret; local 95 ret = ioctl(fd1, SYNC_IOC_MERGE, &data); 96 } while (ret == -1 && (errno == EINTR || errno == EAGAIN)); 98 if (ret < 123 int ret; local [all...] |
/external/libunwind/src/aarch64/ |
H A D | Gget_proc_info.c | 31 int ret; local 33 ret = dwarf_make_proc_info (&c->dwarf); 34 if (ret < 0) 35 return ret;
|
/external/libunwind/src/arm/ |
H A D | Gget_proc_info.c | 31 int ret; local 35 ret = dwarf_make_proc_info (&c->dwarf); 36 if (ret < 0) 37 return ret;
|
/external/libunwind/src/mips/ |
H A D | Gget_proc_info.c | 31 int ret; local 35 ret = dwarf_make_proc_info (&c->dwarf); 36 if (ret < 0) 37 return ret;
|
/external/libunwind/src/ppc64/ |
H A D | get_func_addr.c | 35 int ret; local 41 ret = (*a->access_mem) (as, addr, entry_point, 0, NULL); 42 if (ret < 0) 43 return ret;
|
/external/libunwind/src/sh/ |
H A D | Gget_proc_info.c | 31 int ret; local 33 ret = dwarf_make_proc_info (&c->dwarf); 34 if (ret < 0) 35 return ret;
|
/external/libxml2/python/tests/ |
H A D | reader8.py | 20 ret = reader.Read() variable 21 ret = reader.Read() variable 22 ret = reader.Close() variable 24 if ret != 0:
|
/external/llvm/test/MC/X86/ |
H A D | ret.s | 8 ret 34 ret $0
|
/external/ltp/testcases/kernel/security/filecaps/ |
H A D | inh_capped.c | 50 int ret; local 56 ret = cap_set_proc(caps); 58 return ret; 65 int ret; local 68 ret = set_caps_from_text("all=eip"); 70 if (ret) { 74 ret = set_caps_from_text("all=iep cap_sys_admin-iep"); 76 if (ret) { 81 ret = set_caps_from_text("all=eip cap_sys_admin-ep+i"); 83 if (ret) { [all...] |
/external/ltp/testcases/kernel/syscalls/umount2/ |
H A D | umount2.h | 23 int i, ret; local 26 ret = umount2(target, flags); 28 if (ret == 0 || errno != EBUSY) 29 return ret;
|
/external/ltp/testcases/network/stress/ns-tools/ |
H A D | check_setkey | 62 ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH which setkey >/dev/null 2>&1 ; echo $?'` 63 if [ $ret -ne 0 ]; then
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/ |
H A D | 4-1.c | 25 int ret; local 28 ret = pthread_attr_init(&new_attr); 29 if (ret == 0) { 34 else if (ret == ENOMEM) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
H A D | 1-2.c | 54 * UNRESOLVED(ret, descr); 55 * where descr is a description of the error and ret is an int 114 int ret; local 124 ret = sigemptyset(&sa.sa_mask); 126 if (ret != 0) { 127 UNRESOLVED(ret, "Failed to empty signal set"); 130 ret = sigaction(SIGUSR2, &sa, 0); 132 if (ret != 0) { 133 UNRESOLVED(ret, "Failed to set signal handler"); 137 ret [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/ |
H A D | 3-1.c | 32 int prioceiling, ret; local 36 if ((ret = pthread_mutexattr_getprioceiling(&mta, &prioceiling)) == 0) { 41 } else if (ret != EINVAL) { 44 ret);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/speculative/ |
H A D | 3-1.c | 32 int type, ret; local 38 ret = pthread_mutexattr_gettype(&mta, &type); 40 switch (ret) { 48 printf("Test FAILED: Expected EINVAL, but got: %d\n", ret);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/ |
H A D | 3-1.c | 37 int prioceiling, ret; local 42 if ((ret = pthread_mutexattr_setprioceiling(&mta, prioceiling)) == 0) { 48 if (ret != EINVAL) { 51 ret);
|
H A D | 3-2.c | 37 int prioceiling, ret; local 44 if ((ret = pthread_mutexattr_setprioceiling(&mta, prioceiling)) == 0) { 50 if (ret != EINVAL) { 53 ret);
|