/freebsd/contrib/netbsd-tests/lib/libc/regex/ |
H A D | t_exhaust.c | 79 p0(size_t len) in p0() argument 82 s1 = mkstr("\\(", len); in p0() 91 p1(size_t len) in p1() argument 110 s1 = mkstr(m, len); in ps() 111 s2 = mkstr(s, len); in ps() 121 p2(size_t len) in p2() argument 127 p3(size_t len) in p3() argument 133 p4(size_t len) in p4() argument 139 p5(size_t len) in p5() argument 145 p6(size_t len) in p6() argument [all …]
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_bitstr.c | 23 int ret, j, bits, len; in ossl_i2c_ASN1_BIT_STRING() local 29 len = a->length; in ossl_i2c_ASN1_BIT_STRING() 31 if (len > 0) { in ossl_i2c_ASN1_BIT_STRING() 35 for (; len > 0; len--) { in ossl_i2c_ASN1_BIT_STRING() 62 ret = 1 + len; in ossl_i2c_ASN1_BIT_STRING() 70 if (len > 0) { in ossl_i2c_ASN1_BIT_STRING() 71 memcpy(p, d, len); in ossl_i2c_ASN1_BIT_STRING() 72 p += len; in ossl_i2c_ASN1_BIT_STRING() 87 if (len < 1) { in ossl_c2i_ASN1_BIT_STRING() 92 if (len > INT_MAX) { in ossl_c2i_ASN1_BIT_STRING() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | gdb.c | 105 size_t len; member 305 io->len = 0; in io_buffer_reset() 447 len--; in parse_integer() 497 cur_resp.len += len; in send_data() 562 len--; in append_packet_data() 1099 len -= 1; in gdb_read_mem() 1212 len -= 1; in gdb_write_mem() 1266 len -= 2; in gdb_write_mem() 1427 len -= 1; in parse_breakpoint() 1466 data += len; in parse_breakpoint() [all …]
|
H A D | usb_mouse.c | 324 uint16_t len; in umouse_request() local 371 data->blen = len > 0 ? len - 1 : 0; in umouse_request() 397 data->bdone += len; in umouse_request() 428 len -= 2; in umouse_request() 431 if (len >= 2) { in umouse_request() 446 if (len > slen) { in umouse_request() 448 len = slen; in umouse_request() 514 if (len > 0) { in umouse_request() 683 int len, i, idx; in umouse_data_handler() local 711 len = data->blen; in umouse_data_handler() [all …]
|
/freebsd/contrib/ncurses/ncurses/widechar/ |
H A D | lib_cchar.c | 57 unsigned len; in NCURSES_EXPORT() local 71 if (len > CCHARW_MAX) in NCURSES_EXPORT() 72 len = CCHARW_MAX; in NCURSES_EXPORT() 78 for (i = 1; i < len; ++i) { in NCURSES_EXPORT() 80 len = i; in NCURSES_EXPORT() 87 if (len != 0) { in NCURSES_EXPORT() 124 int len; in getcchar() local 135 code = (len < CCHARW_MAX) ? (len + 1) : CCHARW_MAX; in getcchar() 138 } else if (len >= 0) { in getcchar() 145 wmemcpy(wch, wcval->chars, (size_t) len); in getcchar() [all …]
|
/freebsd/contrib/arm-optimized-routines/string/test/ |
H A D | strchrnul.c | 64 if (len > LEN || seekpos >= len || align >= ALIGN) in test() 68 src[i] = (i + len) & 1 ? seekchar : 0; in test() 70 s[len + i] = (i + len) & 1 ? seekchar : 0; in test() 71 for (int i = 0; i < len; i++) in test() 75 if (seekpos != -1 && (len + align) & 1) in test() 77 s[len] = '\0'; in test() 89 quote ("input", s, len); in test() 94 untag_buffer (s, len + 1, fun->test_mte); in test() 96 if (p != s + len) in test() 99 fun->name, s, 0, len, p, f, len); in test() [all …]
|
H A D | memmove.c | 71 for (i = 0; i < len + A; i++) in test() 76 for (i = 0; i < len; i++) in test() 79 p = fun->fun (d, s, len); in test() 82 for (i = 0; i < len + A; i++) in test() 87 len); in test() 111 for (int i = 0; i < len + A; i++) in test_overlap() 114 for (int i = 0; i < len; i++) in test_overlap() 116 for (int i = 0; i < len; i++) in test_overlap() 121 p = fun->fun (d, s, len); in test_overlap() 127 for (int i = 0; i < len + A; i++) in test_overlap() [all …]
|
H A D | __mtag_tag_zero_region.c | 22 untag_buffer (p, len, 1); in mtag_quoteat() 24 quoteat (prefix, p, len, at); in mtag_quoteat() 54 test (const struct fun *fun, int salign, int len) in test() argument 63 if (len > LEN || salign >= A) in test() 65 for (i = 0; i < len + 2 * A; i++) in test() 67 for (i = 0; i < len; i++) in test() 70 src = tag_buffer (src, len + 2 * A, 1); in test() 74 p = fun->fun (s, len); in test() 89 for (; i < salign + len; i++) in test() 99 for (; i < len + 2 * A; i++) in test() [all …]
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | coredump.c | 998 .len = 0x2000, 1051 .len = 0x7000, 1061 .len = 0x3000, 1071 .len = 0x3000, 1081 .len = 0x5000, 1091 .len = 0x6000, 1134 .len = 0x7000, 1144 .len = 0x3000, 1154 .len = 0x3000, 1501 len = hdr_len; in ath10k_coredump_build() [all …]
|
H A D | trace.h | 363 __entry->len = ath10k_frm_hdr_len(data, len); 371 __entry->len 391 __entry->len = len - ath10k_frm_hdr_len(data, len); 400 __entry->len 441 __entry->len = len; 450 __entry->len 459 u16 len, 480 __entry->len = len; 491 __entry->len 510 __entry->len = len; [all …]
|
/freebsd/usr.sbin/rtadvd/ |
H A D | control_server.c | 133 size_t len; in cm_getprop_ifilist() local 137 len = 0; in cm_getprop_ifilist() 167 size_t len; in cm_getprop_ifi() local 203 size_t len; in cm_getprop_rai() local 245 size_t len; in cm_getprop_ifi_ra_timer() local 291 size_t len; in cm_getprop_rti() local 295 len = 0; in cm_getprop_rti() 340 size_t len; in cm_getprop_pfx() local 344 len = 0; in cm_getprop_pfx() 396 len = 0; in cm_getprop_rdnss() [all …]
|
/freebsd/lib/libc/stdio/ |
H A D | open_memstream.c | 49 ssize_t len; member 63 if (newsize > ms->len) { in memstream_grow() 68 ms, ms->len, newsize); in memstream_grow() 70 memset(buf + ms->len + 1, 0, newsize - ms->len); in memstream_grow() 72 ms->len = newsize; in memstream_grow() 85 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in memstream_update() 98 if (len < tocopy) in memstream_write() 99 tocopy = len; in memstream_write() 133 if (pos + ms->len < 0) { in memstream_seek() 153 ms->offset = ms->len + pos; in memstream_seek() [all …]
|
/freebsd/usr.bin/grep/ |
H A D | file.c | 99 size_t len; in grep_fgetln() local 109 pc->ln.len= 0; in grep_fgetln() 116 len = p - bufpos; in grep_fgetln() 120 bufrem -= len; in grep_fgetln() 122 pc->ln.len = len; in grep_fgetln() 128 for (len = bufrem, off = 0; ; len += bufrem) { in grep_fgetln() 135 bufrem -= len; in grep_fgetln() 138 off = len; in grep_fgetln() 150 len += diff; in grep_fgetln() 158 pc->ln.len = len; in grep_fgetln() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | test_addr.c | 43 size_t len; in print_addr() local 50 if (addresses.len < 1) in print_addr() 81 size_t len; in truncated_addr() local 89 if (addresses.len != 1) in truncated_addr() 102 if (outlen != len) in truncated_addr() 112 if (len != outlen) in truncated_addr() 114 if (strlen(buf) != len) in truncated_addr() 126 truncated_addr(context, addr, len, len); in check_truncation() 128 for (i = 0; i < len; i++) in check_truncation() 143 if (range.len != 1) in match_addr() [all …]
|
/freebsd/sys/contrib/zlib/ |
H A D | inffast.c | 200 len -= op; in inflate_fast() 236 while (len > 2) { in inflate_fast() 240 len -= 3; in inflate_fast() 242 if (len) { in inflate_fast() 244 if (len > 1) in inflate_fast() 254 len -= 3; in inflate_fast() 256 if (len) { in inflate_fast() 258 if (len > 1) in inflate_fast() 290 len = bits >> 3; in inflate_fast() 291 in -= len; in inflate_fast() [all …]
|
/freebsd/contrib/bmake/ |
H A D | for.c | 125 n = f->vars.len; in ForLoop_Details() 154 size_t len; in ForLoop_ParseVarnames() local 159 f->vars.len = 0; in ForLoop_ParseVarnames() 163 for (len = 0; p[len] != '\0' && !ch_isspace(p[len]); len++) { in ForLoop_ParseVarnames() 168 p[len]); in ForLoop_ParseVarnames() 169 f->vars.len = 0; in ForLoop_ParseVarnames() 180 p += len; in ForLoop_ParseVarnames() 207 if (f->items.len % f->vars.len != 0) { in ForLoop_ParseItems() 211 (unsigned)f->items.len, (unsigned)f->vars.len); in ForLoop_ParseItems() 369 if (len != 0) { in AddEscaped() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_environment.c | 119 buflen = len; in kenv_dump() 132 len = min(len, buflen - done); in kenv_dump() 162 size_t len; in sys_kenv() local 223 if (len > uap->len) in sys_kenv() 224 len = uap->len; in sys_kenv() 232 len = uap->len; in sys_kenv() 307 KASSERT(len == 0 || len >= 2, in init_static_kenv() 525 int len; in _getenv_static_from() local 534 if (!strncmp(name, cp, len) && name[len] == 0) in _getenv_static_from() 564 int len; in kern_getenv() local [all …]
|
H A D | subr_sglist.c | 119 if (len == 0) in _sglist_append_buf() 142 len -= seglen; in _sglist_append_buf() 175 if (len == 0) in sglist_count() 203 if (len == 0) in sglist_count_vmpages() 206 len += pgoff; in sglist_count_vmpages() 209 for (i = 1; len > PAGE_SIZE; len -= PAGE_SIZE, i++) { in sglist_count_vmpages() 229 if (len == 0) in sglist_count_mbuf_epg() 359 if (len == 0) in sglist_append_phys() 498 if (len == 0) in sglist_append_vmpages() 513 for (; len > 0; i++, len -= seglen) { in sglist_append_vmpages() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_subst.c | 69 len = cmdp->argv[0]->len; len > 0; --len, ++p) { in ex_s() 226 ++len; in ex_s() 896 for (p = ptrn, len = plen; len > 0; ++p, --len) in re_compile() 1023 for (p = *ptrnp, len = *plenp, needlen = 0; len > 0; ++p, --len) in re_conv() 1085 for (p = *ptrnp, len = *plenp, t = bp; len > 0; ++p, --len) in re_conv() 1170 if (len > 0 && (p[len - 1] == '/' || p[len - 1] == '?')) in re_tag_conv() 1171 --len; in re_tag_conv() 1174 if (len > 0 && p[len - 1] == '$') { in re_tag_conv() 1197 for (; len > 0; --len) { in re_tag_conv() 1235 for (nspaces = 0, p = *ptrnp, len = *plenp; len > 0; ++p, --len) in re_cscope_conv() [all …]
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_internal.c | 195 *len = 16; in crypto_hash_finish() 199 *len = 16; in crypto_hash_finish() 204 *len = 20; in crypto_hash_finish() 208 *len = 20; in crypto_hash_finish() 214 *len = 32; in crypto_hash_finish() 218 *len = 32; in crypto_hash_finish() 229 *len = 48; in crypto_hash_finish() 240 *len = 64; in crypto_hash_finish() 250 *len = 16; in crypto_hash_finish() 270 *len = 20; in crypto_hash_finish() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_bcopy.c | 49 int len = 0; in _dump_packet() local 51 len += snprintf(buf, 255-len, "%s mb: %p mid: %2x:%-20s flags: 0x%x " in _dump_packet() 60 len += snprintf(buf + len, 255-len, in _dump_packet() 69 len += snprintf(buf + len, 255-len, "actrcvz: 0x%x |", in _dump_packet() 75 len += snprintf(buf + len, 255-len, "req_size: 0x%x |", in _dump_packet() 79 len += snprintf(buf + len, 255-len, "data_len: 0x%lx |", in _dump_packet() 85 len += snprintf(buf + len, 255-len, " | len: 0x%x |", in _dump_packet() 86 ntohl(rrch->len)); in _dump_packet() 91 len += snprintf(buf + len, 255-len, " | payload: 0x%lx, " in _dump_packet() 95 ntohl(srcah->len), ntohl(srcah->rkey), in _dump_packet() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_paragraph.c | 27 if (len == 0 || v_isempty(p, len)) { \ 46 if (p[0] != '.' || len < 2) \ 71 size_t lastlen, len; in v_paragraphf() local 115 if (len == 0 || v_isempty(p, len)) in v_paragraphf() 124 lastlen = len; in v_paragraphf() 132 if (len == 0 || v_isempty(p, len)) in v_paragraphf() 177 if (vp->m_start.cno == (len ? len - 1 : 0)) { in v_paragraphf() 195 vp->m_stop.cno = len ? len - 1 : 0; in v_paragraphf() 210 size_t len; in v_paragraphb() local 260 if (len == 0 || v_isempty(p, len)) in v_paragraphb() [all …]
|
/freebsd/crypto/openssl/ssl/record/ |
H A D | ssl3_buffer.c | 40 size_t len, align = 0, headerlen; in ssl3_setup_read_buffer() local 55 len = SSL3_RT_MAX_PLAIN_LENGTH in ssl3_setup_read_buffer() 64 len *= s->max_pipelines; in ssl3_setup_read_buffer() 66 if (b->default_len > len) in ssl3_setup_read_buffer() 67 len = b->default_len; in ssl3_setup_read_buffer() 78 b->len = len; in ssl3_setup_read_buffer() 93 if (len == 0) { in ssl3_setup_write_buffer() 122 if (thiswb->len != len) { in ssl3_setup_write_buffer() 129 p = OPENSSL_malloc(len); in ssl3_setup_write_buffer() 145 thiswb->len = len; in ssl3_setup_write_buffer() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-openflow.c | 96 if (len == 0) in of_data_print() 103 ND_TCHECK_LEN(cp, len); in of_data_print() 132 mti->decoder(ndo, cp, len); in of_message_print() 138 ND_TCHECK_LEN(cp, len); in of_message_print() 148 while (len) { in openflow_print() 160 if (len < 1) in openflow_print() 173 if (len < 2) in openflow_print() 180 if (len < 4) in openflow_print() 215 if (length - OF_HEADER_FIXLEN > len) in openflow_print() 223 ND_TCHECK_LEN(cp, len); in openflow_print() [all …]
|
/freebsd/tools/regression/sockets/sblock/ |
H A D | sblock.c | 68 ssize_t len; in blocking_recver() local 72 if (len < 0) in blocking_recver() 74 if (len == 0) in blocking_recver() 76 if (len != 1) in blocking_recver() 93 ssize_t len; in locking_recver() local 99 if (len < 0 && errno != EINTR) in locking_recver() 101 if (len < 0 && errno == EINTR) { in locking_recver() 105 if (len == 0) in locking_recver() 114 ssize_t len; in signaller() local 130 if (len < 0) { in signaller() [all …]
|