Home
last modified time | relevance | path

Searched refs:gh (Results 1 – 25 of 48) sorted by relevance

12

/openbsd/src/sbin/fdisk/
Dgpt.c45 struct gpt_header gh; variable
150 gh.gh_sig = letoh64(legh.gh_sig); in get_header()
151 if (gh.gh_sig != GPTSIGNATURE) { in get_header()
153 GPTSIGNATURE, gh.gh_sig); in get_header()
157 gh.gh_rev = letoh32(legh.gh_rev); in get_header()
158 if (gh.gh_rev != GPTREVISION) { in get_header()
160 GPTREVISION, gh.gh_rev); in get_header()
164 gh.gh_lba_self = letoh64(legh.gh_lba_self); in get_header()
165 if (gh.gh_lba_self != sector) { in get_header()
167 sector, gh.gh_lba_self); in get_header()
[all …]
Dcmd.c112 if (gh.gh_sig == GPTSIGNATURE) { in Xswap()
163 if (gh.gh_sig == GPTSIGNATURE) in parsepn()
164 maxpn = gh.gh_part_num - 1; in parsepn()
189 (gh.gh_sig != GPTSIGNATURE && val > 0xff)) { in parseflag()
196 if (gh.gh_sig == GPTSIGNATURE) in parseflag()
277 if (gh.gh_sig == GPTSIGNATURE) { in Xedit()
354 if (gh.gh_sig == GPTSIGNATURE) { in Xsetpid()
409 if (gh.gh_sig == GPTSIGNATURE) in Xprint()
436 if (gh.gh_sig == GPTSIGNATURE) { in Xwrite()
512 if (gh.gh_sig == GPTSIGNATURE) in Xflag()
[all …]
Duser.c84 if (gh.gh_sig == GPTSIGNATURE && editlevel > 1) in USER_edit()
146 if (gh.gh_sig == GPTSIGNATURE) in USER_print_disk()
152 if (gh.gh_sig == GPTSIGNATURE) in USER_print_disk()
179 if (gh.gh_sig == GPTSIGNATURE && GPT_CMD(i) == 0) in USER_help()
209 if (gh.gh_sig == GPTSIGNATURE && GPT_CMD(i) == 0) in ask_cmd()
/openbsd/src/usr.bin/mail/
Dvars.c141 struct grouphead *gh; in findgroup() local
143 for (gh = groups[hash(name)]; gh != NULL; gh = gh->g_link) in findgroup()
144 if (*gh->g_name == *name && equal(gh->g_name, name)) in findgroup()
145 return(gh); in findgroup()
155 struct grouphead *gh; in printgroup() local
158 if ((gh = findgroup(name)) == NULL) { in printgroup()
162 printf("%s\t", gh->g_name); in printgroup()
163 for (gp = gh->g_list; gp != NULL; gp = gp->ge_link) in printgroup()
Dcmd3.c453 struct grouphead *gh; in group() local
460 for (gh = groups[h]; gh != NULL; gh = gh->g_link) in group()
464 for (gh = groups[h]; gh != NULL; gh = gh->g_link) in group()
465 *p++ = gh->g_name; in group()
478 if ((gh = findgroup(gname)) == NULL) { in group()
479 if ((gh = calloc(1, sizeof(*gh))) == NULL) in group()
481 gh->g_name = vcopy(gname); in group()
482 gh->g_list = NULL; in group()
483 gh->g_link = groups[h]; in group()
484 groups[h] = gh; in group()
[all …]
Dnames.c370 struct grouphead *gh; in usermap() local
383 gh = findgroup(np->n_name); in usermap()
385 if (gh != NULL) in usermap()
386 new = gexpand(new, gh, metoo, np->n_type); in usermap()
400 gexpand(struct name *nlist, struct grouphead *gh, int metoo, int ntype) in gexpand() argument
413 for (gp = gh->g_list; gp != NULL; gp = gp->ge_link) { in gexpand()
417 if (strcmp(cp, gh->g_name) == 0) in gexpand()
429 if (gp == gh->g_list && gp->ge_link == NULL) in gexpand()
/openbsd/src/usr.sbin/tcpdump/
Dprint-gtp.c487 struct gtp_v0_hdr *gh = (struct gtp_v0_hdr *)cp; in gtp_v0_print() local
494 TCHECK(gh->flags); in gtp_v0_print()
495 if ((gh->flags & GTPV0_HDR_PROTO_TYPE) == 0) { in gtp_v0_print()
502 TCHECK(*gh); in gtp_v0_print()
504 len = ntohs(gh->length); in gtp_v0_print()
505 bcopy(&gh->tid, &tid, sizeof(tid)); in gtp_v0_print()
507 ntohs(gh->length), ntohs(gh->seqno), ntohs(gh->flow), in gtp_v0_print()
508 ntohs(gh->npduno), betoh64(tid)); in gtp_v0_print()
511 printf("%s", tok2str(gtp_v0_msgtype, "Message Type %u", gh->msgtype)); in gtp_v0_print()
516 if (gh->msgtype == GTPV0_T_PDU) { in gtp_v0_print()
[all …]
Dprint-gre.c865 const struct geneve_header *gh; in geneve_print() local
872 if (l < sizeof(*gh)) in geneve_print()
874 if (length < sizeof(*gh)) { in geneve_print()
879 gh = (const struct geneve_header *)p; in geneve_print()
881 p += sizeof(*gh); in geneve_print()
882 l -= sizeof(*gh); in geneve_print()
883 length -= sizeof(*gh); in geneve_print()
885 flags = ntohs(gh->flags); in geneve_print()
892 vni = (htonl(gh->vni) & GENEVE_VNI_MASK) >> GENEVE_VNI_SHIFT; in geneve_print()
919 proto = ntohs(gh->protocol); in geneve_print()
/openbsd/src/gnu/usr.bin/perl/t/uni/
Dattrs.t30 eval 'sub ɛ2 ($) : plǖgh(0,0) xyzzy ;';
31 like $@, qr/^Invalid CODE attributes: ["']?plǖgh\(0,0\)["']? /;
39 eval '{my ($x,$y) : plǖgh(})}';
40 like $@, qr/^Invalid SCALAR attribute: ["']?plǖgh\(\}\)["']? at/;
56 eval 'my A $x : plǖgh plover;';
57 like $@, qr/^SCALAR package attributes may clash with future reserved words: ["']?plǖgh["']? /;
/openbsd/src/sys/arch/riscv64/stand/efiboot/
Defidev.c267 struct gpt_header gh; in findopenbsd_gpt() local
306 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
309 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
314 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
319 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
326 orig_csum = gh.gh_csum; in findopenbsd_gpt()
327 gh.gh_csum = 0; in findopenbsd_gpt()
328 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
329 gh.gh_csum = orig_csum; in findopenbsd_gpt()
335 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
Dsoftraid_riscv64.c421 struct gpt_header gh; in findopenbsd_gpt() local
462 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
465 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
471 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
477 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
485 orig_csum = gh.gh_csum; in findopenbsd_gpt()
486 gh.gh_csum = 0; in findopenbsd_gpt()
487 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
488 gh.gh_csum = orig_csum; in findopenbsd_gpt()
495 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
/openbsd/src/sys/arch/armv7/stand/efiboot/
Defidev.c267 struct gpt_header gh; in findopenbsd_gpt() local
306 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
309 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
314 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
319 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
326 orig_csum = gh.gh_csum; in findopenbsd_gpt()
327 gh.gh_csum = 0; in findopenbsd_gpt()
328 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
329 gh.gh_csum = orig_csum; in findopenbsd_gpt()
335 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
/openbsd/src/usr.sbin/installboot/
Defi_installboot.c469 struct gpt_header gh; in findgptefisys() local
503 memcpy(&gh, secbuf, sizeof(gh)); in findgptefisys()
507 if (letoh64(gh.gh_sig) != GPTSIGNATURE) in findgptefisys()
510 if (letoh32(gh.gh_rev) != GPTREVISION) in findgptefisys()
513 ghsize = letoh32(gh.gh_size); in findgptefisys()
518 orig_csum = gh.gh_csum; in findgptefisys()
519 gh.gh_csum = 0; in findgptefisys()
520 new_csum = crc32((unsigned char *)&gh, ghsize); in findgptefisys()
521 gh.gh_csum = orig_csum; in findgptefisys()
525 off = letoh64(gh.gh_part_lba) * dl->d_secsize; in findgptefisys()
[all …]
Di386_installboot.c601 struct gpt_header gh; in findgptefisys() local
635 memcpy(&gh, secbuf, sizeof(gh)); in findgptefisys()
639 if (letoh64(gh.gh_sig) != GPTSIGNATURE) in findgptefisys()
642 if (letoh32(gh.gh_rev) != GPTREVISION) in findgptefisys()
645 ghsize = letoh32(gh.gh_size); in findgptefisys()
650 orig_csum = gh.gh_csum; in findgptefisys()
651 gh.gh_csum = 0; in findgptefisys()
652 new_csum = crc32((unsigned char *)&gh, ghsize); in findgptefisys()
653 gh.gh_csum = orig_csum; in findgptefisys()
657 off = letoh64(gh.gh_part_lba) * dl->d_secsize; in findgptefisys()
[all …]
/openbsd/src/lib/libfido2/
DNEWS13 ** hid_osx: handle devices with paths > 511 bytes; gh#462.
14 ** bio: fix CTAP2 canonical CBOR encoding in fido_bio_dev_enroll_*(); gh#480.
45 ** Better handling of HID devices without identification strings; gh#381.
46 ** Fixed detection of Windows's native webauthn API; gh#382.
70 ** Fixed musl build; gh#259.
71 ** hid_win: detect devices with vendor or product IDs > 0x7fff; gh#264.
99 ** New fido_init flag to disable fido_dev_open's U2F fallback; gh#282.
120 - repair communication with U2F tokens, gh#166;
131 ** Use COSE_ECDH_ES256 with CTAP_CBOR_CLIENT_PIN; gh#154.
132 ** Allow CTAP messages up to 2048 bytes; gh#171.
[all …]
/openbsd/src/sys/arch/amd64/stand/libsa/
Dsoftraid_amd64.c429 struct gpt_header gh; in findopenbsd_gpt() local
470 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
473 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
479 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
485 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
493 orig_csum = gh.gh_csum; in findopenbsd_gpt()
494 gh.gh_csum = 0; in findopenbsd_gpt()
495 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
496 gh.gh_csum = orig_csum; in findopenbsd_gpt()
503 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
/openbsd/src/sys/arch/arm64/stand/efiboot/
Defidev.c267 struct gpt_header gh; in findopenbsd_gpt() local
306 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
309 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
314 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
319 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
326 orig_csum = gh.gh_csum; in findopenbsd_gpt()
327 gh.gh_csum = 0; in findopenbsd_gpt()
328 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
329 gh.gh_csum = orig_csum; in findopenbsd_gpt()
335 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
Dsoftraid_arm64.c421 struct gpt_header gh; in findopenbsd_gpt() local
462 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
465 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
471 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
477 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
485 orig_csum = gh.gh_csum; in findopenbsd_gpt()
486 gh.gh_csum = 0; in findopenbsd_gpt()
487 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
488 gh.gh_csum = orig_csum; in findopenbsd_gpt()
495 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
/openbsd/src/sys/arch/amd64/stand/efiboot/
Defidev.c277 struct gpt_header gh; in findopenbsd_gpt() local
316 memcpy(&gh, buf, sizeof(gh)); in findopenbsd_gpt()
319 if (letoh64(gh.gh_sig) != GPTSIGNATURE) { in findopenbsd_gpt()
324 if (letoh32(gh.gh_rev) != GPTREVISION) { in findopenbsd_gpt()
329 ghsize = letoh32(gh.gh_size); in findopenbsd_gpt()
336 orig_csum = gh.gh_csum; in findopenbsd_gpt()
337 gh.gh_csum = 0; in findopenbsd_gpt()
338 new_csum = crc32(0, (unsigned char *)&gh, ghsize); in findopenbsd_gpt()
339 gh.gh_csum = orig_csum; in findopenbsd_gpt()
345 lba = letoh64(gh.gh_part_lba); in findopenbsd_gpt()
[all …]
/openbsd/src/usr.bin/sort/
Dcoll.c1096 kv1->hint->v.gh.notnum = true; in gnumcoll()
1099 kv1->hint->v.gh.d = d1; in gnumcoll()
1100 kv1->hint->v.gh.nan = is_nan(d1); in gnumcoll()
1114 kv2->hint->v.gh.notnum = true; in gnumcoll()
1117 kv2->hint->v.gh.d = d2; in gnumcoll()
1118 kv2->hint->v.gh.nan = is_nan(d2); in gnumcoll()
1129 if (kv1->hint->v.gh.notnum) in gnumcoll()
1130 return kv2->hint->v.gh.notnum ? 0 : -1; in gnumcoll()
1131 else if (kv2->hint->v.gh.notnum) in gnumcoll()
1134 if (kv1->hint->v.gh.notnum && kv2->hint->v.gh.notnum) in gnumcoll()
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Unicode-Collate/t/
Dloc_mt.t42 ok($objMt->lt("g", "gh\x{335}"));
43 ok($objMt->gt("h", "gh\x{335}"));
55 ok($objMt->eq("gh\x{335}","gH\x{335}"));
67 ok($objMt->gt("gh\x{335}","gH\x{335}"));
79 ok($objMt->eq("gh\x{335}","g\x{127}"));
Dloc_ig.t43 ok($objIg->lt("gb","gh"));
44 ok($objIg->lt("gbz","gh"));
45 ok($objIg->lt("gh","gw"));
77 ok($objIg->eq("gh", "Gh"));
104 ok($objIg->lt("gh", "Gh"));
149 ok($objIg->gt("gh", "Gh"));
Dloc_sw.t42 ok($objSw->lt("g", "gh"));
43 ok($objSw->gt("gz","gh"));
/openbsd/src/sys/kern/
Dsubr_disk.c462 uint64_t sector, struct gpt_header *gh) in gpt_get_hdr() argument
491 *gh = ngh; in gpt_get_hdr()
493 memset(gh, 0, sizeof(*gh)); in gpt_get_hdr()
500 const struct gpt_header *gh, struct gpt_partition **gp) in gpt_get_parts() argument
507 partlba = letoh64(gh->gh_part_lba); in gpt_get_parts()
508 partnum = letoh32(gh->gh_part_num); in gpt_get_parts()
509 partsize = letoh32(gh->gh_part_size); in gpt_get_parts()
532 if (partcsum != gh->gh_part_csum) { in gpt_get_parts()
534 (letoh64(gh->gh_lba_self) == GPTSECTOR) ? "Primary" : in gpt_get_parts()
597 struct gpt_header gh; in spoofgpt() local
[all …]
/openbsd/src/gnu/usr.bin/perl/t/op/
Dtr_latin1.t21 { # gh#17277. This caused errors with valgrind and asan
23 "", {}, 'gh#17227');

12