| /freebsd-13.1/bin/pax/ |
| H A D | tar.c | 574 hd->name[sizeof(hd->name) - 1] = '\0'; 584 memset(hd->linkname, 0, sizeof(hd->linkname)); 594 hd->linkname[sizeof(hd->linkname) - 1] = '\0'; 603 hd->linkname[sizeof(hd->linkname) - 1] = '\0'; 611 memset(hd->linkname, 0, sizeof(hd->linkname)); 794 hd->gname[sizeof(hd->gname) - 1] = '\0'; 797 hd->uname[sizeof(hd->uname) - 1] = '\0'; 944 memset(hd->prefix, 0, sizeof(hd->prefix)); 950 l_strncpy(hd->name, pt, sizeof(hd->name)); 958 memset(hd->linkname, 0, sizeof(hd->linkname)); [all …]
|
| H A D | cpio.c | 283 HD_CPIO *hd; in cpio_rd() local 391 HD_CPIO *hd; local 403 hd = &hdblk; 569 HD_VCPIO *hd; local 611 devmajor = (dev_t)asc_ul(hd->c_maj, sizeof(hd->c_maj), HEX); 612 devminor = (dev_t)asc_ul(hd->c_min, sizeof(hd->c_min), HEX); 702 HD_VCPIO *hd; local 713 hd = &hdblk; 887 HD_BCPIO *hd; local 1002 HD_BCPIO *hd; local [all …]
|
| /freebsd-13.1/usr.sbin/bluetooth/bthidcontrol/ |
| H A D | hid.c | 53 struct hid_device *hd = NULL; in hid_dump() local 58 hid_dump_descriptor(hd->desc); in hid_dump() 71 struct hid_device *hd = NULL; in hid_forget() local 77 hd->new_device = 1; in hid_forget() 92 struct hid_device *hd = NULL; in hid_known() local 100 for (hd = get_next_hid_device(hd); in hid_known() 101 hd != NULL; in hid_known() 102 hd = get_next_hid_device(hd)) { in hid_known() 103 if (hd->new_device) in hid_known() 107 sizeof(hd->bdaddr), in hid_known() [all …]
|
| H A D | sdp.c | 131 if (hd == NULL) in hid_sdp_query() 224 hd->name = bt_devremote_name_gen(devname, &hd->bdaddr); in hid_sdp_query() 225 hd->vendor_id = vendor_id; in hid_sdp_query() 226 hd->product_id = product_id; in hid_sdp_query() 227 hd->version = version; in hid_sdp_query() 228 hd->control_psm = control_psm; in hid_sdp_query() 229 hd->interrupt_psm = interrupt_psm; in hid_sdp_query() 234 if (hd->desc == NULL) in hid_sdp_query() 477 struct hid_device hd; in hid_query() local 480 memcpy(&hd.bdaddr, bdaddr, sizeof(hd.bdaddr)); in hid_query() [all …]
|
| /freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | hash.c | 159 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_list_cb() 160 if ((cbrc = hd->hd_fun(node, hd->hd_private)) < 0) in hash_find_list_cb() 173 struct hash_data hd; in hash_find_iter() local 175 hd.hd_hash = hash; in hash_find_iter() 176 hd.hd_fun = fun; in hash_find_iter() 177 hd.hd_key = key; in hash_find_iter() 181 &hd)); in hash_find_iter() 189 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_first_cb() 190 hd->hd_ret = node; in hash_find_first_cb() 203 hd.hd_hash = hash; in hash_find() [all …]
|
| /freebsd-13.1/contrib/wpa/src/crypto/ |
| H A D | crypto_gnutls.c | 23 gcry_md_hd_t hd; in gnutls_digest_vector() local 37 gcry_md_close(hd); in gnutls_digest_vector() 50 gcry_cipher_hd_t hd; in des_encrypt() local 66 gcry_cipher_close(hd); in des_encrypt() 105 gcry_md_hd_t hd; in gnutls_hmac_vector() local 115 gcry_md_close(hd); in gnutls_hmac_vector() 123 gcry_md_close(hd); in gnutls_hmac_vector() 217 gcry_cipher_hd_t hd; in aes_encrypt_init() local 233 return hd; in aes_encrypt_init() 254 gcry_cipher_hd_t hd; in aes_decrypt_init() local [all …]
|
| /freebsd-13.1/lib/libthr/thread/ |
| H A D | thr_pshared.c | 102 struct pshared_hash_head *hd; in pshared_gc() local 108 hd = &pshared_hash[i]; in pshared_gc() 109 LIST_FOREACH_SAFE(h, hd, link, h1) { in pshared_gc() 125 struct pshared_hash_head *hd; in pshared_lookup() local 128 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_lookup() 129 LIST_FOREACH(h, hd, link) { in pshared_lookup() 139 struct pshared_hash_head *hd; in pshared_insert() local 143 LIST_FOREACH(h, hd, link) { in pshared_insert() 179 LIST_INSERT_HEAD(hd, h, link); in pshared_insert() 186 struct pshared_hash_head *hd; in pshared_remove() local [all …]
|
| /freebsd-13.1/sys/netgraph/atm/ccatm/ |
| H A D | ng_ccatm.c | 807 hd = malloc(sizeof(*hd), M_NG_CCATM, M_NOWAIT); in ng_ccatm_newhook() 808 if (hd == NULL) in ng_ccatm_newhook() 810 hd->is_uni = 1; in ng_ccatm_newhook() 811 hd->node = priv; in ng_ccatm_newhook() 845 hd = malloc(sizeof(*hd), M_NG_CCATM, M_NOWAIT); in ng_ccatm_newhook() 846 if (hd == NULL) in ng_ccatm_newhook() 848 hd->is_uni = 0; in ng_ccatm_newhook() 849 hd->node = priv; in ng_ccatm_newhook() 850 hd->hook = hook; in ng_ccatm_newhook() 858 hd->inst = user; in ng_ccatm_newhook() [all …]
|
| /freebsd-13.1/stand/efi/libefi/ |
| H A D | efipart.c | 622 parent = hd->pd_parent; in efipart_hdinfo_add_node() 633 hd->pd_unit = 0; in efipart_hdinfo_add_node() 659 hd->pd_unit = 0; in efipart_hdinfo_add_filepath() 665 free(hd); in efipart_hdinfo_add_filepath() 688 free(hd); in efipart_hdinfo_add_filepath() 701 free(hd); in efipart_hdinfo_add_filepath() 705 hd->pd_parent = last; in efipart_hdinfo_add_filepath() 717 if (hd == NULL) in efipart_hdinfo_add() 720 parent = hd->pd_parent; in efipart_hdinfo_add() 754 hd->pd_unit = 0; in efipart_hdinfo_add() [all …]
|
| H A D | efizfs.c | 100 pdinfo_t *hd, *pd = NULL; in efi_zfs_probe() local 113 STAILQ_FOREACH(hd, hdi, pd_link) { in efi_zfs_probe() 114 STAILQ_FOREACH(pd, &hd->pd_part, pd_link) { in efi_zfs_probe() 116 efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit); in efi_zfs_probe()
|
| H A D | devpath.c | 342 HARDDRIVE_DEVICE_PATH *hd; in efi_media_dev_path() local 352 hd = (HARDDRIVE_DEVICE_PATH *)node; in efi_media_dev_path() 353 switch (hd->SignatureType) { in efi_media_dev_path() 357 hd->PartitionNumber, in efi_media_dev_path() 359 hd->PartitionStart, in efi_media_dev_path() 360 hd->PartitionSize, tail) < 0) in efi_media_dev_path() 366 &hd->Signature[0], &str, &rv); in efi_media_dev_path() 371 hd->PartitionNumber, str, in efi_media_dev_path() 372 hd->PartitionStart, hd->PartitionSize, tail); in efi_media_dev_path() 377 hd->PartitionNumber, in efi_media_dev_path() [all …]
|
| /freebsd-13.1/crypto/heimdal/appl/login/ |
| H A D | utmp_login.c | 46 char *ld, *hd; in shrink_hostname() local 55 hd = strchr (hostname, '.'); in shrink_hostname() 57 if (hd != NULL && ld != NULL && strcmp(hd, ld) == 0 in shrink_hostname() 58 && hd - hostname < dst_sz) { in shrink_hostname() 60 dst[hd - hostname] = '\0'; in shrink_hostname()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_format_cab.c | 621 struct cfheader *hd; in cab_read_header() local 653 hd = &cab->cfheader; in cab_read_header() 727 bytes += hd->cffolder; in cab_read_header() 751 used += hd->cffolder; in cab_read_header() 866 if (hd->cabinet != 0 || hd->flags & (PREV_CABINET | NEXT_CABINET)) { in cab_read_header() 887 struct cfheader *hd; in archive_read_format_cab_read_header() local 901 hd = &cab->cfheader; in archive_read_format_cab_read_header() 903 if (hd->file_index >= hd->file_count) { in archive_read_format_cab_read_header() 907 file = &hd->file_array[hd->file_index++]; in archive_read_format_cab_read_header() 926 cab->entry_cffolder = &hd->folder_array[hd->folder_count-1]; in archive_read_format_cab_read_header() [all …]
|
| /freebsd-13.1/sys/fs/nullfs/ |
| H A D | null_subr.c | 103 struct null_node_hashhead *hd; local 115 hd = NULL_NHASH(lowervp); 116 if (LIST_EMPTY(hd)) 119 LIST_FOREACH(a, hd, null_hash) { 146 struct null_node_hashhead *hd; local 150 hd = NULL_NHASH(xp->null_lowervp); 152 LIST_FOREACH(oxp, hd, null_hash) { 165 LIST_INSERT_HEAD(hd, xp, null_hash);
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | gethostnamadr.c | 667 struct hostdata *hd; in gethostbyname() local 671 if ((hd = __hostdata_init()) == NULL) in gethostbyname() 673 if (gethostbyname_r(name, &hd->host, hd->data, sizeof(hd->data), &rval, in gethostbyname() 682 struct hostdata *hd; in gethostbyname2() local 686 if ((hd = __hostdata_init()) == NULL) in gethostbyname2() 688 if (gethostbyname2_r(name, af, &hd->host, hd->data, sizeof(hd->data), in gethostbyname2() 697 struct hostdata *hd; in gethostbyaddr() local 701 if ((hd = __hostdata_init()) == NULL) in gethostbyaddr() 703 if (gethostbyaddr_r(addr, len, af, &hd->host, hd->data, in gethostbyaddr() 704 sizeof(hd->data), &rval, &ret_h_errno) != 0) in gethostbyaddr()
|
| H A D | gethostbyht.c | 210 struct hostdata *hd; in gethostent() local 214 if ((hd = __hostdata_init()) == NULL) in gethostent() 216 if (gethostent_r(&hd->host, hd->data, sizeof(hd->data), &rval, in gethostent()
|
| /freebsd-13.1/sys/netinet/cc/ |
| H A D | cc_hd.c | 235 SYSCTL_NODE(_net_inet_tcp_cc, OID_AUTO, hd, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, 253 DECLARE_CC_MODULE(hd, &hd_cc_algo); 254 MODULE_VERSION(hd, 1); 255 MODULE_DEPEND(hd, ertt, 1, 1, 1);
|
| /freebsd-13.1/sys/dev/sec/ |
| H A D | sec.c | 1329 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_build_common_ns_desc() 1330 hd->shd_mode1 = 0; in sec_build_common_ns_desc() 1385 hd->shd_eu_sel1 = eu; in sec_build_common_s_desc() 1386 hd->shd_mode1 = mode; in sec_build_common_s_desc() 1448 hd->shd_eu_sel0 = SEC_EU_AESU; in sec_aesu_make_desc() 1453 hd->shd_dir = 0; in sec_aesu_make_desc() 1455 hd->shd_dir = 1; in sec_aesu_make_desc() 1542 hd->shd_eu_sel0 = eu; in sec_mdeu_make_desc() 1543 hd->shd_mode0 = mode; in sec_mdeu_make_desc() 1544 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_mdeu_make_desc() [all …]
|
| /freebsd-13.1/usr.bin/hexdump/ |
| H A D | Makefile | 9 MLINKS= hexdump.1 hd.1 11 LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
|
| /freebsd-13.1/usr.bin/mkimg/ |
| H A D | mbr.c | 65 u_int cyl, hd, sec; in mbr_chs() local 67 mkimg_chs(lba, 1023, &cyl, &hd, &sec); in mbr_chs() 69 *hdp = hd; in mbr_chs()
|
| H A D | ebr.c | 61 u_int cyl, hd, sec; in ebr_chs() local 63 mkimg_chs(lba, 1023, &cyl, &hd, &sec); in ebr_chs() 65 *hdp = hd; in ebr_chs()
|
| /freebsd-13.1/sys/net/ |
| H A D | pfil.c | 539 u_int nheads, nhooks, hd, hk; in pfilioc_listheads() local 560 hd = hk = 0; in pfilioc_listheads() 563 if (hd + 1 > nheads || in pfilioc_listheads() 570 strlcpy(iohead[hd].pio_name, head->head_name, in pfilioc_listheads() 572 iohead[hd].pio_nhooksin = head->head_nhooksin; in pfilioc_listheads() 573 iohead[hd].pio_nhooksout = head->head_nhooksout; in pfilioc_listheads() 574 iohead[hd].pio_type = head->head_type; in pfilioc_listheads() 593 hd++; in pfilioc_listheads() 598 sizeof(*iohead) * min(hd, req->pio_nheads)); in pfilioc_listheads() 603 req->pio_nheads = hd; in pfilioc_listheads()
|
| /freebsd-13.1/usr.bin/hexdump/tests/ |
| H A D | hexdump_test.sh | 88 hd "$(atf_get_srcdir)/d_hexdump_a.in" 90 hd "$(atf_get_srcdir)/d_hexdump_b.in" 92 hd "$(atf_get_srcdir)/d_hexdump_c.in"
|
| /freebsd-13.1/sys/fs/unionfs/ |
| H A D | union_subr.c | 113 struct unionfs_node_hashhead *hd; in unionfs_get_cached_vnode() local 123 hd = unionfs_get_hashhead(dvp, path); in unionfs_get_cached_vnode() 124 LIST_FOREACH(unp, hd, un_hash) { in unionfs_get_cached_vnode() 151 struct unionfs_node_hashhead *hd; in unionfs_ins_cached_vnode() local 161 hd = unionfs_get_hashhead(dvp, path); in unionfs_ins_cached_vnode() 162 LIST_FOREACH(unp, hd, un_hash) { in unionfs_ins_cached_vnode() 169 LIST_INSERT_HEAD(hd, uncp, un_hash); in unionfs_ins_cached_vnode() 179 LIST_INSERT_HEAD(hd, uncp, un_hash); in unionfs_ins_cached_vnode() 335 struct unionfs_node_hashhead *hd; in unionfs_noderem() local 389 hd = unp->un_hashtbl + count; in unionfs_noderem() [all …]
|
| /freebsd-13.1/sys/dev/hid/ |
| H A D | hid.c | 802 struct hid_data *hd; in hid_is_collection() local 806 hd = hid_start_parse(desc, size, hid_input); in hid_is_collection() 807 if (hd == NULL) in hid_is_collection() 810 while ((err = hid_get_item(hd, &hi))) { in hid_is_collection() 815 hid_end_parse(hd); in hid_is_collection() 906 struct hid_data *hd; in hid_is_mouse() local 911 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hid_is_mouse() 912 if (hd == NULL) in hid_is_mouse() 918 while (hid_get_item(hd, &hi)) { in hid_is_mouse() 948 hid_end_parse(hd); in hid_is_mouse()
|