| /src/bin/pax/ |
| H A D | tar.c | 291 HD_TAR *hd; in tar_id() local 296 hd = (HD_TAR *)blk; in tar_id() 306 if (hd->name[0] == '\0') in tar_id() 310 if (asc_ul(hd->chksum,sizeof(hd->chksum),OCT) != tar_chksm(blk,BLKMULT)) in tar_id() 362 HD_TAR *hd; in tar_rd() local 377 hd = (HD_TAR *)buf; in tar_rd() 383 arcn->nlen = l_strncpy(arcn->name, hd->name, in tar_rd() 384 MIN(sizeof(hd->name), sizeof(arcn->name)) - 1); in tar_rd() 386 arcn->sb.st_mode = (mode_t)(asc_ul(hd->mode,sizeof(hd->mode),OCT) & in tar_rd() 388 arcn->sb.st_uid = (uid_t)asc_ul(hd->uid, sizeof(hd->uid), OCT); in tar_rd() [all …]
|
| H A D | cpio.c | 270 HD_CPIO *hd; in cpio_rd() local 278 hd = (HD_CPIO *)buf; in cpio_rd() 284 arcn->sb.st_dev = (dev_t)asc_ul(hd->c_dev, sizeof(hd->c_dev), OCT); in cpio_rd() 285 arcn->sb.st_ino = (ino_t)asc_ul(hd->c_ino, sizeof(hd->c_ino), OCT); in cpio_rd() 286 arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), OCT); in cpio_rd() 287 arcn->sb.st_uid = (uid_t)asc_ul(hd->c_uid, sizeof(hd->c_uid), OCT); in cpio_rd() 288 arcn->sb.st_gid = (gid_t)asc_ul(hd->c_gid, sizeof(hd->c_gid), OCT); in cpio_rd() 289 arcn->sb.st_nlink = (nlink_t)asc_ul(hd->c_nlink, sizeof(hd->c_nlink), in cpio_rd() 291 arcn->sb.st_rdev = (dev_t)asc_ul(hd->c_rdev, sizeof(hd->c_rdev), OCT); in cpio_rd() 292 arcn->sb.st_mtime = (time_t)asc_uqd(hd->c_mtime, sizeof(hd->c_mtime), in cpio_rd() [all …]
|
| /src/stand/kboot/kboot/ |
| H A D | hostdisk.c | 88 #define hd_name(hd) ((hd->hd_dev + 5)) argument 123 hostdisk_add_part(hdinfo_t *hd, const char *drv, uint64_t secs) in hostdisk_add_part() argument 128 printf("hd %s adding %s %ju\n", hd->hd_dev, drv, (uintmax_t)secs); in hostdisk_add_part() 138 md->hd_sectorsize = hd->hd_sectorsize; in hostdisk_add_part() 140 md->hd_parent = hd; in hostdisk_add_part() 141 STAILQ_INSERT_TAIL(&hd->hd_children, md, hd_link); in hostdisk_add_part() 147 hdinfo_t *hd = argp; in hostdisk_one_part() local 152 if (strncmp(dent->d_name, hd_name(hd), strlen(hd_name(hd))) != 0) in hostdisk_one_part() 156 hd_name(hd), dent->d_name); in hostdisk_one_part() 159 hostdisk_add_part(hd, dent->d_name, sz); in hostdisk_one_part() [all …]
|
| /src/usr.sbin/bluetooth/bthidcontrol/ |
| H A D | hid.c | 52 struct hid_device *hd = NULL; in hid_dump() local 56 if ((hd = get_hid_device(bdaddr)) != NULL) { in hid_dump() 57 hid_dump_descriptor(hd->desc); in hid_dump() 70 struct hid_device *hd = NULL; in hid_forget() local 75 if ((hd = get_hid_device(bdaddr)) != NULL) { in hid_forget() 76 hd->new_device = 1; in hid_forget() 91 struct hid_device *hd = NULL; in hid_known() local 99 for (hd = get_next_hid_device(hd); in hid_known() 100 hd != NULL; in hid_known() 101 hd = get_next_hid_device(hd)) { in hid_known() [all …]
|
| H A D | sdp.c | 48 static int32_t hid_sdp_query (bdaddr_t const *local, struct hid_device *hd, int32_t *error); 116 hid_sdp_query(bdaddr_t const *local, struct hid_device *hd, int32_t *error) in hid_sdp_query() argument 130 if (hd == NULL) in hid_sdp_query() 135 if ((ss = sdp_open(local, &hd->bdaddr)) == NULL) in hid_sdp_query() 223 hd->name = bt_devremote_name_gen(devname, &hd->bdaddr); in hid_sdp_query() 224 hd->vendor_id = vendor_id; in hid_sdp_query() 225 hd->product_id = product_id; in hid_sdp_query() 226 hd->version = version; in hid_sdp_query() 227 hd->control_psm = control_psm; in hid_sdp_query() 228 hd->interrupt_psm = interrupt_psm; in hid_sdp_query() [all …]
|
| /src/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | hash.c | 155 struct hash_data *hd = arg; in hash_find_list_cb() local 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() 178 hd.hd_private = private; in hash_find_iter() 181 &hd)); in hash_find_iter() 188 struct hash_data *hd = arg; in hash_find_first_cb() local [all …]
|
| /src/contrib/wpa/src/crypto/ |
| H A D | crypto_gnutls.c | 23 gcry_md_hd_t hd; in gnutls_digest_vector() local 30 if (gcry_md_open(&hd, algo, 0) != GPG_ERR_NO_ERROR) in gnutls_digest_vector() 33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector() 34 p = gcry_md_read(hd, algo); in gnutls_digest_vector() 37 gcry_md_close(hd); in gnutls_digest_vector() 50 gcry_cipher_hd_t hd; in des_encrypt() local 63 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0); in des_encrypt() 64 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8)); in des_encrypt() 65 gcry_cipher_encrypt(hd, cypher, 8, clear, 8); in des_encrypt() 66 gcry_cipher_close(hd); in des_encrypt() [all …]
|
| /src/lib/libthr/thread/ |
| H A D | thr_pshared.c | 104 struct pshared_hash_head *hd; in pshared_gc() local 110 hd = &pshared_hash[i]; in pshared_gc() 111 LIST_FOREACH_SAFE(h, hd, link, h1) { in pshared_gc() 127 struct pshared_hash_head *hd; in pshared_lookup() local 130 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_lookup() 131 LIST_FOREACH(h, hd, link) { in pshared_lookup() 141 struct pshared_hash_head *hd; in pshared_insert() local 144 hd = &pshared_hash[PSHARED_KEY_HASH(key)]; in pshared_insert() 145 LIST_FOREACH(h, hd, link) { in pshared_insert() 181 LIST_INSERT_HEAD(hd, h, link); in pshared_insert() [all …]
|
| /src/sys/fs/nullfs/ |
| H A D | null_subr.c | 105 struct null_node_hashhead *hd; in null_hashget_locked() local 118 hd = NULL_NHASH(lowervp); in null_hashget_locked() 119 CK_SLIST_FOREACH(a, hd, null_hash) { in null_hashget_locked() 141 struct null_node_hashhead *hd; in null_hashget() local 150 hd = NULL_NHASH(lowervp); in null_hashget() 151 CK_SLIST_FOREACH(a, hd, null_hash) { in null_hashget() 175 struct null_node_hashhead *hd; in null_hashins() local 182 hd = NULL_NHASH(xp->null_lowervp); in null_hashins() 184 CK_SLIST_FOREACH(oxp, hd, null_hash) { in null_hashins() 192 CK_SLIST_INSERT_HEAD(hd, xp, null_hash); in null_hashins() [all …]
|
| /src/stand/efi/libefi/ |
| H A D | efipart.c | 615 efipart_hdinfo_add_node(pdinfo_t *hd, EFI_DEVICE_PATH *node) in efipart_hdinfo_add_node() argument 622 parent = hd->pd_parent; in efipart_hdinfo_add_node() 631 hd->pd_unit = ptr->pd_unit + 1; in efipart_hdinfo_add_node() 633 hd->pd_unit = 0; in efipart_hdinfo_add_node() 635 hd->pd_unit = ((HARDDRIVE_DEVICE_PATH *)node)->PartitionNumber; in efipart_hdinfo_add_node() 638 hd->pd_devsw = &efipart_hddev; in efipart_hdinfo_add_node() 639 STAILQ_INSERT_TAIL(&parent->pd_part, hd, pd_link); in efipart_hdinfo_add_node() 649 efipart_hdinfo_add_filepath(pdinfo_t *hd, FILEPATH_DEVICE_PATH *node) in efipart_hdinfo_add_filepath() argument 657 hd->pd_unit = last->pd_unit + 1; in efipart_hdinfo_add_filepath() 659 hd->pd_unit = 0; in efipart_hdinfo_add_filepath() [all …]
|
| H A D | efizfs.c | 98 pdinfo_t *hd, *pd = NULL; in efi_zfs_probe() local 111 STAILQ_FOREACH(hd, hdi, pd_link) { in efi_zfs_probe() 112 STAILQ_FOREACH(pd, &hd->pd_part, pd_link) { in efi_zfs_probe() 114 efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit); in efi_zfs_probe()
|
| H A D | devpath.c | 341 HARDDRIVE_DEVICE_PATH *hd; in efi_media_dev_path() local 351 hd = (HARDDRIVE_DEVICE_PATH *)node; in efi_media_dev_path() 352 switch (hd->SignatureType) { in efi_media_dev_path() 356 hd->PartitionNumber, in efi_media_dev_path() 357 *((uint32_t *)(uintptr_t)&hd->Signature[0]), in efi_media_dev_path() 358 hd->PartitionStart, in efi_media_dev_path() 359 hd->PartitionSize, tail) < 0) in efi_media_dev_path() 365 &hd->Signature[0], &str, &rv); in efi_media_dev_path() 370 hd->PartitionNumber, str, in efi_media_dev_path() 371 hd->PartitionStart, hd->PartitionSize, tail); in efi_media_dev_path() [all …]
|
| /src/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()
|
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_format_cab.c | 626 struct cfheader *hd; in cab_read_header() local 658 hd = &cab->cfheader; in cab_read_header() 665 hd->total_bytes = archive_le32dec(p + CFHEADER_cbCabinet); in cab_read_header() 666 hd->files_offset = archive_le32dec(p + CFHEADER_coffFiles); in cab_read_header() 667 hd->minor = p[CFHEADER_versionMinor]; in cab_read_header() 668 hd->major = p[CFHEADER_versionMajor]; in cab_read_header() 669 hd->folder_count = archive_le16dec(p + CFHEADER_cFolders); in cab_read_header() 670 if (hd->folder_count == 0) in cab_read_header() 672 hd->file_count = archive_le16dec(p + CFHEADER_cFiles); in cab_read_header() 673 if (hd->file_count == 0) in cab_read_header() [all …]
|
| /src/usr.bin/hexdump/tests/ |
| H A D | hexdump_test.sh | 91 hd "$(atf_get_srcdir)/d_hexdump_a.in" 93 hd "$(atf_get_srcdir)/d_hexdump_b.in" 95 hd "$(atf_get_srcdir)/d_hexdump_c.in" 97 hd "$(atf_get_srcdir)/d_hexdump_bug118723.in" 99 hd -v "$(atf_get_srcdir)/d_hexdump_bug118723.in"
|
| /src/lib/libc/net/ |
| H A D | gethostnamadr.c | 664 struct hostdata *hd; in gethostbyname() local 668 if ((hd = __hostdata_init()) == NULL) in gethostbyname() 670 if (gethostbyname_r(name, &hd->host, hd->data, sizeof(hd->data), &rval, in gethostbyname() 679 struct hostdata *hd; in gethostbyname2() local 683 if ((hd = __hostdata_init()) == NULL) in gethostbyname2() 685 if (gethostbyname2_r(name, af, &hd->host, hd->data, sizeof(hd->data), in gethostbyname2() 694 struct hostdata *hd; in gethostbyaddr() local 698 if ((hd = __hostdata_init()) == NULL) in gethostbyaddr() 700 if (gethostbyaddr_r(addr, len, af, &hd->host, hd->data, in gethostbyaddr() 701 sizeof(hd->data), &rval, &ret_h_errno) != 0) in gethostbyaddr()
|
| H A D | gethostbyht.c | 204 struct hostdata *hd; in gethostent() local 208 if ((hd = __hostdata_init()) == NULL) in gethostent() 210 if (gethostent_r(&hd->host, hd->data, sizeof(hd->data), &rval, in gethostent()
|
| /src/sys/netinet/cc/ |
| H A D | cc_hd.c | 240 SYSCTL_NODE(_net_inet_tcp_cc, OID_AUTO, hd, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, 258 DECLARE_CC_MODULE(hd, &hd_cc_algo); 259 MODULE_VERSION(hd, 2); 260 MODULE_DEPEND(hd, ertt, 1, 1, 1);
|
| /src/sys/dev/sec/ |
| H A D | sec.c | 1321 struct sec_hw_desc *hd = desc->sd_desc; in sec_build_common_ns_desc() local 1324 hd->shd_desc_type = SEC_DT_COMMON_NONSNOOP; in sec_build_common_ns_desc() 1325 hd->shd_eu_sel1 = SEC_EU_NONE; in sec_build_common_ns_desc() 1326 hd->shd_mode1 = 0; in sec_build_common_ns_desc() 1372 struct sec_hw_desc *hd = desc->sd_desc; in sec_build_common_s_desc() local 1380 hd->shd_desc_type = SEC_DT_HMAC_SNOOP; in sec_build_common_s_desc() 1381 hd->shd_eu_sel1 = eu; in sec_build_common_s_desc() 1382 hd->shd_mode1 = mode; in sec_build_common_s_desc() 1441 struct sec_hw_desc *hd = desc->sd_desc; in sec_aesu_make_desc() local 1444 hd->shd_eu_sel0 = SEC_EU_AESU; in sec_aesu_make_desc() [all …]
|
| /src/usr.bin/mkimg/ |
| 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()
|
| 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()
|
| /src/usr.bin/hexdump/ |
| H A D | Makefile | 6 MLINKS= hexdump.1 hd.1 8 LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
|
| /src/sys/net/ |
| H A D | pfil.c | 591 u_int nheads, nhooks, hd, hk; in pfilioc_listheads() local 612 hd = hk = 0; in pfilioc_listheads() 615 if (hd + 1 > nheads || in pfilioc_listheads() 622 strlcpy(iohead[hd].pio_name, head->head_name, in pfilioc_listheads() 624 iohead[hd].pio_nhooksin = head->head_nhooksin; in pfilioc_listheads() 625 iohead[hd].pio_nhooksout = head->head_nhooksout; in pfilioc_listheads() 626 iohead[hd].pio_type = head->head_type; in pfilioc_listheads() 645 hd++; in pfilioc_listheads() 650 sizeof(*iohead) * min(hd, req->pio_nheads)); in pfilioc_listheads() 655 req->pio_nheads = hd; in pfilioc_listheads()
|
| /src/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, 0); 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()
|
| /src/stand/powerpc/boot1.chrp/ |
| H A D | generate-hfs.sh | 43 BOOTINFO_OFFSET=$(hd $OUTPUT_FILE | grep 'Bootinfo START' | cut -f 1 -d ' ') 44 BOOT1_OFFSET=$(hd $OUTPUT_FILE | grep 'Boot1 START' | cut -f 1 -d ' ')
|