/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_rmdirrace.c | 68 int res, fd, quit; in race() local 77 res = rump_sys_chdir(path); in race() 78 if (res == -1) in race() 84 if (res != 0) in race() 87 if (res != 0) in race() 94 res = pthread_join(th2, NULL); in race() 95 if (res != 0) in race() 97 res = pthread_join(th1, NULL); in race() 98 if (res != 0) in race() 101 res = rump_sys_fchdir(fd); in race() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller67.sh | 55 intptr_t res = 0; 64 if (res != -1) 65 r[0] = res; 68 if (res != -1) 69 r[1] = res; 72 if (res != -1) 73 r[2] = res; 81 if (res != -1) 82 r[3] = res; 88 if (res != -1) [all …]
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | tokenize.c | 109 token_list_t * res; in alloc_token_list() local 136 res = malloc(sizeof(*res) + (size_t)(pz - str) in alloc_token_list() 140 if (res == NULL) in alloc_token_list() 142 else res->tkn_list[0] = (ch_t *)(res->tkn_list + (max_token_ct - 1)); in alloc_token_list() 144 return res; in alloc_token_list() 226 if (res == NULL) in ao_string_tokenize() 227 return res; in ao_string_tokenize() 230 res->tkn_ct = 0; in ao_string_tokenize() 233 res->tkn_list[ res->tkn_ct++ ] = pzDest; in ao_string_tokenize() 280 res->tkn_list[ res->tkn_ct ] = NULL; in ao_string_tokenize() [all …]
|
/freebsd/contrib/netbsd-tests/fs/common/ |
H A D | fstest_rumpfs.c | 51 int res; in rumpfs_fstest_newfs() local 55 if (res == -1) in rumpfs_fstest_newfs() 56 return res; in rumpfs_fstest_newfs() 71 int res; in rumpfs_fstest_mount() local 73 res = rump_sys_mkdir(path, 0777); in rumpfs_fstest_mount() 74 if (res == -1) in rumpfs_fstest_mount() 75 return res; in rumpfs_fstest_mount() 83 int res; in rumpfs_fstest_unmount() local 85 res = rump_sys_unmount(path, flags); in rumpfs_fstest_unmount() 86 if (res == -1) in rumpfs_fstest_unmount() [all …]
|
/freebsd/sys/dev/puc/ |
H A D | pucdata.c | 1377 intptr_t *res) in puc_config_amc() argument 1395 intptr_t *res) in puc_config_diva() argument 1448 intptr_t *res) in puc_config_moxa() argument 1607 *res = 0x2f8; in puc_config_syba() 1610 *res = 0x2e8; in puc_config_syba() 1613 *res = 0x3f8; in puc_config_syba() 1616 *res = 0x3e8; in puc_config_syba() 1619 *res = 0x278; in puc_config_syba() 1786 *res = 0x200; in puc_config_oxford_pcie() 1844 *res = (*res == PUC_TYPE_SERIAL) ? (port & 3) * 8 : 0; in puc_config_sunix() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cpp | 54 return res; in INTERCEPTOR() 62 return res; in INTERCEPTOR() 75 return res; in INTERCEPTOR() 83 return res; in INTERCEPTOR() 91 return res; in INTERCEPTOR() 111 return res; in INTERCEPTOR() 119 return res; in INTERCEPTOR() 128 return res; in INTERCEPTOR() 136 return res; in INTERCEPTOR() 144 return res; in INTERCEPTOR() [all …]
|
/freebsd/contrib/ncurses/form/ |
H A D | fty_generic.c | 112 FIELDTYPE *res = (FIELDTYPE *)0; in _nc_generic_fieldtype() local 127 if (res) in _nc_generic_fieldtype() 129 *res = *_nc_Default_FieldType; in _nc_generic_fieldtype() 134 res->freearg = freecallback; in _nc_generic_fieldtype() 135 res->enum_next.gnext = next; in _nc_generic_fieldtype() 136 res->enum_prev.gprev = prev; in _nc_generic_fieldtype() 146 returnFieldType(res); in _nc_generic_fieldtype() 207 return res; in GenericArgument() 283 WINDOW *res = (WINDOW *)0; in _nc_form_cursor() local 289 res = form->w; in _nc_form_cursor() [all …]
|
/freebsd/usr.sbin/keyserv/ |
H A D | keyserv.c | 331 static cryptkeyres res; in key_encrypt_pk_2_svc_prog() local 351 return (&res); in key_encrypt_pk_2_svc_prog() 357 static cryptkeyres res; in key_decrypt_pk_2_svc_prog() local 377 return (&res); in key_decrypt_pk_2_svc_prog() 439 res.status = pk_get_conv_key(uid, arg, &res); in key_get_conv_2_svc_prog() 451 return (&res); in key_get_conv_2_svc_prog() 458 static cryptkeyres res; in key_encrypt_1_svc_prog() local 478 return (&res); in key_encrypt_1_svc_prog() 504 return (&res); in key_decrypt_1_svc_prog() 533 static getcredres res; in key_getcred_1_svc_prog() local [all …]
|
/freebsd/tools/test/gpioevents/ |
H A D | gpioevents.c | 232 if (res < 0) in run_read() 257 int res; in run_poll() local 295 int res; in run_select() local 383 ssize_t res; in run_aio_read() local 412 if (res < 0) in run_aio_read() 417 if (res < 0) in run_aio_read() 420 if (res < 0) in run_aio_read() 437 int res; in run_sigio() local 449 if (res < 0) in run_sigio() 453 if (res < 0) in run_sigio() [all …]
|
/freebsd/contrib/ldns/drill/ |
H A D | chasetrace.c | 153 ldns_resolver *res = NULL; in do_trace() local 166 res = ldns_resolver_new(); in do_trace() 168 if (!res) { in do_trace() 175 ldns_resolver_set_ip6(res, in do_trace() 177 ldns_resolver_set_port(res, in do_trace() 179 ldns_resolver_set_debug(res, in do_trace() 183 ldns_resolver_set_fail(res, in do_trace() 289 res, global_dns_root); in do_trace() 312 if (res) { in do_trace() 315 ldns_resolver_free(res); in do_trace() [all …]
|
/freebsd/crypto/openssl/crypto/ffc/ |
H A D | ffc_params_validate.c | 54 int *res, BN_GENCB *cb) in ossl_ffc_params_FIPS186_4_validate() argument 77 *res = FFC_CHECK_INVALID_PQ; in ossl_ffc_params_FIPS186_2_validate() 105 if (res == NULL) in ossl_ffc_params_simple_validate() 106 res = &tmpres; in ossl_ffc_params_simple_validate() 117 res, NULL); in ossl_ffc_params_simple_validate() 121 res, NULL); in ossl_ffc_params_simple_validate() 124 && (*res & FFC_ERROR_NOT_SUITABLE_GENERATOR) != 0) { in ossl_ffc_params_simple_validate() 140 int paramstype, int *res) in ossl_ffc_params_full_validate() argument 147 if (res == NULL) in ossl_ffc_params_full_validate() 148 res = &tmpres; in ossl_ffc_params_full_validate() [all …]
|
/freebsd/contrib/libcbor/test/ |
H A D | uint_test.c | 14 struct cbor_load_result res; variable 24 number = cbor_load(data1, 2, &res); in test_very_short_int() 30 assert_true(res.error.code == 0); in test_very_short_int() 31 assert_true(res.read == 1); in test_very_short_int() 50 assert_true(res.error.code == 0); in test_short_int() 51 assert_true(res.read == 2); in test_short_int() 64 assert_true(res.error.code == 0); in test_half_int() 65 assert_true(res.read == 3); in test_half_int() 78 assert_true(res.error.code == 0); in test_int() 79 assert_true(res.read == 5); in test_int() [all …]
|
/freebsd/contrib/wpa/src/fst/ |
H A D | fst_session.c | 273 int res; in fst_session_send_action() local 330 int res; in fst_session_send_tear_down() local 346 if (!res) in fst_session_send_tear_down() 682 os_memset(&res, 0, sizeof(res)); in fst_session_handle_ack_request() 814 int res; in fst_session_initiate_setup() local 964 os_memset(&res, 0, sizeof(res)); in fst_session_respond() 971 res.stie.length = sizeof(res.stie) - 2; in fst_session_respond() 1431 os_memset(&res, 0, sizeof(res)); in fst_test_req_send_fst_response() 1445 res.stie.length = sizeof(res.stie) - 2; in fst_test_req_send_fst_response() 1467 res.stie.new_band_id = res.stie.old_band_id; in fst_test_req_send_fst_response() [all …]
|
/freebsd/bin/pax/ |
H A D | buf_subs.c | 204 int res; in appnd_start() local 304 int res; in rd_sync() local 387 off_t res; in rd_skip() local 440 res -= cnt; in rd_skip() 513 int res; in rd_wrbuf() local 600 int res = 0; in wr_rdfile() local 624 if (res < 0) in wr_rdfile() 662 int res = 0; in rd_wrfile() local 706 cnt = res; in rd_wrfile() 750 int res = 0; in cp_file() local [all …]
|
/freebsd/lib/libc/rpc/ |
H A D | key_call.c | 134 cryptkeyres res; in key_encryptsession_pk() local 155 cryptkeyres res; in key_decryptsession_pk() local 176 cryptkeyres res; in key_encryptsession() local 196 cryptkeyres res; in key_decryptsession() local 244 cryptkeyres res; in key_get_conv() local 421 cryptkeyres *res; in key_call() local 423 *(cryptkeyres*)rslt = *res; in key_call() 426 cryptkeyres *res; in key_call() local 428 *(cryptkeyres*)rslt = *res; in key_call() 431 des_block *res; in key_call() local [all …]
|
/freebsd/sys/kgssapi/ |
H A D | gss_ip_to_dns.c | 47 struct ip_to_dns_res res; in gss_ip_to_dns() local 61 bzero(&res, sizeof(res)); in gss_ip_to_dns() 62 stat = gssd_ip_to_dns_1(&args, &res, cl); in gss_ip_to_dns() 69 if (res.major_status != GSS_S_COMPLETE) { in gss_ip_to_dns() 70 *minor_status = res.minor_status; in gss_ip_to_dns() 71 return (res.major_status); in gss_ip_to_dns() 74 if (res.dns_name.dns_name_len == 0 || in gss_ip_to_dns() 75 res.dns_name.dns_name_len >= NI_MAXHOST) { in gss_ip_to_dns() 80 memcpy(dns_name, res.dns_name.dns_name_val, res.dns_name.dns_name_len); in gss_ip_to_dns() 81 dns_name[res.dns_name.dns_name_len] = '\0'; in gss_ip_to_dns()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-timegm.c | 55 time_t res = 0; in timegm() local 69 res += is_leap(i) ? 366 : 365; in timegm() 72 res += ndays[is_leap(tm->tm_year)][i]; in timegm() 73 res += tm->tm_mday - 1; in timegm() 74 res *= 24; in timegm() 75 res += tm->tm_hour; in timegm() 76 res *= 60; in timegm() 77 res += tm->tm_min; in timegm() 78 res *= 60; in timegm() 79 res += tm->tm_sec; in timegm() [all …]
|
/freebsd/contrib/netbsd-tests/net/sys/ |
H A D | t_rfc6056.c | 56 struct addrinfo hints, *res; in test() local 75 error = getaddrinfo(hostname, service, &hints, &res); in test() 80 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test() 88 ss.ss_len = res->ai_addrlen; in test() 89 ss.ss_family = res->ai_family; in test() 95 res->ai_addr, res->ai_addrlen) == -1) in test() 101 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in test() 108 if (connect(s, res->ai_addr, res->ai_addrlen) == -1) in test() 117 freeaddrinfo(res); in test()
|
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | h_gai.c | 68 if (res->ai_addr) { in print1() 69 error = getnameinfo(res->ai_addr, res->ai_addr->sa_len, in print1() 85 printf("%sflags 0x%x%s", start, res->ai_flags, end); in print1() 86 printf("%sfamily %d%s", start, res->ai_family, end); in print1() 87 printf("%ssocktype %d%s", start, res->ai_socktype, end); in print1() 89 printf("%saddrlen %d%s", start, res->ai_addrlen, end); in print1() 97 if (res->ai_canonname) in print1() 108 struct addrinfo *res; in main() local 170 error = getaddrinfo(p, q, &ai, &res); in main() 179 print1(nbuf, res, NULL, NULL); in main() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_syscalls_netbsd.inc | 116 if (res > 0) { 127 if (res > 0) { 139 if (res > 0) { 172 if (res == 0) { 190 if (res == 0) { 205 if (res == 0) { 228 if (res == 0) { 243 if (res == 0) { 285 if (res == 0) { 409 if (res > 0) { [all …]
|
/freebsd/contrib/wpa/hostapd/ |
H A D | hostapd_cli.c | 286 int res; in hostapd_cli_exec() local 460 int res; in hostapd_cli_cmd_wps_check_pin() local 527 int res; in hostapd_cli_cmd_wps_nfc_config_token() local 549 int res; in hostapd_cli_cmd_wps_nfc_token() local 570 int res; in hostapd_cli_cmd_nfc_get_handover_sel() local 667 int res; in hostapd_cli_cmd_disassoc_imminent() local 687 int res; in hostapd_cli_cmd_ess_disassoc() local 840 int res; in hostapd_cli_cmd_set_qos_map_set() local 860 int res; in hostapd_cli_cmd_send_qos_map_conf() local 879 int res; in hostapd_cli_cmd_hs20_wnm_notif() local [all …]
|
/freebsd/contrib/tcp_wrappers/ |
H A D | scaffold.c | 84 struct addrinfo hints, *res; in find_inet_addr() local 90 if (getaddrinfo(host, NULL, &hints, &res) == 0) in find_inet_addr() 91 return (res); in find_inet_addr() 101 if (res->ai_family != AF_INET6 && res->ai_family != AF_INET) { in find_inet_addr() 103 freeaddrinfo(res); in find_inet_addr() 106 if (!res->ai_canonname) { in find_inet_addr() 109 } else if (STR_NE(host, res->ai_canonname)) { in find_inet_addr() 113 return (res); in find_inet_addr() 166 struct addrinfo *hp, *res; local 184 for (res = hp, count = 0; res; res = res->ai_next, count++) { [all …]
|
/freebsd/sys/dev/siis/ |
H A D | siis.h | 429 #define ATA_INB(res, offset) \ argument 430 bus_read_1((res), (offset)) 431 #define ATA_INW(res, offset) \ argument 432 bus_read_2((res), (offset)) 433 #define ATA_INL(res, offset) \ argument 434 bus_read_4((res), (offset)) 443 #define ATA_OUTB(res, offset, value) \ argument 444 bus_write_1((res), (offset), (value)) 445 #define ATA_OUTW(res, offset, value) \ argument 446 bus_write_2((res), (offset), (value)) [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | http_test.c | 122 int res = 0; in test_http_x509() local 154 return res; in test_http_x509() 175 for (res = 1, i = 1; res && i <= 2; i++) { in test_http_keep_alive() 186 res = res && TEST_ptr_null(rsp) in test_http_keep_alive() 189 res = res && TEST_ptr(rsp) in test_http_keep_alive() 200 return res; in test_http_keep_alive() 208 int res; in test_http_url_ok() local 231 return res; in test_http_url_ok() 237 int res; in test_http_url_path_query_ok() local 245 return res; in test_http_url_path_query_ok() [all …]
|
/freebsd/sbin/hastd/ |
H A D | event.c | 43 event_send(const struct hast_resource *res, int event) in event_send() argument 48 PJDLOG_ASSERT(res != NULL); in event_send() 64 if (hast_proto_send(res, res->hr_event, nvout, NULL, 0) == -1) { in event_send() 68 if (hast_proto_recv_hdr(res->hr_event, &nvin) == -1) { in event_send() 84 event_recv(const struct hast_resource *res) in event_recv() argument 91 PJDLOG_ASSERT(res != NULL); in event_recv() 95 if (hast_proto_recv_hdr(res->hr_event, &nvin) == -1) { in event_recv() 136 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in event_recv() 137 hook_exec(res->hr_exec, evstr, res->hr_name, NULL); in event_recv() 148 if (hast_proto_send(res, res->hr_event, nvout, NULL, 0) == -1) { in event_recv()
|