/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
H A D | gethostbyname2_r.c | 34 int ret = gethostbyname2_r(name, AF_INET, &h, buf, sizeof(buf), &res, &err); in gethostbyname2_r_0100() local 35 EXPECT_EQ("gethostbyname2_r_0100", ret, 0); in gethostbyname2_r_0100() 51 int ret = gethostbyname2_r(name, AF_INET6, &h, buf, sizeof(buf), &res, &err); in gethostbyname2_r_0200() local 52 EXPECT_EQ("gethostbyname2_r_0200", ret, 0); in gethostbyname2_r_0200() 67 int ret = gethostbyname2_r(name, AF_INET, &h, buf, sizeof(buf), &res, &err); in gethostbyname2_r_0300() local 68 EXPECT_NE("gethostbyname2_r_0300", ret, 0); in gethostbyname2_r_0300() 82 int ret = gethostbyname2_r(name, 0, &h, buf, sizeof(buf), &res, &err); in gethostbyname2_r_0400() local 83 EXPECT_EQ("gethostbyname2_r_0400", ret, 0); in gethostbyname2_r_0400()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_key_create.c | 28 int32_t ret = pthread_setspecific(g_key, &value); in threadfuncA() local 29 EXPECT_EQ("pthread_key_create_0100_threadfuncA", ret, 0); in threadfuncA() 38 int32_t ret = pthread_setspecific(g_key, &value); in threadfuncB() local 39 EXPECT_EQ("pthread_key_create_0200_threadfuncB", ret, 0); in threadfuncB() 57 int32_t ret = pthread_key_create(&g_key, NULL); in pthread_key_create_0100() local 58 EXPECT_EQ("pthread_key_create_0100", ret, 0); in pthread_key_create_0100() 71 int32_t ret = pthread_key_create(&g_key, testfunc); in pthread_key_create_0200() local 74 EXPECT_EQ("pthread_key_create_0200", ret, 0); in pthread_key_create_0200()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | generatorReturnContextualType.js | 29 const ret = { x: 'x' }; 30 return Promise.resolve(ret); // Error 34 const ret = { x: 'x' }; 35 return Promise.resolve(ret); // Error 61 const ret = { x: 'x' };
62 return Promise.resolve(ret); // Error
65 const ret = { x: 'x' };
66 return Promise.resolve(ret); // Error
|
/third_party/selinux/libsepol/utils/ |
H A D | sepol_validate_transition.c | 16 int ret; in main() local 55 ret = sepol_validate_transition_reason_buffer(oldsid, newsid, tasksid, tclass, &reason, SHOW_GRANTED); in main() 56 switch (ret) { in main() 59 ret = 0; in main() 64 ret = 7; in main() 67 printf("sepol_validate_transition_reason_buffer returned %d errno: %s\n", ret, strerror(errno)); in main() 68 ret = 1; in main() 73 return ret; in main()
|
/third_party/vk-gl-cts/framework/delibs/dethread/unix/ |
H A D | deThreadLocalUnix.c | 59 int ret = 0; in deThreadLocal_destroy() local 60 ret = pthread_key_delete(threadLocalToKey(threadLocal)); in deThreadLocal_destroy() 61 DE_ASSERT(ret == 0); in deThreadLocal_destroy() 62 DE_UNREF(ret); in deThreadLocal_destroy() 72 int ret = 0; in deThreadLocal_set() local 73 ret = pthread_setspecific(threadLocalToKey(threadLocal), value); in deThreadLocal_set() 74 DE_ASSERT(ret == 0); in deThreadLocal_set() 75 DE_UNREF(ret); in deThreadLocal_set()
|
/third_party/vk-gl-cts/framework/delibs/dethread/win32/ |
H A D | deSemaphoreWin32.c | 60 BOOL ret = ReleaseSemaphore(handle, 1, DE_NULL); in deSemaphore_increment() local 61 DE_ASSERT(ret); in deSemaphore_increment() 62 DE_UNREF(ret); in deSemaphore_increment() 68 DWORD ret = WaitForSingleObject(handle, INFINITE); in deSemaphore_decrement() local 69 DE_ASSERT(ret == WAIT_OBJECT_0); in deSemaphore_decrement() 70 DE_UNREF(ret); in deSemaphore_decrement() 76 DWORD ret = WaitForSingleObject(handle, 0); in deSemaphore_tryDecrement() local 77 return (ret == WAIT_OBJECT_0); in deSemaphore_tryDecrement()
|
/vendor/hisilicon/hispark_pegasus/demo/udp_demo/ |
H A D | wifi_softap.c | 47 int ret; in HiWifiStartSoftap() local 66 ret = hi_wifi_softap_start(&hapd_conf, ifname, &len); in HiWifiStartSoftap() 67 if (ret != HISI_OK) { in HiWifiStartSoftap() 91 int ret; in HiWifiStopSoftap() local 96 ret = hi_wifi_softap_stop(); in HiWifiStopSoftap() 97 if (ret != HISI_OK) { in HiWifiStopSoftap() 101 ret = hi_wifi_deinit(); in HiWifiStopSoftap() 102 if (ret != HISI_OK) { in HiWifiStopSoftap()
|
/third_party/ffmpeg/libavformat/ |
H A D | avc.c | 132 int ret = avio_open_dyn_buf(&pb); in ff_avc_parse_nal_units_buf() local 133 if(ret < 0) in ff_avc_parse_nal_units_buf() 134 return ret; in ff_avc_parse_nal_units_buf() 148 int ret, nb_sps = 0, nb_pps = 0, nb_sps_ext = 0; in ff_isom_write_avcc() local 160 ret = ff_avc_parse_nal_units_buf(data, &buf, &len); in ff_isom_write_avcc() 161 if (ret < 0) in ff_isom_write_avcc() 162 return ret; in ff_isom_write_avcc() 166 ret = avio_open_dyn_buf(&sps_pb); in ff_isom_write_avcc() 167 if (ret < 0) in ff_isom_write_avcc() 169 ret in ff_isom_write_avcc() 370 int i, j, ret, rbsp_size, aspect_ratio_idc, pic_order_cnt_type; ff_avc_decode_sps() local [all...] |
H A D | av1.c | 92 int len, off, ret; in ff_av1_filter_obus_buf() local 94 len = ret = av1_filter_obus(NULL, in, *size, &off); in ff_av1_filter_obus_buf() 95 if (ret < 0) { in ff_av1_filter_obus_buf() 96 return ret; in ff_av1_filter_obus_buf() 112 ret = av1_filter_obus(&pb.pub, in, *size, NULL); in ff_av1_filter_obus_buf() 113 av_assert1(ret == len); in ff_av1_filter_obus_buf() 211 int size_bits, ret; in parse_sequence_header() local 217 ret = init_get_bits(&gb, buf, size_bits); in parse_sequence_header() 218 if (ret < 0) in parse_sequence_header() 219 return ret; in parse_sequence_header() 345 int ret, version = buf[0] & 0x7F; ff_av1_parse_seq_header() local 406 int ret, nb_seq = 0, seq_size, meta_size; ff_isom_write_av1c() local [all...] |
H A D | idcin.c | 160 int ret; in idcin_read_header() local 209 if ((ret = ff_get_extradata(s, st->codecpar, pb, HUFFMAN_TABLE_SIZE)) < 0) in idcin_read_header() 210 return ret; in idcin_read_header() 253 int ret; in idcin_read_packet() local 273 ret = avio_read(pb, palette_buffer, 768); in idcin_read_packet() 274 if (ret < 0) { in idcin_read_packet() 275 return ret; in idcin_read_packet() 276 } else if (ret != 768) { in idcin_read_packet() 310 ret= av_get_packet(pb, pkt, chunk_size); in idcin_read_packet() 311 if (ret < in idcin_read_packet() 357 int64_t ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET); idcin_read_seek() local [all...] |
/third_party/ltp/testcases/kernel/pty/ |
H A D | pty04.c | 139 ssize_t ret = write(fd, data + off, size - off); in try_async_write() local 141 if (ret < 0) in try_async_write() 147 *done += ret; in try_async_write() 155 ssize_t ret = read(fd, data + off, size - off); in try_async_read() local 157 if (ret < 0) in try_async_read() 163 *done += ret; in try_async_read() 186 ssize_t ret; in do_pty() local 210 ret = retry_async_write(ptmx, data, len); in do_pty() 211 if (ret < 0) in do_pty() 215 ret in do_pty() 336 ssize_t ret, n = 0; try_sync_read() local 356 ssize_t ret, n = 0; try_sync_write() local [all...] |
/third_party/node/deps/openssl/openssl/apps/ |
H A D | fipsinstall.c | 80 int ret = 0; in do_mac() local 95 ret = 1; in do_mac() 97 return ret; in do_mac() 102 int ret = 0; in load_fips_prov_and_run_self_test() local 110 ret = 1; in load_fips_prov_and_run_self_test() 113 return ret; in load_fips_prov_and_run_self_test() 119 int ret; in print_mac() local 125 ret = BIO_printf(bio, "%s = %s\n", label, hexstr); in print_mac() 127 return ret; in print_mac() 155 int ret in write_config_fips_section() local 237 int ret = 0; verify_config() local 294 int ret = 1, verify = 0, gotkey = 0, gotdigest = 0, self_test_onload = 0; fipsinstall_main() local 546 int ret = 0; self_test_events() local [all...] |
/third_party/openssl/crypto/conf/ |
H A D | conf_mod.c | 123 int ret, i; in CONF_modules_load() local 165 ret = module_run(cnf, vl->name, vl->value, flags); in CONF_modules_load() 167 vl->name, vl->value, ret); in CONF_modules_load() 168 if (ret <= 0) in CONF_modules_load() 171 return ret; in CONF_modules_load() 185 int ret = 0, diagnostics = 0; in CONF_modules_load_file_ex() local 203 ret = 1; in CONF_modules_load_file_ex() 208 ret = CONF_modules_load(conf, appname, flags); in CONF_modules_load_file_ex() 217 ret = 1; in CONF_modules_load_file_ex() 219 if (ret > in CONF_modules_load_file_ex() 247 int ret; module_run() local 402 int ret = 1; module_init() local 659 int ret; CONF_parse_list() local [all...] |
/third_party/openssl/apps/ |
H A D | fipsinstall.c | 80 int ret = 0; in do_mac() local 95 ret = 1; in do_mac() 97 return ret; in do_mac() 102 int ret = 0; in load_fips_prov_and_run_self_test() local 110 ret = 1; in load_fips_prov_and_run_self_test() 113 return ret; in load_fips_prov_and_run_self_test() 119 int ret; in print_mac() local 125 ret = BIO_printf(bio, "%s = %s\n", label, hexstr); in print_mac() 127 return ret; in print_mac() 155 int ret in write_config_fips_section() local 237 int ret = 0; verify_config() local 294 int ret = 1, verify = 0, gotkey = 0, gotdigest = 0, self_test_onload = 0; fipsinstall_main() local 546 int ret = 0; self_test_events() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_tnc.c | 89 struct eap_method_ret *ret, u8 id) in eap_tnc_build_msg() 95 ret->ignore = FALSE; in eap_tnc_build_msg() 97 ret->allowNotifications = TRUE; in eap_tnc_build_msg() 126 ret->methodState = METHOD_MAY_CONT; in eap_tnc_build_msg() 127 ret->decision = DECISION_FAIL; in eap_tnc_build_msg() 168 struct eap_method_ret *ret, in eap_tnc_process_fragment() 177 ret->ignore = TRUE; in eap_tnc_process_fragment() 187 ret->ignore = TRUE; in eap_tnc_process_fragment() 202 struct eap_method_ret *ret, in eap_tnc_process() 222 ret in eap_tnc_process() 88 eap_tnc_build_msg(struct eap_tnc_data *data, struct eap_method_ret *ret, u8 id) eap_tnc_build_msg() argument 167 eap_tnc_process_fragment(struct eap_tnc_data *data, struct eap_method_ret *ret, u8 id, u8 flags, u32 message_length, const u8 *buf, size_t len) eap_tnc_process_fragment() argument 201 eap_tnc_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) eap_tnc_process() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_tnc.c | 89 struct eap_method_ret *ret, u8 id) in eap_tnc_build_msg() 95 ret->ignore = false; in eap_tnc_build_msg() 97 ret->allowNotifications = true; in eap_tnc_build_msg() 126 ret->methodState = METHOD_MAY_CONT; in eap_tnc_build_msg() 127 ret->decision = DECISION_FAIL; in eap_tnc_build_msg() 168 struct eap_method_ret *ret, in eap_tnc_process_fragment() 177 ret->ignore = true; in eap_tnc_process_fragment() 187 ret->ignore = true; in eap_tnc_process_fragment() 202 struct eap_method_ret *ret, in eap_tnc_process() 222 ret in eap_tnc_process() 88 eap_tnc_build_msg(struct eap_tnc_data *data, struct eap_method_ret *ret, u8 id) eap_tnc_build_msg() argument 167 eap_tnc_process_fragment(struct eap_tnc_data *data, struct eap_method_ret *ret, u8 id, u8 flags, u32 message_length, const u8 *buf, size_t len) eap_tnc_process_fragment() argument 201 eap_tnc_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData) eap_tnc_process() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | wpa_cli.c | 238 int ret; in _wpa_ctrl_command() local 251 ret = wpa_ctrl_request(ctrl, cmd, os_strlen(cmd), buf, &len, in _wpa_ctrl_command() 253 if (ret == -2) { in _wpa_ctrl_command() 256 } else if (ret < 0) { in _wpa_ctrl_command() 785 int ret; in wpa_cli_cmd_wps_nfc_tag_read() local 801 ret = wpa_ctrl_command(ctrl, buf); in wpa_cli_cmd_wps_nfc_tag_read() 804 return ret; in wpa_cli_cmd_wps_nfc_tag_read() 1045 int i, ret; in wpa_cli_cmd_identity() local 1055 ret = os_snprintf(pos, end - pos, WPA_CTRL_RSP "IDENTITY-%s:%s", in wpa_cli_cmd_identity() 1057 if (os_snprintf_error(end - pos, ret)) { in wpa_cli_cmd_identity() 1078 int i, ret; wpa_cli_cmd_sim_kc() local 1110 int i, ret; wpa_cli_cmd_sim_sres() local 1142 int i, ret; wpa_cli_cmd_param_ki() local 1174 int i, ret; wpa_cli_cmd_param_opc() local 1206 int i, ret; wpa_cli_cmd_param_amf() local 1238 int i, ret; wpa_cli_cmd_param_sqn() local 1271 int i, ret; wpa_cli_cmd_password() local 1305 int i, ret; wpa_cli_cmd_new_password() local 1338 int i, ret; wpa_cli_cmd_pin() local 1370 int i, ret; wpa_cli_cmd_otp() local 1403 int i, ret; wpa_cli_cmd_sim() local 1436 int i, ret; wpa_cli_cmd_psk_passphrase() local 1469 int i, ret; wpa_cli_cmd_passphrase() local 2151 int ret; wpa_ctrl_command_sta() local 2656 int ret; wpa_ctrl_command_p2p_peer() local 3367 int ret, id = -1; wpa_ctrl_command_bss() local 4398 int ret = 0; wpa_request() local 4899 int ret; update_bssid_list() local 4930 int ret; update_ifnames() local 4962 int ret; update_creds() local 4994 int ret; update_networks() local 5206 int ret; wpa_cli_get_default_ifname() local 5233 int ret = 0; main() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | libmp3lame.c | 95 int ret; in mp3lame_encode_init() local 142 ret = AVERROR_EXTERNAL; in mp3lame_encode_init() 159 ret = AVERROR(ENOMEM); in mp3lame_encode_init() 165 ret = realloc_buffer(s); in mp3lame_encode_init() 166 if (ret < 0) in mp3lame_encode_init() 171 ret = AVERROR(ENOMEM); in mp3lame_encode_init() 179 return ret; in mp3lame_encode_init() 195 int len, ret, ch, discard_padding; in mp3lame_encode_frame() local 238 ret = realloc_buffer(s); in mp3lame_encode_frame() 239 if (ret < in mp3lame_encode_frame() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_fps.c | 180 int ret; in config_props() local 187 ret = av_expr_parse_and_eval(&res, s->framerate, in config_props() 190 if (ret < 0) in config_props() 191 return ret; in config_props() 222 int ret; in read_frame() local 228 ret = ff_inlink_consume_frame(inlink, &frame); in read_frame() 230 av_assert1(ret); in read_frame() 231 if (ret < 0) in read_frame() 232 return ret; in read_frame() 319 int ret; in activate() local [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | f_ether.c | 273 err_t ret; in netdev_register() local 296 ret = netifapi_netif_add(usb_netif, &ipaddr, &netmask, &gw); in netdev_register() 297 if (ret) in netdev_register() 299 usb_err("%s %d, add netif failed, ret:%d\n", __FUNCTION__, __LINE__, ret); in netdev_register() 320 errno_t ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_fether_device_desc, sizeof(g_fether_device_desc)); in rndis_mkdevdesc() local 321 if (ret != EOK) in rndis_mkdevdesc() 323 usb_err("memcpy_s fail!, ret:%d\n", ret); in rndis_mkdevdesc() 332 errno_t ret; in rndis_mkcfgdesc() local 364 errno_t ret; rndis_mkstrdesc() local [all...] |
/third_party/libdrm/freedreno/ |
H A D | freedreno_bo.c | 84 int ret; in bo_new() local 90 ret = dev->funcs->bo_new_handle(dev, size, flags, &handle); in bo_new() 91 if (ret) in bo_new() 150 int ret, size; in fd_bo_from_dmabuf() local 155 ret = drmPrimeFDToHandle(dev->fd, fd, &handle); in fd_bo_from_dmabuf() 156 if (ret) { in fd_bo_from_dmabuf() 278 int ret; in fd_bo_get_name() local 280 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in fd_bo_get_name() 281 if (ret) { in fd_bo_get_name() 282 return ret; in fd_bo_get_name() 303 int ret, prime_fd; fd_bo_dmabuf() local 326 int ret; fd_bo_map() local [all...] |
/third_party/mesa3d/src/etnaviv/drm/ |
H A D | etnaviv_bo.c | 190 int ret; in etna_bo_new() local 200 ret = drmCommandWriteRead(dev->fd, DRM_ETNAVIV_GEM_NEW, in etna_bo_new() 202 if (ret) in etna_bo_new() 268 int ret, size; in etna_bo_from_dmabuf() local 277 ret = drmPrimeFDToHandle(dev->fd, fd, &handle); in etna_bo_from_dmabuf() 278 if (ret) { in etna_bo_from_dmabuf() 335 int ret; in etna_bo_get_name() local 337 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in etna_bo_get_name() 338 if (ret) { in etna_bo_get_name() 339 return ret; in etna_bo_get_name() 363 int ret, prime_fd; etna_bo_dmabuf() local 390 int ret; etna_bo_map() local [all...] |
/third_party/node/lib/internal/crypto/ |
H A D | cipher.js | 186 const ret = this[kHandle].update(data, inputEncoding); 190 return this._decoder.write(ret); 193 return ret; 199 const ret = this[kHandle].final(); 203 return this._decoder.end(ret); 206 return ret; 217 const ret = this[kHandle].getAuthTag(); 218 if (ret === undefined) 220 return ret; 321 const ret [all...] |
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | init.c | 137 BOOL ret; in DEFINE_RUN_ONCE_STATIC() local 140 ret = GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS in DEFINE_RUN_ONCE_STATIC() 147 (ret == TRUE ? "No!" : "Yes.")); in DEFINE_RUN_ONCE_STATIC() 148 return (ret == TRUE) ? 1 : 0; in DEFINE_RUN_ONCE_STATIC() 183 int ret = 1; in DEFINE_RUN_ONCE_STATIC() local 190 ret = ossl_err_load_crypto_strings(); in DEFINE_RUN_ONCE_STATIC() 192 return ret; in DEFINE_RUN_ONCE_STATIC() 249 int ret = ossl_config_int(NULL); in DEFINE_RUN_ONCE_STATIC() local 252 return ret; in DEFINE_RUN_ONCE_STATIC() 256 int ret in DEFINE_RUN_ONCE_STATIC_ALT() local 583 int ret; OPENSSL_init_crypto() local 664 BOOL ret; OPENSSL_atexit() local [all...] |
/third_party/node/deps/openssl/openssl/apps/lib/ |
H A D | s_socket.c | 86 int ret; in init_client() local 91 ret = BIO_lookup_ex(host, port, BIO_LOOKUP_CLIENT, family, type, protocol, in init_client() 93 if (ret == 0) { in init_client() 99 ret = BIO_lookup_ex(bindhost, bindport, BIO_LOOKUP_CLIENT, in init_client() 101 if (ret == 0) { in init_client() 107 ret = 0; in init_client() 187 ret = 0; in init_client() 193 ret = 1; in init_client() 200 return ret; in init_client() 273 int ret in do_server() local 436 int ret; do_ssl_shutdown() local [all...] |