Home
last modified time | relevance | path

Searched refs:buf_end (Results 1 – 15 of 15) sorted by relevance

/src/contrib/jemalloc/src/
H A Dbuf_writer.c37 assert(buf_writer->buf_end <= buf_writer->buf_size); in buf_writer_assert()
64 buf_writer->buf_end = 0; in buf_writer_init()
75 buf_writer->buf[buf_writer->buf_end] = '\0'; in buf_writer_flush()
77 buf_writer->buf_end = 0; in buf_writer_flush()
91 if (buf_writer->buf_end == buf_writer->buf_size) { in buf_writer_cb()
95 size_t buf_remain = buf_writer->buf_size - buf_writer->buf_end; in buf_writer_cb()
97 memcpy(buf_writer->buf + buf_writer->buf_end, s + i, n); in buf_writer_cb()
98 buf_writer->buf_end += n; in buf_writer_cb()
134 buf_writer->buf_end += nread; in buf_writer_pipe()
136 if (buf_writer->buf_end == buf_writer->buf_size) { in buf_writer_pipe()
[all …]
/src/usr.bin/indent/
H A Dlexi.c182 if (++buf_ptr >= buf_end) in lexi()
210 if (buf_ptr >= buf_end) in lexi()
223 if (buf_ptr >= buf_end) in lexi()
231 if (buf_ptr >= buf_end) in lexi()
241 if (++buf_ptr >= buf_end) in lexi()
321 while (tp < buf_end) in lexi()
357 if (++buf_ptr >= buf_end) in lexi()
383 if (buf_ptr >= buf_end) in lexi()
391 if (buf_ptr >= buf_end) in lexi()
514 if (++buf_ptr >= buf_end) in lexi()
[all …]
H A Dpr_comment.c176 if (t_ptr >= buf_end) in pr_comment()
215 if (++buf_ptr >= buf_end) in pr_comment()
260 if (++buf_ptr >= buf_end) in pr_comment()
263 if (++buf_ptr >= buf_end) in pr_comment()
270 else if (++buf_ptr >= buf_end) in pr_comment()
276 if (++buf_ptr >= buf_end) /* get to next char after * */ in pr_comment()
281 if (++buf_ptr >= buf_end) in pr_comment()
305 if (buf_ptr >= buf_end) in pr_comment()
H A Dindent.c60 char *buf_ptr, *buf_end; variable
155 buf_ptr = buf_end = in_buffer; in main()
357 if (buf_ptr >= buf_end) in main()
369 if (++buf_ptr >= buf_end) /* get past / in buffer */ in main()
387 if (++buf_ptr >= buf_end) in main()
441 be_save = buf_end; in main()
446 buf_end = sc_end; in main()
482 if (buf_ptr >= buf_end) { in main()
1090 if (buf_ptr >= buf_end) in main()
1096 if (buf_ptr >= buf_end) in main()
[all …]
H A Dio.c286 buf_end = be_save; in fill_buffer()
288 if (buf_ptr < buf_end) in fill_buffer()
314 buf_end = p; in fill_buffer()
H A Dindent_globs.h129 extern char *buf_end; /* ptr to first after last char in
/src/sys/contrib/openzfs/module/nvpair/
H A Dnvpair.c3305 char *buf_end = (char *)nvp + nvp->nvp_size; in nvs_xdr_nvp_op() local
3314 if ((buf = NVP_NAME(nvp)) >= buf_end) in nvs_xdr_nvp_op()
3316 buflen = buf_end - buf; in nvs_xdr_nvp_op()
3343 if ((buf = NVP_VALUE(nvp)) >= buf_end) in nvs_xdr_nvp_op()
3345 buflen = buf_end - buf; in nvs_xdr_nvp_op()
3685 #define NVP(buf, size, len, buf_end, elem, type, vtype, ptype, format) { \ argument
3695 buf = size == 0 ? NULL : buf_end - size; \
3699 #define NVPA(buf, size, len, buf_end, elem, type, vtype, ptype, format) \ argument
3712 buf = size == 0 ? NULL : buf_end - size; \
3736 char *buf_end = &buf[size]; in nvlist_snprintf() local
[all …]
/src/contrib/wpa/hs20/client/
H A Dest.c521 char *pos, *end, *buf_end; in generate_csr() local
533 buf_end = pos + ptr->length; in generate_csr()
536 while (pos < buf_end && *pos != '\n') in generate_csr()
538 if (pos == buf_end) { in generate_csr()
545 while (end < buf_end && *end != '-') in generate_csr()
/src/contrib/jemalloc/include/jemalloc/internal/
H A Dbuf_writer.h18 size_t buf_end; member
/src/contrib/less/
H A Dpattern.c266 constant char *buf_end = buf + buf_len; in match() local
269 for ( ; buf < buf_end; buf++) in match()
279 if (pp == pattern_end || lp == buf_end) in match()
/src/contrib/libarchive/libarchive/
H A Darchive_write_set_format_shar.c344 char *buf, *buf_end; in archive_write_shar_data_sed() local
374 buf_end = shar->work.s + ensured; in archive_write_shar_data_sed()
389 if (buf >= buf_end) { in archive_write_shar_data_sed()
/src/contrib/bmake/
H A Dparse.c140 char *buf_end; /* buf_end[-1] == '\n' */ member
2240 curFile->buf_end = curFile->buf.data + curFile->buf.len; in Parse_PushInput()
2364 curFile->buf_end = curFile->buf.data + curFile->buf.len; in ParseEOF()
2423 char *buf_end = curFile->buf_end; in ParseRawLine() local
2435 if (p == buf_end) { in ParseRawLine()
2452 if (p + 2 == buf_end) { in ParseRawLine()
2461 assert(p <= buf_end); in ParseRawLine()
/src/sys/net/
H A Dnetmap_user.h289 void * const buf_end; member
1027 *(void **)(uintptr_t)&d->buf_end = in nm_mmap()
/src/contrib/elftoolchain/readelf/
H A Dreadelf.c7161 unsigned char *start, *end, *buf_end, *new_buf; in str_dump() local
7194 buf_end = start + sz; in str_dump()
7197 while (start < buf_end && !isprint(*start)) in str_dump()
7199 if (start >= buf_end) in str_dump()
7202 while (end < buf_end && isprint(*end)) in str_dump()
7211 if (end >= buf_end) in str_dump()
/src/sys/dev/cxgbe/common/
H A Dt4_hw.c3317 u32 *buf_end = (u32 *)(buf + buf_size); in t4_get_regs() local
3387 while (reg <= last_reg && bufp < buf_end) { in t4_get_regs()