/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | fmd_serd.c | 130 fmd_serd_hash_create(fmd_serd_hash_t *shp) in fmd_serd_hash_create() argument 132 shp->sh_hashlen = FMD_STR_BUCKETS; in fmd_serd_hash_create() 133 shp->sh_hash = calloc(shp->sh_hashlen, sizeof (void *)); in fmd_serd_hash_create() 134 shp->sh_count = 0; in fmd_serd_hash_create() 136 if (shp->sh_hash == NULL) { in fmd_serd_hash_create() 144 fmd_serd_hash_destroy(fmd_serd_hash_t *shp) in fmd_serd_hash_destroy() argument 149 for (i = 0; i < shp->sh_hashlen; i++) { in fmd_serd_hash_destroy() 150 for (sgp = shp->sh_hash[i]; sgp != NULL; sgp = ngp) { in fmd_serd_hash_destroy() 156 free(shp->sh_hash); in fmd_serd_hash_destroy() 157 memset(shp, 0, sizeof (fmd_serd_hash_t)); in fmd_serd_hash_destroy() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 471 Elf32_Shdr *shp; in dump_elf32() local 535 shp = &elf_file.shdr[ESHDR_SHSTRTAB]; in dump_elf32() 536 shp->sh_name = 1; /* DTRACE_SHSTRTAB32[1] = ".shstrtab" */ in dump_elf32() 537 shp->sh_type = SHT_STRTAB; in dump_elf32() 538 shp->sh_offset = off; in dump_elf32() 539 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); in dump_elf32() 540 shp->sh_addralign = sizeof (char); in dump_elf32() 541 off = roundup2(shp->sh_offset + shp->sh_size, 8); in dump_elf32() 543 shp = &elf_file.shdr[ESHDR_DOF]; in dump_elf32() 544 shp->sh_name = 11; /* DTRACE_SHSTRTAB32[11] = ".SUNW_dof" */ in dump_elf32() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 388 const GElf_Shdr *shp = &sp[i]; in ctf_fdopen() local 389 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdopen() 391 if (shp->sh_link >= shnum) in ctf_fdopen() 394 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdopen() 398 if (shp->sh_type == SHT_PROGBITS && in ctf_fdopen() 399 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) { in ctf_fdopen() 400 ctfsect.cts_name = strs + shp->sh_name; in ctf_fdopen() 401 ctfsect.cts_type = shp->sh_type; in ctf_fdopen() 402 ctfsect.cts_flags = shp->sh_flags; in ctf_fdopen() 403 ctfsect.cts_size = shp->sh_size; in ctf_fdopen() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-decnet.c | 816 const struct seghdr *shp = (const struct seghdr *)nspp; in print_nsp() local 822 ack = GET_LE_U_2(shp->sh_seq[0]); in print_nsp() 831 ack = GET_LE_U_2(shp->sh_seq[1]); in print_nsp() 840 ack = GET_LE_U_2(shp->sh_seq[2]); in print_nsp() 849 const struct seghdr *shp = (const struct seghdr *)nspp; in print_nsp() local 855 ack = GET_LE_U_2(shp->sh_seq[0]); in print_nsp() 864 ack = GET_LE_U_2(shp->sh_seq[1]); in print_nsp() 873 ack = GET_LE_U_2(shp->sh_seq[2]); in print_nsp() 882 const struct seghdr *shp = (const struct seghdr *)nspp; in print_nsp() local 890 ack = GET_LE_U_2(shp->sh_seq[0]); in print_nsp() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.dir.c | 127 struct stat swd, shp; in dinit() local 134 if (swd_ok && hp && *hp && stat(short2str(hp), &shp) != -1 && in dinit() 135 DEV_DEV_COMPARE(swd.st_dev, shp.st_dev) && in dinit() 136 swd.st_ino == shp.st_ino) in dinit() 145 if (stat(cwd, &shp) != -1 && in dinit() 146 DEV_DEV_COMPARE(swd.st_dev, shp.st_dev) && in dinit() 147 swd.st_ino == shp.st_ino) { in dinit()
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | esri | 4 # ESRI Shapefile format (.shp .shx .dbf=DBaseIII)
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdstate.c | 670 struct nfssessionhash *shp; in nfsrv_getclient() local 732 shp = NFSSESSIONHASH(nd->nd_sessionid); in nfsrv_getclient() 733 NFSLOCKSESSION(shp); in nfsrv_getclient() 737 NFSUNLOCKSESSION(shp); in nfsrv_getclient() 852 shp = NFSSESSIONHASH(nsep->sess_sessionid); in nfsrv_getclient() 855 NFSLOCKSESSION(shp); in nfsrv_getclient() 856 LIST_INSERT_HEAD(&shp->list, nsep, sess_hash); in nfsrv_getclient() 859 NFSUNLOCKSESSION(shp); in nfsrv_getclient() 6272 struct nfssessionhash *shp; in nfsrv_checksequence() local 6275 shp = NFSSESSIONHASH(nd->nd_sessionid); in nfsrv_checksequence() [all …]
|
/freebsd/contrib/file/src/ |
H A D | cdf.c | 994 const cdf_section_header_t *shp; in cdf_read_property_info() local 1004 shp = CAST(const cdf_section_header_t *, in cdf_read_property_info() 1006 if (cdf_check_stream_offset(sst, h, shp, sizeof(*shp), __LINE__) == -1) in cdf_read_property_info() 1008 sh.sh_len = CDF_TOLE4(shp->sh_len); in cdf_read_property_info() 1014 if (cdf_check_stream_offset(sst, h, shp, sh.sh_len, __LINE__) == -1) in cdf_read_property_info() 1017 sh.sh_properties = CDF_TOLE4(shp->sh_properties); in cdf_read_property_info() 1028 e = CAST(const uint8_t *, cdf_offset(shp, sh.sh_len)); in cdf_read_property_info()
|
/freebsd/sys/kern/ |
H A D | kern_sharedpage.c | 133 SYSINIT(shp, SI_SUB_EXEC, SI_ORDER_FIRST, (sysinit_cfunc_t)shared_page_init,
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 908 spa_history_phys_t *shp = data; in dump_history_offsets() local 910 if (shp == NULL) in dump_history_offsets() 914 (u_longlong_t)shp->sh_pool_create_len); in dump_history_offsets() 916 (u_longlong_t)shp->sh_phys_max_off); in dump_history_offsets() 918 (u_longlong_t)shp->sh_bof); in dump_history_offsets() 920 (u_longlong_t)shp->sh_eof); in dump_history_offsets() 922 (u_longlong_t)shp->sh_records_lost); in dump_history_offsets()
|