/freebsd/contrib/bc/tests/bc/ |
H A D | length.txt | 1 length(0) 2 length(0.0000) 3 length(0.00000000) 4 length(0.00000000000) 5 length(1) 6 length(12) 7 length(123) 8 length(1234) 9 length(12345) 10 length(123456) [all …]
|
/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | BaseMemoryLib.h | 19 This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns 23 If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). 24 If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). 28 @param Length The number of bytes to copy from SourceBuffer to DestinationBuffer. 38 IN UINTN Length 44 This function fills Length bytes of Buffer with Value, and returns Buffer. 46 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). 49 @param Length The number of bytes to set. 50 @param Value The value with which to fill Length bytes of Buffer. 59 IN UINTN Length, [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ARMWinEHPrinter.h | 32 uint8_t Length; member 39 unsigned Length, bool Prologue); 41 unsigned Length, bool Prologue); 43 unsigned Length, bool Prologue); 45 unsigned Length, bool Prologue); 47 unsigned Length, bool Prologue); 49 unsigned Length, bool Prologue); 51 unsigned Length, bool Prologue); 53 unsigned Length, bool Prologue); 55 unsigned Length, boo [all...] |
/freebsd/contrib/unbound/sldns/ |
H A D | str2wire.h | 59 * @param len: length of the buffer on input, length of the result on output. 69 * @param len: length of the buffer on input, length of the result on output. 71 * @param origin_len: length of origin. 80 * @param len: returned length of wireformat. 93 * @param len: on input the length of the buffer, on output the amount of 95 * @param dname_len: if non-NULL, filled with the dname length as result. 99 * @param origin_len: length of origin. 101 * @param prev_len: length of prev. 114 * @param len: on input the length of the buffer, on output the amount of 116 * @param dname_len: if non-NULL, filled with the dname length as result. [all …]
|
H A D | wire2str.h | 49 * @param len: length of packet. 58 * @param len: length of the rr wireformat. 66 * @param dname_len: length of the dname. 95 * @param slen: length of the string buffer. Adjusted at end. 105 * @param slen: length of the string buffer. Adjusted at end. 117 * @param data_len: length of packet. 135 * @param data_len: length of packet. 156 * @param data_len: length of data buffer. 158 * @param str_len: length of string buffer. 160 * @param pktlen: length of packet buffer. [all …]
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | der_cmp.c | 39 if (p->length != q->length) in der_heim_oid_cmp() 40 return p->length - q->length; in der_heim_oid_cmp() 43 p->length * sizeof(*p->components)); in der_heim_oid_cmp() 50 if (p->length != q->length) in der_heim_octet_string_cmp() 51 return p->length - q->length; in der_heim_octet_string_cmp() 52 return memcmp(p->data, q->data, p->length); in der_heim_octet_string_cmp() 74 if (p->length != q->length) in der_heim_bit_string_cmp() 75 return p->length - q->length; in der_heim_bit_string_cmp() 76 i = memcmp(p->data, q->data, p->length / 8); in der_heim_bit_string_cmp() 79 if ((p->length % 8) == 0) in der_heim_bit_string_cmp() [all …]
|
H A D | der_copy.c | 102 to->length = from->length; in der_copy_ia5_string() 103 to->data = malloc(to->length + 1); 106 memcpy(to->data, from->data, to->length); in der_copy_bmp_string() 107 ((char *)to->data)[to->length] = '\0'; in der_copy_bmp_string() 121 to->length = from->length; in der_copy_universal_string() 122 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_universal_string() 123 if(to->length != 0 && to->data == NULL) in der_copy_universal_string() 125 memcpy(to->data, from->data, to->length * sizeo in der_copy_universal_string() [all...] |
/freebsd/contrib/tcpdump/ |
H A D | print-udp.c | 46 nd_uint16_t rh_len; /* length of message (in words) */ 94 vat_print(netdissect_options *ndo, const u_char *hdr, u_int length) in vat_print() argument 100 if (length < 2) { in vat_print() 101 ND_PRINT("udp/va/vat, length %u < 2", length); in vat_print() 108 length, in vat_print() 114 if (length < 8) { in vat_print() 115 ND_PRINT("udp/vat, length %u < 8", length); in vat_print() 121 length - 8, in vat_print() 143 ND_PRINT("udp/rtp, length %u < 8", len); in rtp_print() 163 ND_PRINT("udp/rtp, length %u < 12", dlen + 8); in rtp_print() [all …]
|
H A D | print-ipx.c | 49 nd_uint16_t length; /* Length, in bytes, including header */ member 71 ipx_print(netdissect_options *ndo, const u_char *p, u_int length) in ipx_print() argument 87 /* take length from ipx header */ in ipx_print() 88 length = GET_BE_U_2(ipx->length); in ipx_print() 90 if (length < ipxSize) { in ipx_print() 91 ND_PRINT("[length %u < %u]", length, ipxSize); in ipx_print() 95 ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize); in ipx_print() 112 ipx_decode(netdissect_options *ndo, const struct ipxHdr *ipx, const u_char *datap, u_int length) in ipx_decode() argument 119 ND_PRINT("ipx-ncp %u", length); in ipx_decode() 122 ipx_sap_print(ndo, datap, length); in ipx_decode() [all …]
|
H A D | print-ether.c | 44 * Length of an Ethernet header; note that some compilers may pad 136 ether_common_print(netdissect_options *ndo, const u_char *p, u_int length, in ether_common_print() argument 151 if (length < caplen) { in ether_common_print() 152 ND_PRINT("[length %u < caplen %u]", length, caplen); in ether_common_print() 154 return length; in ether_common_print() 164 orig_length = length; in ether_common_print() 176 length -= 2*MAC_ADDR_LEN; in ether_common_print() 190 length -= switch_tag_len; in ether_common_print() 196 * Get the length/type field, skip past it, and print it in ether_common_print() 202 length -= 2; in ether_common_print() [all …]
|
H A D | print-l2tp.c | 36 #define L2TP_FLAG_LENGTH 0x4000 /* Length */ 47 #define L2TP_AVP_HDR_LEN_MASK 0x03ff /* Length Mask */ 251 "Length is wrong", 266 print_string(netdissect_options *ndo, const u_char *dat, u_int length) in print_string() argument 269 for (i=0; i<length; i++) { in print_string() 276 print_octets(netdissect_options *ndo, const u_char *dat, u_int length) in print_octets() argument 279 for (i=0; i<length; i++) { in print_octets() 301 l2tp_msgtype_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_msgtype_print() argument 303 if (length < 2) { in l2tp_msgtype_print() 312 l2tp_result_code_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_result_code_print() argument [all …]
|
H A D | print-ppp.c | 410 static void handle_ppp(netdissect_options *, u_int proto, const u_char *p, u_int length); 415 u_int proto, const u_char *pptr, u_int length) in handle_ctrl_proto() argument 428 if (length < 4) /* FIXME weak boundary checking */ in handle_ctrl_proto() 435 ND_PRINT("%s (0x%02x), id %u, length %u", in handle_ctrl_proto() 439 length + 2); in handle_ctrl_proto() 449 ND_PRINT("\n\tencoded length %u (< 4))", len); in handle_ctrl_proto() 453 if (len > length) { in handle_ctrl_proto() 454 ND_PRINT("\n\tencoded length %u (> packet length %u))", len, length); in handle_ctrl_proto() 457 length = len; in handle_ctrl_proto() 459 ND_PRINT("\n\tencoded length %u (=Option(s) length %u)", len, len - 4); in handle_ctrl_proto() [all …]
|
H A D | print-ip-demux.c | 38 u_int length, u_int ver, int fragmented, u_int ttl_hl, in ip_demux_print() argument 60 length -= advance; in ip_demux_print() 65 esp_print(ndo, bp, length, iph, ver, fragmented, ttl_hl); in ip_demux_print() 88 sctp_print(ndo, bp, iph, length); in ip_demux_print() 92 dccp_print(ndo, bp, iph, length); in ip_demux_print() 96 tcp_print(ndo, bp, length, iph, fragmented); in ip_demux_print() 100 udp_print(ndo, bp, length, iph, fragmented, ttl_hl); in ip_demux_print() 105 icmp_print(ndo, bp, length, iph, fragmented); in ip_demux_print() 115 icmp6_print(ndo, bp, length, iph, fragmented); in ip_demux_print() 137 igrp_print(ndo, bp, length); in ip_demux_print() [all …]
|
H A D | print-ip.c | 54 const u_char *cp, u_int length) in ip_printroute() argument 59 if (length < 3) { in ip_printroute() 60 ND_PRINT(" [bad length %u]", length); in ip_printroute() 63 if ((length + 1) & 3) in ip_printroute() 64 ND_PRINT(" [bad length %u]", length); in ip_printroute() 66 if (ptr < 3 || ((ptr + 1) & 3) || ptr > length + 1) in ip_printroute() 69 for (len = 3; len < length; len += 4) { in ip_printroute() 92 u_int length; in ip_finddst() local 97 length = IP_HL(ip) * 4; in ip_finddst() 98 if (length < sizeof(struct ip)) in ip_finddst() [all …]
|
H A D | print-aodv.c | 163 nd_uint8_t length; /* extension length */ member 177 const struct aodv_ext *ep, u_int length) in aodv_extension() argument 186 if (length < sizeof(struct aodv_hello)) in aodv_extension() 188 if (GET_U_1(ep->length) < 4) { in aodv_extension() 189 ND_PRINT("\n\text HELLO - bad length %u", in aodv_extension() 190 GET_U_1(ep->length)); in aodv_extension() 199 GET_U_1(ep->length)); in aodv_extension() 209 aodv_rreq(netdissect_options *ndo, const u_char *dat, u_int length) in aodv_rreq() argument 215 if (length < sizeof(*ap)) in aodv_rreq() 218 "\tdst %s seq %u src %s seq %u", length, in aodv_rreq() [all …]
|
H A D | print-fr.c | 41 * the frame relay header has a variable length 46 * minimum header length is 2 bytes 47 * maximum header length is 4 bytes 94 /* Finds out Q.922 address length, DLCI and flags. Returns 1 on success, 96 * save the flags dep. on address length 100 u_int *addr_len, uint32_t *flags, u_int length) in parse_q922_header() argument 102 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header() 107 if (!ND_TTEST_1(p + 1) || length < 2) in parse_q922_header() 119 length -= 2; in parse_q922_header() 120 if (!ND_TTEST_1(p) || length < 1) in parse_q922_header() [all …]
|
/freebsd/sys/contrib/dev/acpica/common/ |
H A D | dmtbdump1.c | 196 ACPI_SIZE Length; in AcpiDmDumpAest() local 205 while (Offset < Table->Length) in AcpiDmDumpAest() 211 Status = AcpiDmDumpTable (Table->Length, Offset, NodeHeader, in AcpiDmDumpAest() 212 NodeHeader->Length, AcpiDmTableInfoAestHdr); in AcpiDmDumpAest() 226 Length = sizeof (ACPI_AEST_PROCESSOR); in AcpiDmDumpAest() 231 Length = sizeof (ACPI_AEST_MEMORY); in AcpiDmDumpAest() 236 Length = sizeof (ACPI_AEST_SMMU); in AcpiDmDumpAest() 244 Length = sizeof (ACPI_AEST_VENDOR); in AcpiDmDumpAest() 249 Length = sizeof (ACPI_AEST_VENDOR_V2); in AcpiDmDumpAest() 260 Length = sizeof (ACPI_AEST_GIC); in AcpiDmDumpAest() [all …]
|
H A D | dmtbdump2.c | 189 UINT32 Length; in AcpiDmDumpIort() local 199 Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIort); in AcpiDmDumpIort() 223 Status = AcpiDmDumpTable (Table->Length, Offset, Table, in AcpiDmDumpIort() 232 while (Offset < Table->Length) in AcpiDmDumpIort() 238 Length = ACPI_OFFSET (ACPI_IORT_NODE, NodeData); in AcpiDmDumpIort() 242 Status = AcpiDmDumpTable (Table->Length, Offset, in AcpiDmDumpIort() 243 IortNode, Length, AcpiDmTableInfoIortHdr); in AcpiDmDumpIort() 247 Status = AcpiDmDumpTable (Table->Length, Offset, in AcpiDmDumpIort() 248 IortNode, Length, AcpiDmTableInfoIortHdr3); in AcpiDmDumpIort() 256 NodeOffset = Length; in AcpiDmDumpIort() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | codec.c | 41 size_t length, in krb5_decode_EncTicketPart() argument 46 return decode_EncTicketPart(data, length, t, len); in krb5_decode_EncTicketPart() 52 size_t length, in krb5_encode_EncTicketPart() argument 57 return encode_EncTicketPart(data, length, t, len); in krb5_encode_EncTicketPart() 63 size_t length, in krb5_decode_EncASRepPart() argument 68 return decode_EncASRepPart(data, length, t, len); in krb5_decode_EncASRepPart() 74 size_t length, in krb5_encode_EncASRepPart() argument 79 return encode_EncASRepPart(data, length, t, len); in krb5_encode_EncASRepPart() 85 size_t length, in krb5_decode_EncTGSRepPart() argument 90 return decode_EncTGSRepPart(data, length, t, len); in krb5_decode_EncTGSRepPart() [all …]
|
H A D | aes-test.c | 45 hex_dump_data(const void *data, size_t length) in hex_dump_data() argument 49 hex_encode(data, length, &p); in hex_dump_data() 209 password.length = strlen(password.data); in string_to_key_test() 214 salt.saltvalue.length = strlen(salt.saltvalue.data); in string_to_key_test() 216 salt.saltvalue.length = keys[i].saltlen; in string_to_key_test() 219 opaque.length = sizeof(iter); in string_to_key_test() 228 PKCS5_PBKDF2_HMAC_SHA1(password.data, password.length, in string_to_key_test() 229 salt.saltvalue.data, salt.saltvalue.length, in string_to_key_test() 261 if (key.keyvalue.length != keys[i].keylen) { in string_to_key_test() 262 krb5_warnx(context, "%d: key wrong length (%lu/%lu)", in string_to_key_test() [all …]
|
/freebsd/crypto/heimdal/doc/doxyout/wind/man/man3/ |
H A D | wind.3 | 79 \fIin_len\fP the length of in. 83 …fP before processing out_len should be the length of the out variable, after processing it will be… 100 \fIin_len\fP length of the input string 104 \fIout_len\fP length of the output string. 123 \fIlen\fP the length of the input buffer. 129 \fIout_len\fP the output length 152 \fIin_len\fP the length of the in UCS2 string. 156 …fP before processing out_len should be the length of the out variable, after processing it will be… 167 Calculate the length of from converting a UCS2 string to an UTF-8 string. 173 \fIin_len\fP an UCS2 string length to convert. [all …]
|
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | kdf.exp | 11 Failure -- probably expected for output length=0 12 Failure -- probably expected for output length=1 13 Failure -- probably expected for output length=2 14 Failure -- probably expected for output length=3 15 Failure -- probably expected for output length=4 16 Failure -- probably expected for output length=5 17 Failure -- probably expected for output length=6 18 Failure -- probably expected for output length=7 19 Failure -- probably expected for output length=8 20 Failure -- probably expected for output length=9 [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | asn1_dsa_internal_test.c | 18 0x30, 0x06, /* SEQUENCE tag + length */ 19 0x02, 0x01, 0x01, /* INTEGER tag + length + content */ 20 0x02, 0x01, 0x02 /* INTEGER tag + length + content */ 24 0x30, 0x06, /* SEQUENCE tag + length */ 25 0x02, 0x01, 0x01, /* INTEGER tag + length + content */ 26 0x02, 0x01, 0x02, /* INTEGER tag + length + content */ 27 0x05, 0x00 /* NULL tag + length */ 31 0x30, 0x08, /* SEQUENCE tag + length */ 32 0x02, 0x02, 0x00, 0x81, /* INTEGER tag + length + content */ 33 0x02, 0x02, 0x00, 0x82 /* INTEGER tag + length + content */ [all …]
|
/freebsd/lib/libc/tests/sys/ |
H A D | queue_test.c | 47 int i, j, length; in ATF_TC_BODY() local 55 i = length = 0; in ATF_TC_BODY() 58 length++; in ATF_TC_BODY() 60 ATF_REQUIRE_EQ(length, 0); in ATF_TC_BODY() 73 j = length = 0; in ATF_TC_BODY() 78 length++; in ATF_TC_BODY() 80 ATF_REQUIRE_EQ(length, 1); in ATF_TC_BODY() 96 j = length = 0; in ATF_TC_BODY() 101 length++; in ATF_TC_BODY() 103 ATF_REQUIRE_EQ(length, 3); in ATF_TC_BODY() [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | 8003.c | 84 _gsskrb5_encode_om_uint32 (b->initiator_address.length, num); in hash_input_chan_bindings() 86 if (b->initiator_address.length) in hash_input_chan_bindings() 89 b->initiator_address.length); in hash_input_chan_bindings() 92 _gsskrb5_encode_om_uint32 (b->acceptor_address.length, num); in hash_input_chan_bindings() 94 if (b->acceptor_address.length) in hash_input_chan_bindings() 97 b->acceptor_address.length); in hash_input_chan_bindings() 98 _gsskrb5_encode_om_uint32 (b->application_data.length, num); in hash_input_chan_bindings() 100 if (b->application_data.length) in hash_input_chan_bindings() 103 b->application_data.length); in hash_input_chan_bindings() 130 if (fwd_data->length > 0 && (flags & GSS_C_DELEG_FLAG)) in _gsskrb5_create_8003_checksum() [all …]
|