Home
last modified time | relevance | path

Searched refs:bufend (Results 1 – 25 of 39) sorted by relevance

12

/netbsd/external/bsd/tradcpp/dist/
H A Dfiles.c196 bufend = 0; in file_read()
202 if (lineend >= bufend) { in file_read()
204 assert(bufend >= linestart); in file_read()
208 bufend -= linestart; in file_read()
212 if (bufend >= bufmax) { in file_read()
228 result = read(fd, buf+bufend, bufmax - bufend); in file_read()
255 assert(bufend < bufmax); in file_read()
256 lineend = bufend++; in file_read()
259 bufend += (size_t)result; in file_read()
284 bufend - nextlinestart); in file_read()
[all …]
/netbsd/external/gpl2/groff/dist/src/libs/libbib/
H A Dlinear.cpp42 char *bufend; member in file_buffer
164 assert(bufend[-1] == '\n'); in search_and_check()
196 if (p == bufend) in find_end()
287 : buffer(0), bufend(0) in file_buffer()
303 return bufend; in get_end()
349 bufend = buffer + 4 + size; in load()
350 if (bufend[-1] != '\n') in load()
351 *bufend++ = '\n'; in load()
404 assert(bufend - buffer > 0); in search()
406 assert(bufend[-1] == '\n'); in search()
[all …]
/netbsd/bin/pax/
H A Dbuf_subs.c124 bufend = buf + wrblksz; in wr_start()
165 bufend = buf + rdblksz; in rd_start()
166 bufpt = bufend; in rd_start()
266 bufend = buf + blksz; in appnd_start()
275 bufend = buf + blksz; in appnd_start()
280 bufend = buf + blksz; in appnd_start()
347 bufend = buf + res; in rd_sync()
446 cnt = bufend - bufpt; in rd_skip()
474 bufpt = bufend; in wr_fin()
500 cnt = bufend - bufpt; in wr_rdbuf()
[all …]
/netbsd/lib/libc/stdlib/
H A Dstrfmon.c98 *--bufend = *(avalue+avalue_size+padded); \
103 bufend -= thousands_sep_size; \
104 memcpy(bufend, thousands_sep, thousands_sep_size); \
523 char *bufend; in __format_grouped_double() local
588 bufend -= right_prec; in __format_grouped_double()
591 bufend -= decimal_point_size; in __format_grouped_double()
623 bufend -= avalue_size; in __format_grouped_double()
631 bufend -= padded; in __format_grouped_double()
632 memset(bufend, pad_char, (size_t) padded); in __format_grouped_double()
635 bufsize = rslt + bufsize - bufend; in __format_grouped_double()
[all …]
/netbsd/usr.bin/sort/
H A Dfiles.c91 makeline(FILE *fp, RECHEADER *recbuf, u_char *bufend, struct field *dummy2) in makeline() argument
112 while (pos < bufend) { in makeline()
132 if (recbuf->data < bufend) { in makeline()
144 makekey(FILE *fp, RECHEADER *recbuf, u_char *bufend, struct field *ftbl) in makekey() argument
152 overflow = enterkey(recbuf, bufend, line_data, line_size, ftbl); in makekey()
162 if (line_size > bufend - recbuf->data) { in makekey()
165 overflow = enterkey(recbuf, bufend, line_data, line_size, ftbl); in makekey()
H A Dfsort.c88 u_char *bufend; in fsort() local
99 bufend = (u_char *)buffer + bufsize; in fsort()
127 c = get(fp, crec, bufend, ftbl); in fsort()
169 bufend = (u_char *)buffer + bufsize; in fsort()
H A Dfields.c251 number(u_char *pos, const u_char *bufend, u_char *line, u_char *lineend, in number() argument
268 bufend--; in number()
271 if (pos + 1 + MAX_EXP_ENC > bufend) in number()
337 if (pos >= bufend) in number()
372 length(u_char *pos, const u_char *bufend, u_char *line, u_char *lineend, in length() argument
379 return number(pos, bufend, buf, buf + l, flag); in length()
/netbsd/external/bsd/tmux/dist/
H A Dcmd-paste-buffer.c53 const char *sepstr, *bufname, *bufdata, *bufend, *line; in cmd_paste_buffer_exec() local
85 bufend = bufdata + bufsize; in cmd_paste_buffer_exec()
88 line = memchr(bufdata, '\n', bufend - bufdata); in cmd_paste_buffer_exec()
97 if (bufdata != bufend) in cmd_paste_buffer_exec()
98 bufferevent_write(wp->event, bufdata, bufend - bufdata); in cmd_paste_buffer_exec()
/netbsd/external/gpl3/gdb/dist/gas/
H A Decoff.c3596 char **bufend, in ecoff_add_bytes() argument
3609 *bufend = *buf + want; in ecoff_add_bytes()
3619 char **bufend, in ecoff_padding_adjust() argument
3647 char **bufend, in ecoff_build_lineno() argument
3877 char **bufend, in ecoff_build_symbols() argument
4241 char **bufend, in ecoff_build_procs() argument
4330 char **bufend, in ecoff_build_aux() argument
4443 char **bufend, in ecoff_build_strings() argument
4482 char **bufend, in ecoff_build_ss() argument
4525 char **bufend, in ecoff_build_fdr() argument
[all …]
/netbsd/external/gpl3/binutils/dist/gas/
H A Decoff.c3587 char **bufend, in ecoff_add_bytes() argument
3600 *bufend = *buf + want; in ecoff_add_bytes()
3610 char **bufend, in ecoff_padding_adjust() argument
3638 char **bufend, in ecoff_build_lineno() argument
3868 char **bufend, in ecoff_build_symbols() argument
4232 char **bufend, in ecoff_build_procs() argument
4321 char **bufend, in ecoff_build_aux() argument
4434 char **bufend, in ecoff_build_strings() argument
4473 char **bufend, in ecoff_build_ss() argument
4516 char **bufend, in ecoff_build_fdr() argument
[all …]
/netbsd/external/gpl3/binutils.old/dist/gas/
H A Decoff.c3609 char **bufend, in ecoff_add_bytes() argument
3622 *bufend = *buf + want; in ecoff_add_bytes()
3632 char **bufend, in ecoff_padding_adjust() argument
3660 char **bufend, in ecoff_build_lineno() argument
3890 char **bufend, in ecoff_build_symbols() argument
4254 char **bufend, in ecoff_build_procs() argument
4343 char **bufend, in ecoff_build_aux() argument
4456 char **bufend, in ecoff_build_strings() argument
4495 char **bufend, in ecoff_build_ss() argument
4538 char **bufend, in ecoff_build_fdr() argument
[all …]
/netbsd/external/gpl3/gdb.old/dist/gas/
H A Decoff.c3596 char **bufend, in ecoff_add_bytes() argument
3609 *bufend = *buf + want; in ecoff_add_bytes()
3619 char **bufend, in ecoff_padding_adjust() argument
3647 char **bufend, in ecoff_build_lineno() argument
3877 char **bufend, in ecoff_build_symbols() argument
4241 char **bufend, in ecoff_build_procs() argument
4330 char **bufend, in ecoff_build_aux() argument
4443 char **bufend, in ecoff_build_strings() argument
4482 char **bufend, in ecoff_build_ss() argument
4525 char **bufend, in ecoff_build_fdr() argument
[all …]
/netbsd/external/gpl2/groff/dist/src/include/
H A Dsearch.h47 const char *bufend, const char **start = 0)
49 int check_match(const char *buf, const char *bufend, const char *match,
56 int search(const char *buf, const char *bufend,
/netbsd/external/bsd/ipf/dist/ipsd/
H A Dsbpf.c95 register u_char *bp, *cp, *bufend; local
105 bufend = buf + cc;
109 while (bp < bufend) {
H A Dsnit.c81 register u_char *bp, *cp, *bufend; local
94 bufend = buf + cc;
98 while (bp < bufend) {
H A Dsdlpi.c87 register u_char *bp, *cp, *bufend; local
118 bufend = buf + cc;
122 while (bp < bufend) {
/netbsd/external/gpl3/gdb/dist/readline/readline/
H A Dhistfile.c265 char *input, *buffer, *bufend, *last_ts; in read_history_range() local
357 bufend = buffer + chars_read; in read_history_range()
358 *bufend = '\0'; /* null-terminate buffer for timestamp checks */ in read_history_range()
377 for (line_start = line_end = buffer; line_end < bufend && current_line < from; line_end++) in read_history_range()
393 for (line_end = p; line_end < bufend && *line_end != '\n'; line_end++) in read_history_range()
400 for (line_end = line_start; line_end < bufend; line_end++) in read_history_range()
/netbsd/external/gpl3/gdb.old/dist/readline/readline/
H A Dhistfile.c265 char *input, *buffer, *bufend, *last_ts; in read_history_range() local
357 bufend = buffer + chars_read; in read_history_range()
358 *bufend = '\0'; /* null-terminate buffer for timestamp checks */ in read_history_range()
377 for (line_start = line_end = buffer; line_end < bufend && current_line < from; line_end++) in read_history_range()
393 for (line_end = p; line_end < bufend && *line_end != '\n'; line_end++) in read_history_range()
400 for (line_end = line_start; line_end < bufend; line_end++) in read_history_range()
/netbsd/usr.bin/mail/
H A Dsupport.c457 char *bufend; in skin() local
468 bufend = nbuf; in skin()
469 for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; /*EMPTY*/) { in skin()
506 cp2 = bufend; in skin()
543 bufend = cp2; in skin()
H A Dformat.c368 snarf_comment(char **buf, char *bufend, const char *string) in snarf_comment() argument
376 qend = buf ? bufend : NULL; in snarf_comment()
407 snarf_quote(char **buf, char *bufend, const char *string) in snarf_quote() argument
414 qend = buf ? bufend : NULL; in snarf_quote()
/netbsd/external/gpl2/xcvs/dist/diff/
H A Dio.c207 char const *bufend = current->buffer + current->buffered_chars; local
284 if ((char const *) p == bufend
295 bufend = suffix_begin = (char const *) p;
362 if ((char const *) p == bufend)
/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dglob.c177 Char *bufnext, *bufend, patbuf[MaxPathLen+1]; in glob() local
191 bufend = bufnext + MaxPathLen; in glob()
194 while (bufnext < bufend && (c = *patnext++) != CHAR_EOS) in glob()
206 while (bufnext < bufend && (c = *patnext++) != CHAR_EOS) in glob()
/netbsd/external/gpl2/diffutils/dist/src/
H A Dio.c237 char const *bufend = FILE_BUFFER (current) + current->buffered; in find_and_hash_each_line() local
391 if ((char const *) p == bufend in find_and_hash_each_line()
402 bufend = suffix_begin = (char const *) p; in find_and_hash_each_line()
489 if ((char const *) p == bufend) in find_and_hash_each_line()
/netbsd/external/gpl3/gcc/dist/libquadmath/printf/
H A Dprintf_fp.c121 static wchar_t *group_number (wchar_t *buf, wchar_t *bufend,
1279 group_number (wchar_t *buf, wchar_t *bufend, unsigned int intdig_no, in group_number() argument
1285 return bufend; in group_number()
1289 (bufend - (buf + intdig_no)) * sizeof (wchar_t)); in group_number()
1317 return bufend + ngroups; in group_number()
/netbsd/external/gpl3/gcc.old/dist/libquadmath/printf/
H A Dprintf_fp.c121 static wchar_t *group_number (wchar_t *buf, wchar_t *bufend,
1279 group_number (wchar_t *buf, wchar_t *bufend, unsigned int intdig_no, in group_number() argument
1285 return bufend; in group_number()
1289 (bufend - (buf + intdig_no)) * sizeof (wchar_t)); in group_number()
1317 return bufend + ngroups; in group_number()

12