Searched refs:ret (Results 151 - 175 of 5530) sorted by relevance

1234567891011>>

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/
H A D2-1.c50 * 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 D4-1.c52 * 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 D14-1.c56 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 D22-1.c51 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 D21-1.c55 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 Dbuffer.c32 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 Daio-dio-subblock-eof-read.c38 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 Davb_unittest_util.cc28 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 Dlibsync.h64 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 DGget_proc_info.c31 int ret; local
33 ret = dwarf_make_proc_info (&c->dwarf);
34 if (ret < 0)
35 return ret;
/external/libunwind/src/arm/
H A DGget_proc_info.c31 int ret; local
35 ret = dwarf_make_proc_info (&c->dwarf);
36 if (ret < 0)
37 return ret;
/external/libunwind/src/mips/
H A DGget_proc_info.c31 int ret; local
35 ret = dwarf_make_proc_info (&c->dwarf);
36 if (ret < 0)
37 return ret;
/external/libunwind/src/ppc64/
H A Dget_func_addr.c35 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 DGget_proc_info.c31 int ret; local
33 ret = dwarf_make_proc_info (&c->dwarf);
34 if (ret < 0)
35 return ret;
/external/libxml2/python/tests/
H A Dreader8.py20 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 Dret.s8 ret
34 ret $0
/external/ltp/testcases/kernel/security/filecaps/
H A Dinh_capped.c50 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 Dumount2.h23 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 Dcheck_setkey62 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 D4-1.c25 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 D1-2.c54 * 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 D3-1.c32 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 D3-1.c32 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 D3-1.c37 int prioceiling, ret; local
42 if ((ret = pthread_mutexattr_setprioceiling(&mta, prioceiling)) == 0) {
48 if (ret != EINVAL) {
51 ret);
H A D3-2.c37 int prioceiling, ret; local
44 if ((ret = pthread_mutexattr_setprioceiling(&mta, prioceiling)) == 0) {
50 if (ret != EINVAL) {
53 ret);

Completed in 445 milliseconds

1234567891011>>