/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | arc.c | 616 #define HDR_IN_HASH_TABLE(hdr) ((hdr)->b_flags & ARC_FLAG_IN_HASH_TABLE) argument 617 #define HDR_IO_IN_PROGRESS(hdr) ((hdr)->b_flags & ARC_FLAG_IO_IN_PROGRESS) argument 618 #define HDR_IO_ERROR(hdr) ((hdr)->b_flags & ARC_FLAG_IO_ERROR) argument 619 #define HDR_PREFETCH(hdr) ((hdr)->b_flags & ARC_FLAG_PREFETCH) argument 620 #define HDR_PRESCIENT_PREFETCH(hdr) \ argument 621 ((hdr)->b_flags & ARC_FLAG_PRESCIENT_PREFETCH) 622 #define HDR_COMPRESSION_ENABLED(hdr) \ argument 623 ((hdr)->b_flags & ARC_FLAG_COMPRESSED_ARC) 625 #define HDR_L2CACHE(hdr) ((hdr)->b_flags & ARC_FLAG_L2CACHE) argument 626 #define HDR_L2_READING(hdr) \ argument [all …]
|
H A D | btree.c | 75 zfs_btree_is_core(struct zfs_btree_hdr *hdr) in zfs_btree_is_core() argument 77 return (hdr->bth_first == -1); in zfs_btree_is_core() 87 zfs_btree_poison_node(zfs_btree_t *tree, zfs_btree_hdr_t *hdr) in zfs_btree_poison_node() argument 91 if (zfs_btree_is_core(hdr)) { in zfs_btree_poison_node() 92 zfs_btree_core_t *node = (zfs_btree_core_t *)hdr; in zfs_btree_poison_node() 93 for (uint32_t i = hdr->bth_count + 1; i <= BTREE_CORE_ELEMS; in zfs_btree_poison_node() 98 (void) memset(node->btc_elems + hdr->bth_count * size, 0x0f, in zfs_btree_poison_node() 99 (BTREE_CORE_ELEMS - hdr->bth_count) * size); in zfs_btree_poison_node() 101 zfs_btree_leaf_t *leaf = (zfs_btree_leaf_t *)hdr; in zfs_btree_poison_node() 102 (void) memset(leaf->btl_elems, 0x0f, hdr->bth_first * size); in zfs_btree_poison_node() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftread.c | 78 struct eftheader hdr; in eftread_fopen() local 95 if (fread(&hdr, 1, sizeof (hdr), fp) < sizeof (hdr)) { in eftread_fopen() 100 hdr.magic = ntohl(hdr.magic); in eftread_fopen() 101 hdr.major = ntohs(hdr.major); in eftread_fopen() 102 hdr.minor = ntohs(hdr.minor); in eftread_fopen() 103 hdr.cmajor = ntohs(hdr.cmajor); in eftread_fopen() 104 hdr.cminor = ntohs(hdr.cminor); in eftread_fopen() 105 hdr.identlen = ntohl(hdr.identlen); in eftread_fopen() 106 hdr.dictlen = ntohl(hdr.dictlen); in eftread_fopen() 107 hdr.csum = ntohl(hdr.csum); in eftread_fopen() [all …]
|
H A D | eftwrite.c | 103 struct eftheader hdr; in eftwrite() local 121 bzero(&hdr, sizeof (hdr)); in eftwrite() 122 hdr.magic = EFT_HDR_MAGIC; in eftwrite() 123 hdr.major = EFT_HDR_MAJOR; in eftwrite() 124 hdr.minor = EFT_HDR_MINOR; in eftwrite() 125 hdr.cmajor = VERSION_MAJOR; in eftwrite() 126 hdr.cminor = VERSION_MINOR; in eftwrite() 127 hdr.identlen = Identlen; in eftwrite() 128 hdr.dictlen = Dictlen; in eftwrite() 132 (void) snprintf(hdr.comment, EFT_HDR_MAXCOMMENT, in eftwrite() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | bad_xregs.c | 62 prxregset_hdr_t *hdr = calloc(1, sizeof (prxregset_hdr_t)); in bad_xregs_short_hdr() local 63 if (hdr == NULL) { in bad_xregs_short_hdr() 67 hdr->pr_type = PR_TYPE_XSAVE; in bad_xregs_short_hdr() 68 hdr->pr_size = sizeof (prxregset_hdr_t); in bad_xregs_short_hdr() 70 *bufp = hdr; in bad_xregs_short_hdr() 78 prxregset_hdr_t *hdr = malloc(32 * 1024 * 1024); in bad_xregs_hdr_too_large() local 79 if (hdr == NULL) { in bad_xregs_hdr_too_large() 83 (void) memcpy(hdr, bad_xregs_pxr, bad_xregs_size); in bad_xregs_hdr_too_large() 84 hdr->pr_size = large; in bad_xregs_hdr_too_large() 86 *bufp = hdr; in bad_xregs_hdr_too_large() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_parse_generic.c | 357 sip_parse_hdr_empty(_sip_header_t *hdr, sip_parsed_header_t **phdr) in sip_parse_hdr_empty() argument 361 if (hdr == NULL || phdr == NULL) in sip_parse_hdr_empty() 367 if (hdr->sip_hdr_parsed != NULL) { in sip_parse_hdr_empty() 368 *phdr = hdr->sip_hdr_parsed; in sip_parse_hdr_empty() 377 parsed_header->sip_header = hdr; in sip_parse_hdr_empty() 494 sip_parse_hdr_parser1(_sip_header_t *hdr, sip_parsed_header_t **phdr, char sep) in sip_parse_hdr_parser1() argument 501 if ((ret = sip_prim_parsers(hdr, phdr)) != 0) in sip_parse_hdr_parser1() 508 hdr->sip_hdr_parsed = *phdr; in sip_parse_hdr_parser1() 516 parsed_header->sip_header = hdr; in sip_parse_hdr_parser1() 518 while (hdr->sip_hdr_current < hdr->sip_hdr_end) { in sip_parse_hdr_parser1() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | gpt.c | 56 gptupdate(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, in gptupdate() argument 70 entries_per_sec = DEV_BSIZE / hdr->hdr_entsz; in gptupdate() 74 slba += hdr->hdr_lba_table; in gptupdate() 80 hdr->hdr_crc_table = crc32(0, Z_NULL, 0); in gptupdate() 81 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, table, in gptupdate() 82 hdr->hdr_entries * hdr->hdr_entsz); in gptupdate() 83 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptupdate() 84 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size); in gptupdate() 86 bcopy(hdr, secbuf, hdr->hdr_size); in gptupdate() 87 if (drvwrite(dskp, secbuf, hdr->hdr_lba_self, 1)) { in gptupdate() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SDAAdvert.java | 49 SDAAdvert(SrvLocHeader hdr, in SDAAdvert() argument 61 this.hdr = (SrvLocHeader)hdr.clone(); in SDAAdvert() 69 this.hdr.xid = xid; in SDAAdvert() 70 this.hdr.functionCode = SrvLocHeader.DAAdvert; in SDAAdvert() 71 this.hdr.mcast = false; in SDAAdvert() 72 this.hdr.previousResponders = null; // we don't want this around. in SDAAdvert() 73 this.hdr.errCode = ServiceLocationException.OK; in SDAAdvert() 74 this.hdr.overflow = false; in SDAAdvert() 75 this.hdr.length = 0; in SDAAdvert() 76 this.hdr.fresh = false; in SDAAdvert() [all …]
|
H A D | SSrvMsg.java | 59 SSrvMsg(SrvLocHeader hdr, DataInputStream dis) in SSrvMsg() argument 61 super(hdr, SrvLocHeader.SrvReq); in SSrvMsg() 72 SLPServerHeaderV2 hdr = (SLPServerHeaderV2)getHeader(); in initialize() local 77 hdr.parsePreviousRespondersIn(dis); in initialize() 81 hdr.getString(buf, dis); in initialize() 99 hdr.getString(buf, dis); in initialize() 101 hdr.scopes = hdr.parseCommaSeparatedListIn(buf.toString(), true); in initialize() 106 if (hdr.scopes.size() <= 0) { in initialize() 119 hdr.unescapeScopeStrings(hdr.scopes); in initialize() 121 DATable.validateScopes(hdr.scopes, hdr.locale); in initialize() [all …]
|
H A D | CSrvTypeMsg.java | 60 CSrvTypeMsg(SLPHeaderV2 hdr, DataInputStream dis) in CSrvTypeMsg() argument 62 super(hdr, SrvLocHeader.SrvTypeRply); in CSrvTypeMsg() 66 if (hdr.errCode != ServiceLocationException.OK) { in CSrvTypeMsg() 72 if (hdr.overflow) { in CSrvTypeMsg() 79 hdr.getString(buf, dis); in CSrvTypeMsg() 82 hdr.parseCommaSeparatedListIn(buf.toString(), true); in CSrvTypeMsg() 101 hdr.iNumReplies = serviceTypes.size(); in CSrvTypeMsg() 111 SLPHeaderV2 hdr = in CSrvTypeMsg() local 113 this.hdr = hdr; in CSrvTypeMsg() 114 hdr.scopes = (Vector)scopes.clone(); in CSrvTypeMsg() [all …]
|
H A D | SLPV1SAttrMsg.java | 57 SLPV1SAttrMsg(SrvLocHeader hdr, DataInputStream dis) in SLPV1SAttrMsg() argument 60 super(hdr, dis); in SLPV1SAttrMsg() 66 static SrvLocMsg makeEmptyReply(SLPHeaderV1 hdr) in makeEmptyReply() argument 70 msg.hdr = hdr; in makeEmptyReply() 81 SLPHeaderV1 hdr = (SLPHeaderV1)getHeader(); in initialize() local 86 hdr.parsePreviousRespondersIn(dis); in initialize() 90 hdr.getString(buf, dis); in initialize() 108 hdr.checkServiceType(urlOrServiceType.toLowerCase()); in initialize() 115 hdr.getString(buf, dis); in initialize() 119 hdr.validateScope(scope); in initialize() [all …]
|
H A D | CAttrMsg.java | 59 CAttrMsg(SLPHeaderV2 hdr, DataInputStream dis) in CAttrMsg() argument 62 super(hdr, SrvLocHeader.AttrRply); in CAttrMsg() 66 if (hdr.errCode != ServiceLocationException.OK) { in CAttrMsg() 73 if (hdr.overflow) { in CAttrMsg() 81 hdr.parseAuthenticatedAttributeVectorIn(attrList, dis, true); in CAttrMsg() 91 hdr.iNumReplies = attrList.size(); in CAttrMsg() 101 this.hdr = new SLPHeaderV2(SrvLocHeader.AttrRqst, false, locale); in CAttrMsg() 113 this.hdr = new SLPHeaderV2(SrvLocHeader.AttrRqst, false, locale); in CAttrMsg() 126 SLPHeaderV2 hdr = (SLPHeaderV2)this.hdr; in constructPayload() local 127 hdr.scopes = (Vector)scopes.clone(); in constructPayload() [all …]
|
H A D | CDAAdvert.java | 59 CDAAdvert(SrvLocHeader hdr, DataInputStream dis) in CDAAdvert() argument 61 super(hdr, SrvLocHeader.DAAdvert); in CDAAdvert() 72 SLPHeaderV2 hdr = (SLPHeaderV2)getHeader(); in initialize() local 78 timestamp = getInt32(hdr, dis, tsBytes); in initialize() 84 byte[] urlBytes = hdr.getString(buf, dis); in initialize() 92 byte[] scopeBytes = hdr.getString(buf, dis); in initialize() 94 hdr.scopes = hdr.parseCommaSeparatedListIn(buf.toString(), true); in initialize() 98 hdr.unescapeScopeStrings(hdr.scopes); in initialize() 102 DATable.validateScopes(hdr.scopes, hdr.locale); in initialize() 106 byte[] attrBytes = hdr.parseAttributeVectorIn(attrs, dis, false); in initialize() [all …]
|
H A D | SSAAdvert.java | 62 hdr = new SLPServerHeaderV2(); in SSAAdvert() 64 Assert.slpassert(hdr != null, in SSAAdvert() 68 hdr.functionCode = SrvLocHeader.SAAdvert; in SSAAdvert() 69 hdr.xid = xid; in SSAAdvert() 70 hdr.locale = locale; in SSAAdvert() 80 SLPServerHeaderV2 hdr = (SLPServerHeaderV2)getHeader(); in initialize() local 95 DATable.validateScopes(scopes, hdr.locale); in initialize() 96 hdr.scopes = (Vector)scopes.clone(); in initialize() 100 hdr.escapeScopeStrings(scopes); in initialize() 110 byte[] urlBytes = hdr.putString(surl, baos); in initialize() [all …]
|
H A D | SLPV1SSrvTypeMsg.java | 54 SLPV1SSrvTypeMsg(SrvLocHeader hdr, DataInputStream dis) in SLPV1SSrvTypeMsg() argument 57 super(hdr, dis); in SLPV1SSrvTypeMsg() 64 SLPHeaderV1 hdr = (SLPHeaderV1)getHeader(); in initialize() local 69 hdr.parsePreviousRespondersIn(dis); in initialize() 73 namingAuthority = parseNamingAuthorityIn(hdr, dis, hdr.charCode); in initialize() 86 hdr.getString(buf, dis); in initialize() 90 hdr.validateScope(scope); in initialize() 99 hdr.scopes = new Vector(); in initialize() 100 hdr.scopes.addElement(scope); in initialize() 104 hdr.constructDescription("SrvTypeRqst", in initialize() [all …]
|
H A D | SSrvTypeMsg.java | 54 SSrvTypeMsg(SrvLocHeader hdr, DataInputStream dis) in SSrvTypeMsg() argument 57 super(hdr, SrvLocHeader.SrvTypeRqst); in SSrvTypeMsg() 68 SLPServerHeaderV2 hdr = (SLPServerHeaderV2)getHeader(); in initialize() local 73 hdr.parsePreviousRespondersIn(dis); in initialize() 77 namingAuthority = parseNamingAuthorityIn(hdr, dis, Defaults.UTF8); in initialize() 92 hdr.parseScopesIn(dis); in initialize() 96 hdr.constructDescription("SrvTypeRqst", in initialize() 104 parseNamingAuthorityIn(SrvLocHeader hdr, in parseNamingAuthorityIn() argument 111 len = hdr.getInt(dis); in parseNamingAuthorityIn() 127 hdr.nbytes += len; in parseNamingAuthorityIn() [all …]
|
H A D | CSrvMsg.java | 58 CSrvMsg(SLPHeaderV2 hdr, DataInputStream dis) in CSrvMsg() argument 60 super(hdr, SrvLocHeader.SrvRply); in CSrvMsg() 64 if (hdr.errCode != ServiceLocationException.OK) { in CSrvMsg() 73 parseServiceURLsIn(hdr, dis); in CSrvMsg() 78 protected void parseServiceURLsIn(SLPHeaderV2 hdr, DataInputStream dis) in parseServiceURLsIn() argument 83 int i, n = hdr.getInt(dis); in parseServiceURLsIn() 90 hdr.parseServiceURLIn(dis, URLSignatures, in parseServiceURLsIn() 107 hdr.iNumReplies = serviceURLs.size(); in parseServiceURLsIn() 132 SLPHeaderV2 hdr = new SLPHeaderV2(SrvLocHeader.SrvReq, false, locale); in initialize() local 133 this.hdr = hdr; in initialize() [all …]
|
H A D | RequestHandler.java | 520 SrvLocHeader hdr = msg.getHeader(); in handleRequest() local 522 if (hdr.errCode == ServiceLocationException.OK) { in handleRequest() 526 new Object[] {Integer.toHexString(hdr.xid), in handleRequest() 545 Integer.toHexString(hdr.xid), in handleRequest() 566 Integer.toHexString(hdr.xid), in handleRequest() 592 SrvLocHeader hdr = rply.getHeader(); in handleRequest() local 598 hdr.externalize(baos, false, isTCP); in handleRequest() 605 new Object[] {Integer.toHexString(hdr.xid), in handleRequest() 614 rply = hdr.makeErrorReply(ex); in handleRequest() 620 hdr = rply.getHeader(); in handleRequest() [all …]
|
H A D | SLPV1CDAAdvert.java | 54 SLPV1CDAAdvert(SLPHeaderV1 hdr, DataInputStream dis) in SLPV1CDAAdvert() argument 56 super(hdr, dis); in SLPV1CDAAdvert() 67 SLPHeaderV1 hdr = (SLPHeaderV1)getHeader(); in initialize() local 71 hdr.errCode = (short)hdr.getInt(dis); in initialize() 75 if (hdr.errCode != ServiceLocationException.OK) { in initialize() 82 hdr.parseServiceURLIn(dis, in initialize() 103 hdr.getString(buf, dis); in initialize() 105 hdr.scopes = hdr.parseCommaSeparatedListIn(buf.toString(), true); in initialize() 109 int i, n = hdr.scopes.size(); in initialize() 112 String scope = (String)hdr.scopes.elementAt(i); in initialize() [all …]
|
H A D | SAttrMsg.java | 61 SAttrMsg(SrvLocHeader hdr, DataInputStream dis) in SAttrMsg() argument 64 super(hdr, SrvLocHeader.AttrRqst); in SAttrMsg() 75 SLPServerHeaderV2 hdr = (SLPServerHeaderV2)getHeader(); in initialize() local 80 hdr.parsePreviousRespondersIn(dis); in initialize() 84 hdr.getString(buf, dis); in initialize() 108 hdr.parseScopesIn(dis); in initialize() 112 hdr.getString(buf, dis); in initialize() 114 tags = hdr.parseCommaSeparatedListIn(buf.toString(), true); in initialize() 118 hdr.unescapeTags(tags); in initialize() 122 hdr.getString(buf, dis); in initialize() [all …]
|
/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | HdrChk.py | 135 def err(stream, msg, hdr): argument 136 if not hdr.eof: 138 (hdr.filename, hdr.lineno, msg)) 140 stream.write("%s: %s\n" % (hdr.filename, msg)) 161 hdr = HeaderFile(fh, filename=filename, lenient=lenient) 169 line = hdr.skipcomments() 171 if not hdr.has_copyright: 172 err(output, "Missing copyright in opening comment", hdr) 182 line = hdr.skipcomments() 189 err(output, "Invalid or missing header guard", hdr) [all …]
|
/illumos-gate/usr/src/common/fs/ |
H A D | bootrd_cpio.c | 54 const struct cpio_hdr *hdr; member 196 parse_stat(const struct cpio_hdr *hdr, struct bootstat *stat) in parse_stat() argument 198 if (!get_uint64(hdr->dev, sizeof (hdr->dev), &stat->st_dev)) in parse_stat() 200 if (!get_uint64(hdr->ino, sizeof (hdr->ino), &stat->st_ino)) in parse_stat() 202 if (!get_uint32(hdr->mode, sizeof (hdr->mode), &stat->st_mode)) in parse_stat() 204 if (!get_int32(hdr->uid, sizeof (hdr->uid), &stat->st_uid)) in parse_stat() 206 if (!get_int32(hdr->gid, sizeof (hdr->gid), &stat->st_gid)) in parse_stat() 208 if (!get_uint32(hdr->nlink, sizeof (hdr->nlink), &stat->st_nlink)) in parse_stat() 210 if (!get_uint64(hdr->rdev, sizeof (hdr->rdev), &stat->st_rdev)) in parse_stat() 214 if (!get_int64(hdr->mtime, sizeof (hdr->mtime), &stat->st_mtim.tv_sec)) in parse_stat() [all …]
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | parse.cc | 106 AudioHdr& hdr) in audioformat_parse() argument 111 hdr.sample_rate = 48000; in audioformat_parse() 112 hdr.channels = 2; in audioformat_parse() 113 hdr.encoding = LINEAR; in audioformat_parse() 114 hdr.samples_per_unit = 1; in audioformat_parse() 115 hdr.bytes_per_unit = 2; in audioformat_parse() 117 hdr.sample_rate = 44100; in audioformat_parse() 118 hdr.channels = 2; in audioformat_parse() 119 hdr.encoding = LINEAR; in audioformat_parse() 120 hdr.samples_per_unit = 1; in audioformat_parse() [all …]
|
/illumos-gate/usr/src/lib/libmlrpc/common/ |
H A D | ndr_marshal.c | 176 ndr_common_header_t hdr; in ndr_buf_decode() local 200 rc = ndr_decode_hdr_common(&nbuf->nb_nds, &hdr); in ndr_buf_decode() 204 if (!NDR_IS_SINGLE_FRAG(hdr.pfc_flags)) in ndr_buf_decode() 301 ndr_common_header_t *hdr = &mxa->recv_hdr.common_hdr; in ndr_decode_pdu_hdr() local 307 rc = ndr_decode_hdr_common(nds, hdr); in ndr_decode_pdu_hdr() 314 if ((hdr->rpc_vers != 5) || (hdr->rpc_vers_minor != 0)) in ndr_decode_pdu_hdr() 317 mxa->ptype = hdr->ptype; in ndr_decode_pdu_hdr() 321 nds->pdu_body_size = hdr->frag_length - hdr->auth_length - in ndr_decode_pdu_hdr() 323 ((hdr->auth_length != 0) ? SEC_TRAILER_SIZE : 0); in ndr_decode_pdu_hdr() 325 if (hdr->auth_length != 0 && hdr->auth_length > in ndr_decode_pdu_hdr() [all …]
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | ntlmssp.c | 229 } hdr; in ntlmssp_put_type1() local 237 mb2.mb_count = sizeof (hdr); in ntlmssp_put_type1() 261 bcopy(ntlmssp_id, &hdr.h_id, ID_SZ); in ntlmssp_put_type1() 262 hdr.h_type = NTLMSSP_MSGTYPE_NEGOTIATE; in ntlmssp_put_type1() 263 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type1() 271 (void) mb_put_sb_string(&mb2, &hdr.h_cldom, NULL, 0); in ntlmssp_put_type1() 272 (void) mb_put_sb_string(&mb2, &hdr.h_wksta, NULL, 0); in ntlmssp_put_type1() 278 (void) mb_put_mem(out_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_put_type1() 279 (void) mb_put_uint32le(out_mb, hdr.h_type); in ntlmssp_put_type1() 280 (void) mb_put_uint32le(out_mb, hdr.h_flags); in ntlmssp_put_type1() [all …]
|