| /netbsd-src/external/bsd/tradcpp/dist/ |
| H A D | files.c | 181 size_t bufend, bufmax, linestart, lineend, nextlinestart, tmp; in file_read() local 196 bufend = 0; in file_read() 202 if (lineend >= bufend) { in file_read() 204 assert(bufend >= linestart); in file_read() 205 if (linestart > 0 && bufend > linestart) { in file_read() 207 memmove(buf, buf+linestart, 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() 236 } else if (result == 0 && bufend == linestart) { in file_read() [all …]
|
| /netbsd-src/external/gpl2/groff/dist/src/libs/libbib/ |
| H A D | linear.cpp | 42 char *bufend; member in file_buffer 158 static const char *find_end(const char *bufend, const char *p); 161 const char *buf, const char *bufend, const char **start) const in search_and_check() argument 164 assert(bufend[-1] == '\n'); in search_and_check() 167 const char *found = key->search(ptr, bufend); in search_and_check() 170 if (check_match(buf, bufend, found, key->length(), &ptr, start)) in search_and_check() 192 static const char *find_end(const char *bufend, const char *p) in find_end() argument 196 if (p == bufend) in find_end() 209 int linear_searcher::check_match(const char *buf, const char *bufend, in check_match() argument 259 *cont = skip_field(bufend, match + matchlen); in check_match() [all …]
|
| /netbsd-src/lib/libc/stdlib/ |
| H A D | strfmon.c | 96 *--bufend = *(avalue + avalue_size + padded); \ 101 bufend -= thousands_sep_size; \ 102 memcpy(bufend, thousands_sep, thousands_sep_size); \ 537 char *bufend; in __format_grouped_double() local 592 bufend = rslt + bufsize - 1; /* reserve space for trailing '\0' */ in __format_grouped_double() 602 bufend -= right_prec; in __format_grouped_double() 603 memcpy(bufend, avalue + avalue_size + padded - right_prec, in __format_grouped_double() 605 bufend -= decimal_point_size; in __format_grouped_double() 606 memcpy(bufend, decimal_point, decimal_point_size); in __format_grouped_double() 636 bufend -= avalue_size; in __format_grouped_double() [all …]
|
| /netbsd-src/usr.bin/sort/ |
| H A D | files.c | 91 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 D | fsort.c | 88 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 D | fields.c | 251 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-src/external/bsd/tmux/dist/ |
| H A D | cmd-paste-buffer.c | 53 const char *sepstr, *bufname, *bufdata, *bufend, *line; in cmd_paste_buffer_exec() local 90 bufend = bufdata + bufsize; in cmd_paste_buffer_exec() 93 line = memchr(bufdata, '\n', bufend - bufdata); in cmd_paste_buffer_exec() 102 if (bufdata != bufend) in cmd_paste_buffer_exec() 103 bufferevent_write(wp->event, bufdata, bufend - bufdata); in cmd_paste_buffer_exec()
|
| /netbsd-src/external/gpl3/binutils/dist/gas/ |
| H A D | ecoff.c | 1432 static char *ecoff_add_bytes (char **buf, char **bufend, 1435 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1438 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1441 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1444 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1447 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1449 static unsigned long ecoff_build_strings (char **buf, char **bufend, 1453 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1456 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 3585 char **bufend, in ecoff_add_bytes() argument [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gas/ |
| H A D | ecoff.c | 1432 static char *ecoff_add_bytes (char **buf, char **bufend, 1435 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1438 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1441 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1444 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1447 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1449 static unsigned long ecoff_build_strings (char **buf, char **bufend, 1453 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 1456 (const struct ecoff_debug_swap *backend, char **buf, char **bufend, 3587 char **bufend, in ecoff_add_bytes() argument [all …]
|
| /netbsd-src/external/gpl2/groff/dist/src/include/ |
| H A D | search.h | 47 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-src/external/bsd/ipf/dist/ipsd/ |
| H A D | sbpf.c | 95 register u_char *bp, *cp, *bufend; local 105 bufend = buf + cc; 109 while (bp < bufend) {
|
| H A D | snit.c | 81 register u_char *bp, *cp, *bufend; local 94 bufend = buf + cc; 98 while (bp < bufend) {
|
| H A D | sdlpi.c | 87 register u_char *bp, *cp, *bufend; local 118 bufend = buf + cc; 122 while (bp < bufend) {
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/ |
| H A D | histfile.c | 273 char *input, *buffer, *bufend, *last_ts; in read_history_range() local 365 bufend = buffer + chars_read; in read_history_range() 366 *bufend = '\0'; /* null-terminate buffer for timestamp checks */ in read_history_range() 385 for (line_start = line_end = buffer; line_end < bufend && current_line < from; line_end++) in read_history_range() 401 for (line_end = p; line_end < bufend && *line_end != '\n'; line_end++) in read_history_range() 408 for (line_end = line_start; line_end < bufend; line_end++) in read_history_range()
|
| /netbsd-src/usr.bin/mail/ |
| H A D | support.c | 457 char *bufend; in skin() local 470 bufend = nbuf; in skin() 471 for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; /*EMPTY*/) { in skin() 508 cp2 = bufend; in skin() 545 bufend = cp2; in skin()
|
| H A D | format.c | 376 snarf_comment(char **buf, char *bufend, const char *string) in snarf_comment() argument 384 qend = buf ? bufend : NULL; in snarf_comment() 415 snarf_quote(char **buf, char *bufend, const char *string) in snarf_quote() argument 422 qend = buf ? bufend : NULL; in snarf_quote()
|
| /netbsd-src/external/gpl2/xcvs/dist/diff/ |
| H A D | io.c | 207 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-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| H A D | glob.c | 177 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-src/external/gpl2/diffutils/dist/src/ |
| H A D | io.c | 237 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-src/external/gpl3/gcc.old/dist/libquadmath/printf/ |
| H A D | printf_fp.c | 121 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-src/external/gpl3/gcc/dist/libquadmath/printf/ |
| H A D | printf_fp.c | 121 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-src/sys/arch/sparc/stand/bootblk/ |
| H A D | bootblk.fth | 646 2dup + nip ( str len buf bufend ) 647 swap 2swap rot ( bufend str len direct ) 648 begin dup 4 pick < while ( bufend str len direct ) 649 dup d_ino l@ 0<> if ( bufend str len direct ) 654 2dup d_namlen c@ = if ( bufend str len direct ) 655 dup d_name 2over ( bufend str len direct dname str len ) 656 comp 0= if ( bufend str len direct ) 662 then ( bufend str len direct ) 663 then ( bufend str len direct ) 664 dup d_reclen w@ + ( bufend str len nextdirect )
|
| /netbsd-src/lib/libc/gen/ |
| H A D | glob.c | 189 Char *bufnext, *bufend, patbuf[MAXPATHLEN+1]; in glob() local 206 bufend = bufnext + MAXPATHLEN; in glob() 208 while (bufnext < bufend && (c = *patnext++) != EOS) in glob() 212 while (bufnext < bufend && (c = *patnext++) != EOS) in glob()
|
| /netbsd-src/external/mpl/dhcp/dist/common/ |
| H A D | options.c | 1261 int bufend, sbufend; in store_options() 1280 bufend = sbufend = buflen; in store_options() 1284 bufend = first_cutoff; in store_options() 1295 bufend = second_cutoff; in store_options() 1532 (bufix + 2 + length < bufend)) || in store_options() 1533 (bufix + 5 + length < bufend))) { in store_options() 1551 if (bufix + 6 < bufend) { in store_options() 1552 incr = bufend - bufix - 5; in store_options() 1628 if ((six || tix) && (bufix + 3 > bufend)) in store_options() 1258 int bufend, sbufend; store_options() local
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | ecofflink.c | 244 ecoff_add_bytes (char **buf, char **bufend, size_t need) in ecoff_add_bytes() argument 250 have = *bufend - *buf; in ecoff_add_bytes() 263 *bufend = *buf + have + want; in ecoff_add_bytes()
|