Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/titanic_41/usr/src/cmd/fm/eversholt/common/
H A Deftread.c80 struct eftheader hdr; in eftread_fopen() local
97 if (fread(&hdr, 1, sizeof (hdr), fp) < sizeof (hdr)) { in eftread_fopen()
102 hdr.magic = ntohl(hdr.magic); in eftread_fopen()
103 hdr.major = ntohs(hdr.major); in eftread_fopen()
104 hdr.minor = ntohs(hdr.minor); in eftread_fopen()
105 hdr.cmajor = ntohs(hdr.cmajor); in eftread_fopen()
106 hdr.cminor = ntohs(hdr.cminor); in eftread_fopen()
107 hdr.identlen = ntohl(hdr.identlen); in eftread_fopen()
108 hdr.dictlen = ntohl(hdr.dictlen); in eftread_fopen()
109 hdr.csum = ntohl(hdr.csum); in eftread_fopen()
[all …]
H A Deftwrite.c103 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 …]
/titanic_41/usr/src/lib/libsip/common/
H A Dsip_parse_generic.c359 sip_parse_hdr_empty(_sip_header_t *hdr, sip_parsed_header_t **phdr) in sip_parse_hdr_empty() argument
363 if (hdr == NULL || phdr == NULL) in sip_parse_hdr_empty()
369 if (hdr->sip_hdr_parsed != NULL) { in sip_parse_hdr_empty()
370 *phdr = hdr->sip_hdr_parsed; in sip_parse_hdr_empty()
379 parsed_header->sip_header = hdr; in sip_parse_hdr_empty()
496 sip_parse_hdr_parser1(_sip_header_t *hdr, sip_parsed_header_t **phdr, char sep) in sip_parse_hdr_parser1() argument
503 if ((ret = sip_prim_parsers(hdr, phdr)) != 0) in sip_parse_hdr_parser1()
510 hdr->sip_hdr_parsed = *phdr; in sip_parse_hdr_parser1()
518 parsed_header->sip_header = hdr; in sip_parse_hdr_parser1()
520 while (hdr->sip_hdr_current < hdr->sip_hdr_end) { in sip_parse_hdr_parser1()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Darc.c833 #define HDR_IN_HASH_TABLE(hdr) ((hdr)->b_flags & ARC_FLAG_IN_HASH_TABLE) argument
834 #define HDR_IO_IN_PROGRESS(hdr) ((hdr)->b_flags & ARC_FLAG_IO_IN_PROGRESS) argument
835 #define HDR_IO_ERROR(hdr) ((hdr)->b_flags & ARC_FLAG_IO_ERROR) argument
836 #define HDR_PREFETCH(hdr) ((hdr)->b_flags & ARC_FLAG_PREFETCH) argument
837 #define HDR_FREED_IN_READ(hdr) ((hdr)->b_flags & ARC_FLAG_FREED_IN_READ) argument
838 #define HDR_BUF_AVAILABLE(hdr) ((hdr)->b_flags & ARC_FLAG_BUF_AVAILABLE) argument
840 #define HDR_L2CACHE(hdr) ((hdr)->b_flags & ARC_FLAG_L2CACHE) argument
841 #define HDR_L2COMPRESS(hdr) ((hdr)->b_flags & ARC_FLAG_L2COMPRESS) argument
842 #define HDR_L2_READING(hdr) \ argument
843 (((hdr)->b_flags & ARC_FLAG_IO_IN_PROGRESS) && \
[all …]
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSDAAdvert.java49 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 DSSrvMsg.java59 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 DCSrvTypeMsg.java60 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 DSLPV1SAttrMsg.java57 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 DCAttrMsg.java59 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 DSLPV1SSrvTypeMsg.java54 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 DSSrvTypeMsg.java54 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 DSSAAdvert.java62 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 DCDAAdvert.java59 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 DCSrvMsg.java58 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 DSLPV1CDAAdvert.java54 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 DSAttrMsg.java61 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 …]
H A DCSAAdvert.java56 CSAAdvert(SLPHeaderV2 hdr, DataInputStream dis) in CSAAdvert() argument
58 super(hdr, SrvLocHeader.SAAdvert); in CSAAdvert()
64 byte[] urlBytes = hdr.getString(buf, dis); in CSAAdvert()
95 byte[] scopeBytes = hdr.getString(buf, dis); in CSAAdvert()
97 hdr.scopes = in CSAAdvert()
98 hdr.parseCommaSeparatedListIn(buf.toString(), true); in CSAAdvert()
102 hdr.unescapeScopeStrings(hdr.scopes); in CSAAdvert()
106 DATable.validateScopes(hdr.scopes, hdr.locale); in CSAAdvert()
110 byte attrBytes[] = hdr.parseAttributeVectorIn(attrs, dis, false); in CSAAdvert()
118 hdr.putInteger(urlBytes.length, abaos); in CSAAdvert()
[all …]
H A DRequestHandler.java520 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 DSLPServerHeaderV2.java209 SrvLocHeader hdr = null; in makeErrorReply() local
216 hdr = (SrvLocHeader)this.clone(); in makeErrorReply()
226 hdr.fresh = false; in makeErrorReply()
227 hdr.overflow = false; in makeErrorReply()
228 hdr.functionCode = replyFunctionCode; in makeErrorReply()
238 hdr.errCode = ((ServiceLocationException)ex).getErrorCode(); in makeErrorReply()
240 if (!ServiceLocationException.validWireErrorCode(hdr.errCode)) { in makeErrorReply()
241 hdr.errCode = ServiceLocationException.INTERNAL_ERROR; in makeErrorReply()
247 hdr.errCode = ServiceLocationException.PARSE_ERROR; in makeErrorReply()
250 hdr.errCode = ServiceLocationException.INTERNAL_ERROR; in makeErrorReply()
[all …]
H A DSLPV1SSrvDereg.java54 SLPV1SSrvDereg(SrvLocHeader hdr, DataInputStream dis) in SLPV1SSrvDereg() argument
57 super(hdr, dis); in SLPV1SSrvDereg()
66 SLPHeaderV1 hdr = (SLPHeaderV1)getHeader(); in initialize() local
72 hdr.parseServiceURLIn(dis, in initialize()
76 hdr.getString(buf, dis); in initialize()
78 tags = hdr.parseCommaSeparatedListIn(buf.toString().trim(), true); in initialize()
91 hdr.charCode); in initialize()
117 hdr.locale); in initialize()
122 hdr.scopes = (Vector)rec.getScopes().clone(); in initialize()
131 hdr.scopes = (Vector)config.getSAConfiguredScopes().clone(); in initialize()
[all …]
/titanic_41/usr/src/tools/onbld/Checks/
H A DHdrChk.py135 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 …]
/titanic_41/usr/src/cmd/audio/audioconvert/
H A Dparse.cc108 AudioHdr& hdr) in audioformat_parse() argument
113 hdr.sample_rate = 48000; in audioformat_parse()
114 hdr.channels = 2; in audioformat_parse()
115 hdr.encoding = LINEAR; in audioformat_parse()
116 hdr.samples_per_unit = 1; in audioformat_parse()
117 hdr.bytes_per_unit = 2; in audioformat_parse()
119 hdr.sample_rate = 44100; in audioformat_parse()
120 hdr.channels = 2; in audioformat_parse()
121 hdr.encoding = LINEAR; in audioformat_parse()
122 hdr.samples_per_unit = 1; in audioformat_parse()
[all …]
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dntlmssp.c229 } hdr; in ntlmssp_put_type1() local
237 mb2.mb_count = sizeof (hdr); in ntlmssp_put_type1()
263 bcopy(ntlmssp_id, &hdr.h_id, ID_SZ); in ntlmssp_put_type1()
264 hdr.h_type = NTLMSSP_MSGTYPE_NEGOTIATE; in ntlmssp_put_type1()
265 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type1()
273 (void) mb_put_sb_string(&mb2, &hdr.h_cldom, NULL, 0); in ntlmssp_put_type1()
274 (void) mb_put_sb_string(&mb2, &hdr.h_wksta, NULL, 0); in ntlmssp_put_type1()
280 (void) mb_put_mem(out_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_put_type1()
281 (void) mb_put_uint32le(out_mb, hdr.h_type); in ntlmssp_put_type1()
282 (void) mb_put_uint32le(out_mb, hdr.h_flags); in ntlmssp_put_type1()
[all …]
/titanic_41/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_marshal.c128 ndr_common_header_t hdr; in ndr_buf_decode() local
151 rc = ndr_decode_hdr_common(&nbuf->nb_nds, &hdr); in ndr_buf_decode()
155 if (!NDR_IS_SINGLE_FRAG(hdr.pfc_flags)) in ndr_buf_decode()
252 ndr_common_header_t *hdr = &mxa->recv_hdr.common_hdr; in ndr_decode_pdu_hdr() local
256 rc = ndr_decode_hdr_common(nds, hdr); in ndr_decode_pdu_hdr()
263 if ((hdr->rpc_vers != 5) || (hdr->rpc_vers_minor != 0)) in ndr_decode_pdu_hdr()
266 mxa->ptype = hdr->ptype; in ndr_decode_pdu_hdr()
271 ndr_decode_hdr_common(ndr_stream_t *nds, ndr_common_header_t *hdr) in ndr_decode_hdr_common() argument
291 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0); in ndr_decode_hdr_common()
299 charset = hdr->packed_drep.intg_char_rep & NDR_REPLAB_CHAR_MASK; in ndr_decode_hdr_common()
[all …]
/titanic_41/usr/src/lib/libdns_sd/common/
H A Ddnssd_clientstub.c308 ipc_msg_hdr *hdr; in create_hdr() local
335 hdr = (void *)msg; in create_hdr()
336 hdr->datalen = datalen; in create_hdr()
337 hdr->version = VERSION; in create_hdr()
338 hdr->op = op; in create_hdr()
339 if (reuse_socket) hdr->flags |= IPC_FLAGS_REUSE_SOCKET; in create_hdr()
349 return hdr; in create_hdr()
418 ipc_msg_hdr *hdr = msg; in deliver_request() local
419 uint32_t datalen = hdr->datalen; in deliver_request()
427 if (!hdr || sdr->sockfd < 0) return kDNSServiceErr_Unknown; in deliver_request()
[all …]

12345678910>>...19