Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 2009) sorted by relevance

12345678910>>...81

/dragonfly/contrib/binutils-2.27/libiberty/
HDdyn-string.c73 ds_struct_ptr->length = 0; in dyn_string_init()
176 ds->length = 0; in dyn_string_clear()
190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
195 dest->length = src->length; in dyn_string_copy()
206 int length = strlen (src); in dyn_string_copy_cstr() local
208 if (dyn_string_resize (dest, length) == NULL) in dyn_string_copy_cstr()
213 dest->length = length; in dyn_string_copy_cstr()
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
254 for (i = dest->length; i >= pos; --i) in dyn_string_insert()
255 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
[all …]
/dragonfly/contrib/binutils-2.34/libiberty/
HDdyn-string.c73 ds_struct_ptr->length = 0; in dyn_string_init()
176 ds->length = 0; in dyn_string_clear()
190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
195 dest->length = src->length; in dyn_string_copy()
206 int length = strlen (src); in dyn_string_copy_cstr() local
208 if (dyn_string_resize (dest, length) == NULL) in dyn_string_copy_cstr()
213 dest->length = length; in dyn_string_copy_cstr()
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
254 for (i = dest->length; i >= pos; --i) in dyn_string_insert()
255 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
[all …]
/dragonfly/contrib/gdb-7/libiberty/
HDdyn-string.c73 ds_struct_ptr->length = 0; in dyn_string_init()
176 ds->length = 0; in dyn_string_clear()
190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
195 dest->length = src->length; in dyn_string_copy()
206 int length = strlen (src); in dyn_string_copy_cstr() local
208 if (dyn_string_resize (dest, length) == NULL) in dyn_string_copy_cstr()
213 dest->length = length; in dyn_string_copy_cstr()
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
254 for (i = dest->length; i >= pos; --i) in dyn_string_insert()
255 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
[all …]
/dragonfly/contrib/gcc-4.7/libiberty/
HDdyn-string.c73 ds_struct_ptr->length = 0; in dyn_string_init()
176 ds->length = 0; in dyn_string_clear()
190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
195 dest->length = src->length; in dyn_string_copy()
206 int length = strlen (src); in dyn_string_copy_cstr() local
208 if (dyn_string_resize (dest, length) == NULL) in dyn_string_copy_cstr()
213 dest->length = length; in dyn_string_copy_cstr()
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
254 for (i = dest->length; i >= pos; --i) in dyn_string_insert()
255 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
[all …]
/dragonfly/contrib/gcc-8.0/libiberty/
HDdyn-string.c73 ds_struct_ptr->length = 0; in dyn_string_init()
176 ds->length = 0; in dyn_string_clear()
190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
195 dest->length = src->length; in dyn_string_copy()
206 int length = strlen (src); in dyn_string_copy_cstr() local
208 if (dyn_string_resize (dest, length) == NULL) in dyn_string_copy_cstr()
213 dest->length = length; in dyn_string_copy_cstr()
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
254 for (i = dest->length; i >= pos; --i) in dyn_string_insert()
255 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
[all …]
/dragonfly/contrib/tcpdump/
HDprint-l2tp.c268 print_string(netdissect_options *ndo, const u_char *dat, u_int length) in print_string() argument
271 for (i=0; i<length; i++) { in print_string()
278 print_octets(netdissect_options *ndo, const u_char *dat, u_int length) in print_octets() argument
281 for (i=0; i<length; i++) { in print_octets()
303 l2tp_msgtype_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_msgtype_print() argument
305 if (length < 2) { in l2tp_msgtype_print()
314 l2tp_result_code_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_result_code_print() argument
317 if (length < 2) { in l2tp_result_code_print()
323 length -= 2; in l2tp_result_code_print()
326 if (length == 0) in l2tp_result_code_print()
[all …]
HDprint-ipx.c51 nd_uint16_t length; /* Length, in bytes, including header */ member
73 ipx_print(netdissect_options *ndo, const u_char *p, u_int length) in ipx_print() argument
90 length = GET_BE_U_2(ipx->length); in ipx_print()
92 if (length < ipxSize) { in ipx_print()
93 ND_PRINT("[length %u < %u]", length, ipxSize); in ipx_print()
97 ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize); in ipx_print()
114 ipx_decode(netdissect_options *ndo, const struct ipxHdr *ipx, const u_char *datap, u_int length) in ipx_decode() argument
121 ND_PRINT("ipx-ncp %u", length); in ipx_decode()
124 ipx_sap_print(ndo, datap, length); in ipx_decode()
127 ipx_rip_print(ndo, datap, length); in ipx_decode()
[all …]
HDprint-ether.c138 ether_common_print(netdissect_options *ndo, const u_char *p, u_int length, in ether_common_print() argument
157 if (length < ETHER_HDRLEN + switch_tag_len) { in ether_common_print()
159 return length; in ether_common_print()
165 orig_length = length; in ether_common_print()
177 length -= 2*MAC_ADDR_LEN; in ether_common_print()
191 length -= switch_tag_len; in ether_common_print()
203 length -= 2; in ether_common_print()
223 int ret = macsec_print(ndo, &p, &length, &caplen, &hdrlen, in ether_common_print()
240 length -= 2; in ether_common_print()
264 if (length < 4) { in ether_common_print()
[all …]
HDprint-udp.c96 vat_print(netdissect_options *ndo, const u_char *hdr, u_int length) in vat_print() argument
102 if (length < 2) { in vat_print()
103 ND_PRINT("udp/va/vat, length %u < 2", length); in vat_print()
110 length, in vat_print()
116 if (length < 8) { in vat_print()
117 ND_PRINT("udp/vat, length %u < 8", length); in vat_print()
123 length - 8, in vat_print()
368 udp_print(netdissect_options *ndo, const u_char *bp, u_int length, in udp_print() argument
394 if (length < sizeof(struct udphdr)) { in udp_print()
396 ND_PRINT("truncated-udp %u", length); in udp_print()
[all …]
HDprint-ip-demux.c40 u_int length, u_int ver, int fragmented, u_int ttl_hl, in ip_demux_print() argument
62 length -= advance; in ip_demux_print()
67 esp_print(ndo, bp, length, iph, ver, fragmented, ttl_hl); in ip_demux_print()
90 sctp_print(ndo, bp, iph, length); in ip_demux_print()
94 dccp_print(ndo, bp, iph, length); in ip_demux_print()
98 tcp_print(ndo, bp, length, iph, fragmented); in ip_demux_print()
102 udp_print(ndo, bp, length, iph, fragmented, ttl_hl); in ip_demux_print()
107 icmp_print(ndo, bp, length, iph, fragmented); in ip_demux_print()
117 icmp6_print(ndo, bp, length, iph, fragmented); in ip_demux_print()
139 igrp_print(ndo, bp, length); in ip_demux_print()
[all …]
HDprint-fr.c102 u_int *addr_len, uint32_t *flags, u_int length) in parse_q922_header() argument
104 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header()
109 if (!ND_TTEST_1(p + 1) || length < 2) in parse_q922_header()
121 length -= 2; in parse_q922_header()
122 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header()
129 length--; in parse_q922_header()
132 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header()
145 q922_string(netdissect_options *ndo, const u_char *p, u_int length) in q922_string() argument
154 ret = parse_q922_header(ndo, p, &dlci, &addr_len, &flags, length); in q922_string()
196 fr_hdr_print(netdissect_options *ndo, int length, u_int addr_len, in fr_hdr_print() argument
[all …]
HDprint-radius.c770 const u_char *data, u_int length, u_short attr_code) in print_attr_string() argument
774 ND_TCHECK_LEN(data, length); in print_attr_string()
779 if (length < 3) in print_attr_string()
786 length--; in print_attr_string()
789 length-=2; in print_attr_string()
799 if (length < 1) in print_attr_string()
806 length--; in print_attr_string()
810 if (length < 1) in print_attr_string()
816 length--; in print_attr_string()
819 if (length < 1) in print_attr_string()
[all …]
HDprint-aodv.c165 nd_uint8_t length; /* extension length */ member
179 const struct aodv_ext *ep, u_int length) in aodv_extension() argument
188 if (length < sizeof(struct aodv_hello)) in aodv_extension()
190 if (GET_U_1(ep->length) < 4) { in aodv_extension()
192 GET_U_1(ep->length)); in aodv_extension()
201 GET_U_1(ep->length)); in aodv_extension()
211 aodv_rreq(netdissect_options *ndo, const u_char *dat, u_int length) in aodv_rreq() argument
217 if (length < sizeof(*ap)) in aodv_rreq()
220 "\tdst %s seq %u src %s seq %u", length, in aodv_rreq()
232 i = length - sizeof(*ap); in aodv_rreq()
[all …]
HDprint-ppp.c408 static void handle_ppp(netdissect_options *, u_int proto, const u_char *p, u_int length);
413 u_int proto, const u_char *pptr, u_int length) in handle_ctrl_proto() argument
426 if (length < 4) /* FIXME weak boundary checking */ in handle_ctrl_proto()
437 length + 2); in handle_ctrl_proto()
451 if (len > length) { in handle_ctrl_proto()
452 ND_PRINT("\n\tencoded length %u (> packet length %u))", len, length); in handle_ctrl_proto()
455 length = len; in handle_ctrl_proto()
459 if (length == 4) in handle_ctrl_proto()
468 if (length < 11) in handle_ctrl_proto()
532 if (length < 6) in handle_ctrl_proto()
[all …]
HDprint-tftp.c89 const u_char *bp, u_int length) in tftp_print() argument
100 ND_PRINT(", length %u", length); in tftp_print()
103 if (length < 2) in tftp_print()
112 length -= 2; in tftp_print()
118 if (length == 0) in tftp_print()
123 ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print()
128 length -= ui; in tftp_print()
131 if (length == 0) in tftp_print()
134 ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print()
138 length -= ui; in tftp_print()
[all …]
HDprint-llc.c150 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, in llc_print() argument
164 if (length < 3) { in llc_print()
167 return (length); in llc_print()
196 if (length < 4) { in llc_print()
199 return (length); in llc_print()
229 ipx_print(ndo, p, length); in llc_print()
256 length -= hdrlen; in llc_print()
266 if (!snap_print(ndo, p, length, caplen, src, dst, 2)) { in llc_print()
279 stp_print(ndo, p, length); in llc_print()
291 ip_print(ndo, p, length); in llc_print()
[all …]
HDprint-atalk.c96 const u_char *bp, u_int length) in llap_print() argument
105 if (length < sizeof(*lp)) { in llap_print()
106 ND_PRINT(" [|llap %u]", length); in llap_print()
107 return (length); in llap_print()
115 length -= sizeof(*lp); in llap_print()
120 if (length < ddpSSize) { in llap_print()
121 ND_PRINT(" [|sddp %u]", length); in llap_print()
122 return (length); in llap_print()
136 length -= ddpSSize; in llap_print()
138 ddp_print(ndo, bp, length, GET_U_1(sdp->type), 0, in llap_print()
[all …]
HDprint-ip.c56 const u_char *cp, u_int length) in ip_printroute() argument
61 if (length < 3) { in ip_printroute()
62 ND_PRINT(" [bad length %u]", length); in ip_printroute()
65 if ((length + 1) & 3) in ip_printroute()
66 ND_PRINT(" [bad length %u]", length); in ip_printroute()
68 if (ptr < 3 || ((ptr + 1) & 3) || ptr > length + 1) in ip_printroute()
71 for (len = 3; len < length; len += 4) { in ip_printroute()
94 u_int length; in ip_finddst() local
99 length = IP_HL(ip) * 4; in ip_finddst()
100 if (length < sizeof(struct ip)) in ip_finddst()
[all …]
HDprint-snmp.c863 asn1_decode(u_char *p, u_int length) in asn1_decode() argument
868 while (i >= 0 && length > 0) { in asn1_decode()
869 i = asn1_parse(ndo, p, length, &elem); in asn1_decode()
879 length -= i; in asn1_decode()
1217 u_short pduid, const u_char *np, u_int length) in varbind_print() argument
1227 if ((count = asn1_parse(ndo, np, length, &elem)) < 0) in varbind_print()
1234 if ((u_int)count < length) in varbind_print()
1235 ND_PRINT("[%d extra after SEQ of varbind]", length - count); in varbind_print()
1237 length = elem.asnlen; in varbind_print()
1240 for (ind = 1; length > 0; ind++) { in varbind_print()
[all …]
/dragonfly/crypto/libressl/crypto/asn1/
HDasn1_old_lib.c68 static void asn1_put_length(unsigned char **pp, int length);
77 size_t length; in ASN1_get_object() local
88 &indefinite, &length)) { in ASN1_get_object()
103 if (length > CBS_len(&cbs) || length > LONG_MAX) { in ASN1_get_object()
110 *plength = length; in ASN1_get_object()
125 ASN1_put_object(unsigned char **pp, int constructed, int length, int tag, in ASN1_put_object() argument
151 asn1_put_length(&p, length); in ASN1_put_object()
167 asn1_put_length(unsigned char **pp, int length) in asn1_put_length() argument
172 if (length <= 127) in asn1_put_length()
173 *(p++) = (unsigned char)length; in asn1_put_length()
[all …]
/dragonfly/sys/vfs/hammer2/
HDhammer2_lz4_encoder.h106 int length; in LZ4_compress_heap_limitedOutput() local
153 length = (int)(ip - anchor); in LZ4_compress_heap_limitedOutput()
156 if unlikely(op + length + (2 + 1 + LASTLITERALS) + (length>>8) > oend) in LZ4_compress_heap_limitedOutput()
159 if (length>=(int)RUN_MASK) in LZ4_compress_heap_limitedOutput()
161 int len = length-RUN_MASK; in LZ4_compress_heap_limitedOutput()
167 else *token = (BYTE)(length<<ML_BITS); in LZ4_compress_heap_limitedOutput()
170 LZ4_BLINDCOPY(anchor, op, length); in LZ4_compress_heap_limitedOutput()
203 length = (int)(ip - anchor); in LZ4_compress_heap_limitedOutput()
205 if unlikely(op + (1 + LASTLITERALS) + (length>>8) > oend) in LZ4_compress_heap_limitedOutput()
208 if (length>=(int)ML_MASK) in LZ4_compress_heap_limitedOutput()
[all …]
/dragonfly/usr.sbin/makefs/hammer2/
HDhammer2_lz4_encoder.h106 int length; in LZ4_compress_heap_limitedOutput() local
153 length = (int)(ip - anchor); in LZ4_compress_heap_limitedOutput()
156 if unlikely(op + length + (2 + 1 + LASTLITERALS) + (length>>8) > oend) in LZ4_compress_heap_limitedOutput()
159 if (length>=(int)RUN_MASK) in LZ4_compress_heap_limitedOutput()
161 int len = length-RUN_MASK; in LZ4_compress_heap_limitedOutput()
167 else *token = (BYTE)(length<<ML_BITS); in LZ4_compress_heap_limitedOutput()
170 LZ4_BLINDCOPY(anchor, op, length); in LZ4_compress_heap_limitedOutput()
203 length = (int)(ip - anchor); in LZ4_compress_heap_limitedOutput()
205 if unlikely(op + (1 + LASTLITERALS) + (length>>8) > oend) in LZ4_compress_heap_limitedOutput()
208 if (length>=(int)ML_MASK) in LZ4_compress_heap_limitedOutput()
[all …]
/dragonfly/sbin/hammer2/lz4/
HDhammer2_lz4_encoder.h106 int length; in LZ4_compress_heap_limitedOutput() local
153 length = (int)(ip - anchor); in LZ4_compress_heap_limitedOutput()
156 if unlikely(op + length + (2 + 1 + LASTLITERALS) + (length>>8) > oend) in LZ4_compress_heap_limitedOutput()
159 if (length>=(int)RUN_MASK) in LZ4_compress_heap_limitedOutput()
161 int len = length-RUN_MASK; in LZ4_compress_heap_limitedOutput()
167 else *token = (BYTE)(length<<ML_BITS); in LZ4_compress_heap_limitedOutput()
170 LZ4_BLINDCOPY(anchor, op, length); in LZ4_compress_heap_limitedOutput()
203 length = (int)(ip - anchor); in LZ4_compress_heap_limitedOutput()
205 if unlikely(op + (1 + LASTLITERALS) + (length>>8) > oend) in LZ4_compress_heap_limitedOutput()
208 if (length>=(int)ML_MASK) in LZ4_compress_heap_limitedOutput()
[all …]
/dragonfly/usr.bin/telnet/
HDutilities.c120 Dump(char direction, unsigned char *buffer, int length) in Dump() argument
129 while (length) { in Dump()
134 buffer = buffer + min(length, BYTES_PER_LINE/2); in Dump()
141 length -= BYTES_PER_LINE/2; in Dump()
144 buffer = buffer + min(length, BYTES_PER_LINE); in Dump()
149 length -= BYTES_PER_LINE; in Dump()
157 if (length < 0) { in Dump()
279 printsub(char direction, unsigned char *pointer, int length) in printsub() argument
292 if (length >= 3) { in printsub()
295 i = pointer[length-2]; in printsub()
[all …]
/dragonfly/contrib/libarchive/libarchive/
HDarchive_entry_sparse.c54 la_int64_t offset, la_int64_t length) in archive_entry_sparse_add_entry() argument
58 if (offset < 0 || length < 0) in archive_entry_sparse_add_entry()
61 if (offset > INT64_MAX - length || in archive_entry_sparse_add_entry()
62 offset + length > archive_entry_size(entry)) in archive_entry_sparse_add_entry()
66 if (sp->offset + sp->length > offset) in archive_entry_sparse_add_entry()
69 if (sp->offset + sp->length == offset) { in archive_entry_sparse_add_entry()
70 if (sp->offset + sp->length + length < 0) in archive_entry_sparse_add_entry()
75 sp->length += length; in archive_entry_sparse_add_entry()
85 sp->length = length; in archive_entry_sparse_add_entry()
119 sp->length >= archive_entry_size(entry)) { in archive_entry_sparse_count()
[all …]

12345678910>>...81