Home
last modified time | relevance | path

Searched refs:ret_val (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/fmtmsg/
Dfmtmsg01.c77 int fd, ret_val; in main() local
90 ret_val = fmtmsg(MM_PRINT | MM_SOFT, "LTP:fmtmsg", MM_INFO, in main()
96 if (ret_val != 0) { in main()
97 fprintf(temp, "fmtmsg returned %d, expected 0\n\n", ret_val); in main()
133 ret_val = addseverity(3, "INVALID"); in main()
134 if (ret_val != MM_NOTOK) { in main()
136 ret_val); in main()
147 ret_val = addseverity(5, "LTP_TEST"); in main()
148 if (ret_val != MM_OK) { in main()
150 ret_val); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/nftw/
Dtest.c192 int ret_val; in test4A() local
199 if ((ret_val = nftw(path, test_func4, MAX_FD, FTW_DEPTH)) == -1) { in test4A()
204 if (ret_val != 999) { in test4A()
228 int ret_val; in test5A() local
235 if ((ret_val = nftw(path, test_func4, MAX_FD, 0)) == -1) { in test5A()
240 if (ret_val != 999) { in test5A()
264 int ret_val; in test6A() local
278 ret_val = nftw(path, test_func5, MAX_FD, FTW_CHDIR); in test6A()
279 if (ret_val == -1) { in test6A()
284 if ((ret_val == 998) || (ret_val == 999)) { in test6A()
[all …]
Dtest64.c191 int ret_val; in test4A() local
199 if ((ret_val = nftw64(path, test_func4, MAX_FD, FTW_DEPTH)) == -1) { in test4A()
204 if (ret_val != 999) { in test4A()
228 int ret_val; in test5A() local
236 if ((ret_val = nftw64(path, test_func4, MAX_FD, 0)) == -1) { in test5A()
241 if (ret_val != 999) { in test5A()
265 int ret_val; in test6A() local
280 ret_val = nftw64(path, test_func5, MAX_FD, FTW_CHDIR); in test6A()
281 if (ret_val == -1) { in test6A()
286 if ((ret_val == 998) || (ret_val == 999)) { in test6A()
[all …]
/third_party/jerryscript/jerry-main/
Dmain-unix.c296 jerry_value_t ret_val = jerry_parse (resource_name_p, in wait_for_source_callback() local
302 if (!jerry_value_is_error (ret_val)) in wait_for_source_callback()
304 jerry_value_t func_val = ret_val; in wait_for_source_callback()
305 ret_val = jerry_run (func_val); in wait_for_source_callback()
309 return ret_val; in wait_for_source_callback()
903 jerry_value_t ret_val = jerry_parse (NULL, in main() local
909 if (!jerry_value_is_error (ret_val)) in main()
911 jerry_value_t func_val = ret_val; in main()
912 ret_val = jerry_run (func_val); in main()
916 if (!jerry_value_is_error (ret_val)) in main()
[all …]
/third_party/jerryscript/targets/zephyr/src/
Dmain-zephyr.c49 jerry_value_t ret_val; in shell_cmd_handler() local
51 ret_val = jerry_eval ((jerry_char_t *) source_buffer, in shell_cmd_handler()
55 if (jerry_value_is_error (ret_val)) in shell_cmd_handler()
63 ret_val = jerry_get_value_from_error (ret_val, true); in shell_cmd_handler()
70 &ret_val, in shell_cmd_handler()
75 jerry_release_value (ret_val); in shell_cmd_handler()
/third_party/node/test/js-native-api/
Dcommon.h39 #define NODE_API_ASSERT_BASE(env, assertion, message, ret_val) \ argument
46 return ret_val; \
50 #define NODE_API_NOGC_ASSERT_BASE(assertion, message, ret_val) \ argument
55 return ret_val; \
72 #define NODE_API_CALL_BASE(env, the_call, ret_val) \ argument
76 return ret_val; \
80 #define NODE_API_NOGC_CALL_BASE(env, the_call, ret_val) \ argument
84 return ret_val; \
/third_party/selinux/libselinux/src/
Dsetrans_client.c134 receive_response(int fd, uint32_t function, char **outdata, int32_t * ret_val) in receive_response() argument
150 resp_hdr[2].iov_base = ret_val; in receive_response()
151 resp_hdr[2].iov_len = sizeof(*ret_val); in receive_response()
154 if (count != (sizeof(func) + sizeof(data_size) + sizeof(*ret_val))) { in receive_response()
184 int32_t ret_val; in raw_to_trans_context() local
197 ret = receive_response(fd, RAW_TO_TRANS_CONTEXT, transp, &ret_val); in raw_to_trans_context()
201 ret = ret_val; in raw_to_trans_context()
210 int32_t ret_val; in trans_to_raw_context() local
222 ret = receive_response(fd, TRANS_TO_RAW_CONTEXT, rawp, &ret_val); in trans_to_raw_context()
226 ret = ret_val; in trans_to_raw_context()
[all …]
/third_party/ltp/testcases/kernel/syscalls/kill/
Dkill12.c78 int ret_val = 0; in main() local
120 ret_val = 1; in main()
148 ret_val = 1; in main()
154 ret_val = 1; in main()
167 ret_val = 1; in main()
173 ret_val = 1; in main()
177 if (ret_val) in main()
/third_party/ltp/testcases/kernel/fs/inode/
Dinode01.c105 int ret_val; in main() local
137 ret_val = mkdir(path_string, DIRECTORY_MODE); in main()
139 if (ret_val == -1) { in main()
306 int ret_val = 0; in generate() local
403 ret_val = mkdir(new_string, DIRECTORY_MODE); in generate()
405 if (ret_val != 0) { in generate()
435 if (new_ret_val < ret_val) in generate()
436 ret_val = new_ret_val; in generate()
446 return (ret_val); in generate()
653 int ret_val, mod; in mode() local
[all …]
Dinode02.c242 int ret_val; in tree() local
258 ret_val = mkdir(path_string, DIRECTORY_MODE); in tree()
260 if (ret_val == -1) { in tree()
403 int ret_val = 0; in generate() local
503 ret_val = mkdir(new_string, DIRECTORY_MODE); in generate()
505 if (ret_val != 0) { in generate()
536 if (new_ret_val < ret_val) in generate()
537 ret_val = new_ret_val; in generate()
547 return (ret_val); in generate()
755 int ret_val, mod; in mode() local
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/
D2-1.c39 int ret_val; in main() local
62 ret_val = pthread_join(new_th, NULL); in main()
64 if (ret_val != EINVAL) { in main()
69 ret_val = pthread_detach(new_th); in main()
71 if (ret_val != EINVAL) { in main()
D4-1.c27 int ret_val, invalid_val; in main() local
37 ret_val = pthread_attr_setdetachstate(&new_attr, invalid_val); in main()
39 if (ret_val != EINVAL) { in main()
40 printf("Test FAILED: Returned %d instead of EINVAL\n", ret_val); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/
D2-1.c57 int ret_val; in main() local
77 ret_val = pthread_detach(new_th); in main()
79 if (ret_val != 0) { in main()
81 if (ret_val == EINVAL) { in main()
88 ret_val); in main()
/third_party/rust/crates/clap/src/output/
Dusage.rs303 let mut ret_val = Vec::new(); in get_args() localVariable
305 ret_val.extend(required_opts); in get_args()
306 ret_val.extend(required_groups); in get_args()
309 ret_val.push(pos); in get_args()
312 debug!("Usage::get_args: ret_val={:?}", ret_val); in get_args()
313 ret_val in get_args()
431 let mut ret_val = Vec::new(); in get_required_usage_from() localVariable
432 ret_val.extend(required_opts); in get_required_usage_from()
433 ret_val.extend(required_groups); in get_required_usage_from()
435 ret_val.push(pos); in get_required_usage_from()
[all …]
/third_party/ltp/lib/
Dtst_tmpdir.c147 int ret_val = 0; in purge_dir() local
186 ret_val = -1; in purge_dir()
190 return ret_val; in purge_dir()
195 int ret_val = 0; in rmobj() local
203 ret_val = purge_dir(obj, errmsg); in rmobj()
207 if (ret_val == -1) in rmobj()
/third_party/openh264/codec/encoder/core/mips/
Dscore_mmi.c57 int ret_val = 0; in WelsGetNoneZeroCount_mmi() local
80 : [ret_val] "=r"((int)ret_val) in WelsGetNoneZeroCount_mmi()
85 return ret_val; in WelsGetNoneZeroCount_mmi()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/typedarray/
Decma-builtin-typedarray.c149 ecma_value_t ret_val = ecma_typedarray_create_object_with_length (arguments_list_len, in ecma_builtin_typedarray_of() local
155 if (ECMA_IS_VALUE_ERROR (ret_val)) in ecma_builtin_typedarray_of()
157 return ret_val; in ecma_builtin_typedarray_of()
161 ecma_object_t *ret_obj_p = ecma_get_object_from_value (ret_val); in ecma_builtin_typedarray_of()
182 return ret_val; in ecma_builtin_typedarray_of()
/third_party/jerryscript/jerry-ext/handler/
Dhandler-print.c50 jerry_value_t ret_val = jerry_create_undefined (); in jerryx_handler_print() local
68 ret_val = str_val; in jerryx_handler_print()
122 if (args_cnt == 0 || jerry_value_is_error (ret_val)) in jerryx_handler_print()
127 return ret_val; in jerryx_handler_print()
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_enabled/
Dht_enabled.c24 int ret_val = 1; in main() local
29 ret_val = check_ht_capability(); in main()
31 return ret_val; in main()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-array.c417 ecma_value_t ret_val = ecma_op_function_construct (ecma_get_object_from_value (this_arg), in ecma_builtin_array_object_of() local
422 if (ECMA_IS_VALUE_ERROR (ret_val)) in ecma_builtin_array_object_of()
425 return ret_val; in ecma_builtin_array_object_of()
429 ecma_object_t *obj_p = ecma_get_object_from_value (ret_val); in ecma_builtin_array_object_of()
449 ret_val = ecma_op_object_put (obj_p, in ecma_builtin_array_object_of()
456 if (ECMA_IS_VALUE_ERROR (ret_val)) in ecma_builtin_array_object_of()
459 return ret_val; in ecma_builtin_array_object_of()
/third_party/jerryscript/tests/benchmarks/jerry/
Dfunction_loop.js30 var ret_val = cached_n_cached + cached_n_cached;
33 return ret_val + ret_val;
/third_party/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/
Dftrace_trace_options.sh35 ret_val=0
48 ret_val=$?
51 if [ $ret_val -ne 0 ]; then
/third_party/googletest/googletest/samples/
Dsample9_unittest.cc127 int ret_val = RUN_ALL_TESTS(); in main() local
146 if (unexpectedly_failed_tests == 0) ret_val = 0; in main()
148 return ret_val; in main()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-lex-env.c347 ecma_value_t ret_val; in ecma_op_delete_binding() local
351 ret_val = ECMA_VALUE_TRUE; in ecma_op_delete_binding()
359 ret_val = ECMA_VALUE_FALSE; in ecma_op_delete_binding()
365 ret_val = ECMA_VALUE_TRUE; in ecma_op_delete_binding()
369 return ret_val; in ecma_op_delete_binding()
/third_party/glslang/Test/
DfloatBitsToInt.vert9 int ret_val = floatBitsToInt(value);
10 if (expected_value != ret_val){ result = vec4(0.0, 0.0, 0.0, 0.0); }

1234