Home
last modified time | relevance | path

Searched refs:rval (Results 1 – 25 of 155) sorted by relevance

1234567

/external/ltp/lib/
Dsafe_macros.c24 char *rval; in safe_basename() local
26 rval = basename(path); in safe_basename()
27 if (rval == NULL) { in safe_basename()
33 return rval; in safe_basename()
40 int rval; in safe_chdir() local
42 rval = chdir(path); in safe_chdir()
43 if (rval == -1) { in safe_chdir()
49 return rval; in safe_chdir()
56 int rval; in safe_close() local
58 rval = close(fildes); in safe_close()
[all …]
Dsafe_net.c87 int rval; in safe_socket() local
89 rval = socket(domain, type, protocol); in safe_socket()
91 if (rval < 0) { in safe_socket()
97 return rval; in safe_socket()
103 int rval; in safe_setsockopt() local
105 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt()
107 if (rval) { in safe_setsockopt()
113 return rval; in safe_setsockopt()
119 ssize_t rval; in safe_send() local
121 rval = send(sockfd, buf, len, flags); in safe_send()
[all …]
Dtst_safe_sysv_ipc.c27 int rval; in safe_msgget() local
29 rval = msgget(key, msgflg); in safe_msgget()
30 if (rval == -1) { in safe_msgget()
35 return rval; in safe_msgget()
41 int rval; in safe_msgsnd() local
43 rval = msgsnd(msqid, msgp, msgsz, msgflg); in safe_msgsnd()
44 if (rval == -1) { in safe_msgsnd()
50 return rval; in safe_msgsnd()
56 ssize_t rval; in safe_msgrcv() local
58 rval = msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
[all …]
Dsafe_pthread.c28 int rval; in safe_pthread_create() local
30 rval = pthread_create(thread_id, attr, thread_fn, arg); in safe_pthread_create()
32 if (rval) { in safe_pthread_create()
35 attr, thread_fn, arg, tst_strerrno(rval)); in safe_pthread_create()
38 return rval; in safe_pthread_create()
44 int rval; in safe_pthread_join() local
46 rval = pthread_join(thread_id, retval); in safe_pthread_join()
48 if (rval) { in safe_pthread_join()
51 retval, tst_strerrno(rval)); in safe_pthread_join()
54 return rval; in safe_pthread_join()
/external/ltp/testcases/kernel/syscalls/unshare/
Dunshare01.c159 int rval; in main() local
178 rval = 0; in main()
182 rval = 1; in main()
185 rval = 2; in main()
188 exit(rval); in main()
190 if (wait(&rval) == -1) in main()
193 if (rval != 0 && WIFEXITED(rval)) { in main()
194 switch (WEXITSTATUS(rval)) { in main()
216 rval = 0; in main()
220 rval = 1; in main()
[all …]
Dunshare02.c124 int rval; in main() local
142 rval = 1; in main()
146 rval = 0; in main()
148 rval = 1; in main()
151 rval = 2; in main()
154 exit(rval); in main()
156 if (wait(&rval) == -1) { in main()
160 if (rval != 0 && WIFEXITED(rval)) { in main()
161 switch (WEXITSTATUS(rval)) { in main()
183 rval = 0; in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/
D2-2.c52 int rval; in main() local
61 rval = pipe(to_parent); in main()
62 if (rval == -1) { in main()
66 rval = pipe(to_child); in main()
67 if (rval == -1) { in main()
95 int rval; in parent_process() local
103 rval = send_receive(read_pipe, write_pipe, 'a', &reply); in parent_process()
104 if (rval) { in parent_process()
105 return rval; in parent_process()
112 rval = send_receive(read_pipe, write_pipe, 'c', &reply); in parent_process()
[all …]
D2-1.c57 int rval; in main() local
66 rval = pipe(to_parent); in main()
67 if (rval == -1) { in main()
71 rval = pipe(to_child); in main()
72 if (rval == -1) { in main()
100 int rval; in parent_process() local
108 rval = send_receive(read_pipe, write_pipe, 'a', &reply); in parent_process()
109 if (rval) { in parent_process()
110 return rval; in parent_process()
141 int rval; in child_process() local
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
D2-1.c47 int rval; in main() local
54 rval = pipe(to_parent); in main()
55 if (rval == -1) { in main()
60 rval = pipe(to_child); in main()
61 if (rval == -1) { in main()
99 int rval; in parent_process() local
117 rval = send_receive(read_pipe, write_pipe, 'a', &reply); in parent_process()
118 if (rval) { in parent_process()
121 return rval; in parent_process()
131 rval = mq_close(queue); in parent_process()
[all …]
/external/ltp/include/
Dtst_safe_macros.h56 int rval; in safe_dup() local
58 rval = dup(oldfd); in safe_dup()
59 if (rval == -1) { in safe_dup()
64 return rval; in safe_dup()
226 void *rval; in safe_mmap() local
228 rval = mmap(addr, length, prot, flags, fd, offset); in safe_mmap()
229 if (rval == MAP_FAILED) { in safe_mmap()
235 return rval; in safe_mmap()
244 int rval; in safe_ftruncate() local
246 rval = ftruncate(fd, length); in safe_ftruncate()
[all …]
Dtst_safe_prw.h25 ssize_t rval; in safe_pread() local
27 rval = pread(fildes, buf, nbyte, offset); in safe_pread()
29 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pread()
35 return rval; in safe_pread()
45 ssize_t rval; in safe_pwrite() local
47 rval = pwrite(fildes, buf, nbyte, offset); in safe_pwrite()
48 if (rval == -1 || (len_strict && (size_t)rval != nbyte)) { in safe_pwrite()
54 return rval; in safe_pwrite()
/external/ltp/include/old/
Dsafe_macros.h167 void *rval; in safe_mmap() local
169 rval = mmap(addr, length, prot, flags, fd, offset); in safe_mmap()
170 if (rval == MAP_FAILED) { in safe_mmap()
177 return rval; in safe_mmap()
186 int rval; in safe_ftruncate() local
188 rval = ftruncate(fd, length); in safe_ftruncate()
189 if (rval == -1) { in safe_ftruncate()
195 return rval; in safe_ftruncate()
203 int rval; in safe_truncate() local
205 rval = truncate(path, length); in safe_truncate()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dicmp-range.ll10 %rval = icmp ne i32 %val, 0
11 ret i1 %rval
17 %rval = icmp eq i32 %val, 0
18 ret i1 %rval
27 %rval = icmp ne i32 %val, 0
28 ret i1 %rval
36 %rval = icmp ne i8 %val, 0
37 ret i1 %rval
44 %rval = icmp ugt i8 %val, 0
45 ret i1 %rval
[all …]
/external/python/cpython2/Modules/
D_json.c95 _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx);
113 encoder_listencode_list(PyEncoderObject *s, PyObject *rval, PyObject *seq, Py_ssize_t indent_level);
115 encoder_listencode_obj(PyEncoderObject *s, PyObject *rval, PyObject *obj, Py_ssize_t indent_level);
117 encoder_listencode_dict(PyEncoderObject *s, PyObject *rval, PyObject *dct, Py_ssize_t indent_level);
207 PyObject *rval; in ascii_escape_unicode() local
228 rval = PyString_FromStringAndSize(NULL, output_size); in ascii_escape_unicode()
229 if (rval == NULL) { in ascii_escape_unicode()
232 output = PyString_AS_STRING(rval); in ascii_escape_unicode()
245 Py_DECREF(rval); in ascii_escape_unicode()
254 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_unicode()
[all …]
/external/ltp/testcases/kernel/fs/fsstress/
Dfsstress.c597 int rval; in attr_list_path() local
599 rval = attr_list(name->path, buffer, buffersize, flags, cursor); in attr_list_path()
600 if (rval >= 0 || errno != ENAMETOOLONG) in attr_list_path()
601 return rval; in attr_list_path()
604 rval = attr_list_path(&newname, buffer, buffersize, flags, in attr_list_path()
609 return rval; in attr_list_path()
616 int rval; in attr_remove_path() local
618 rval = attr_remove(name->path, attrname, flags); in attr_remove_path()
619 if (rval >= 0 || errno != ENAMETOOLONG) in attr_remove_path()
620 return rval; in attr_remove_path()
[all …]
/external/e2fsprogs/contrib/
Dfsstress.c624 int rval; in attr_list_path() local
626 rval = attr_list(name->path, buffer, buffersize, flags, cursor); in attr_list_path()
627 if (rval >= 0 || errno != ENAMETOOLONG) in attr_list_path()
628 return rval; in attr_list_path()
631 rval = attr_list_path(&newname, buffer, buffersize, flags, in attr_list_path()
636 return rval; in attr_list_path()
643 int rval; in attr_remove_path() local
645 rval = attr_remove(name->path, attrname, flags); in attr_remove_path()
646 if (rval >= 0 || errno != ENAMETOOLONG) in attr_remove_path()
647 return rval; in attr_remove_path()
[all …]
/external/clang/test/CXX/special/class.inhctor/
Dp8.cpp7 constexpr A(const int&) : rval(false) {} in A()
8 constexpr A(const int&&) : rval(true) {} in A()
9 bool rval; member
21 static_assert(a0.rval && !a1.rval && b0.rval && !b1.rval, "");
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
D4-1.c71 int ret, err, i, rval, fd; in main() local
105 rval = PTS_UNRESOLVED; in main()
147 rval = PTS_UNRESOLVED; in main()
155 rval = PTS_FAIL; in main()
166 rval = PTS_FAIL; in main()
173 rval = PTS_FAIL; in main()
180 rval = PTS_FAIL; in main()
192 rval = PTS_UNRESOLVED; in main()
209 rval = PTS_PASS; in main()
211 rval = PTS_FAIL; in main()
[all …]
/external/autotest/client/tests/ltp/patches/
Dgetdents.patch132 rval = getdents(fd, dirp, count);
133 if (rval < 0) {
135 - rval *= -1;
136 - TEST_ERROR_LOG(rval);
140 - ": %s", TCID, rval, strerror(rval));
145 if (rval == 0) {
172 int rval, fd;
191 - rval = GETDENTS_ASM();
192 + rval = getdents(fd, dirp, count);
197 if (rval < 0) {
[all …]
/external/ltp/testcases/kernel/syscalls/exit/
Dexit02.c72 int rval = 0; in main() local
117 rval = 1; in main()
136 rval = 1; in main()
146 rval = 1; in main()
155 rval = 1; in main()
161 rval = 1; in main()
165 rval = 1; in main()
171 if (!rval) { in main()
/external/openssh/contrib/hpux/
Dsshd.rc36 rval=0
46 rval=1 # script FAILed
70 rval=2
78 rval=1
86 rval=1
90 exit $rval
Degd.rc38 rval=0
48 rval=1 # script FAILed
75 rval=2
85 rval=1
94 rval=1
98 exit $rval
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir02.c100 int rval, status; in main() local
134 rval = setregid(nobody_gid, nobody_gid); in main()
135 if (rval < 0) { in main()
145 rval = setreuid(nobody_uid, nobody_uid); in main()
146 if (rval < 0) { in main()
209 rval = setregid(bin_gid, bin_gid); in main()
210 if (rval < 0) { in main()
219 rval = setreuid(bin_uid, bin_uid); in main()
220 if (rval < 0) { in main()
/external/ltp/testcases/kernel/syscalls/signal/
Dsignal04.c88 sighandler_t rval, first; in main() local
111 if ((rval = signal(siglist[i], &sighandler)) == SIG_ERR) { in main()
117 first = rval; in main()
131 if ((rval = signal(siglist[i], &sighandler)) in main()
141 if (rval == first) { in main()
143 "received %p.", TCID, rval); in main()
148 siglist[i], rval, first); in main()
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
10 self.assertTrue(isinstance(rval, decimal.Decimal))
11 self.assertEqual(rval, decimal.Decimal('1.1'))
14 rval = self.loads('1', parse_int=float)
15 self.assertTrue(isinstance(rval, float))
16 self.assertEqual(rval, 1.0)
22 rval = self.loads('{ "key" : "value" , "k":"v" }')
23 self.assertEqual(rval, {"key":"value", "k":"v"})

1234567