| /netbsd-src/lib/libc/db/hash/ |
| H A D | hash_bigkey.c | 86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument 94 cp = bufp->page; /* Character pointer of p. */ in __big_insert() 125 bufp = __add_ovflpage(hashp, bufp); in __big_insert() 126 if (!bufp) in __big_insert() 157 p = (uint16_t *)(void *)bufp->page; in __big_insert() 158 cp = bufp->page; in __big_insert() 159 bufp->flags |= BUF_MOD; in __big_insert() 192 bufp = __add_ovflpage(hashp, bufp); in __big_insert() 193 if (!bufp) in __big_insert() 195 cp = bufp->page; in __big_insert() [all …]
|
| H A D | hash_page.c | 133 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument 140 bp = (uint16_t *)(void *)bufp->page; in __delpair() 144 return (__big_delete(hashp, bufp)); in __delpair() 154 char *src = bufp->page + (int)OFFSET(bp); in __delpair() 177 bufp->flags |= BUF_MOD; in __delpair() 292 BUFHEAD *bufp; /* Buffer header for ino */ in ugly_split() local 304 bufp = old_bufp; in ugly_split() 315 new_bufp, bufp, (int)bufp->addr, obucket, &ret)) in ugly_split() 325 bufp = ret.nextp; in ugly_split() 326 if (!bufp) in ugly_split() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/printf/ |
| H A D | sprintffuns.c | 52 gmp_sprintf_format (char **bufp, const char *fmt, va_list ap) in gmp_sprintf_format() argument 54 char *buf = *bufp; in gmp_sprintf_format() 58 *bufp = buf + ret; in gmp_sprintf_format() 63 gmp_sprintf_memory (char **bufp, const char *str, size_t len) in gmp_sprintf_memory() argument 65 char *buf = *bufp; in gmp_sprintf_memory() 66 *bufp = buf + len; in gmp_sprintf_memory() 72 gmp_sprintf_reps (char **bufp, int c, int reps) in gmp_sprintf_reps() argument 74 char *buf = *bufp; in gmp_sprintf_reps() 76 *bufp = buf + reps; in gmp_sprintf_reps() 82 gmp_sprintf_final (char **bufp) in gmp_sprintf_final() argument [all …]
|
| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | regex.c | 36 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 37 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 38 # define re_match(bufp, string, size, pos, regs) \ argument 39 __re_match (bufp, string, size, pos, regs) 40 # define re_search(bufp, string, size, startpos, range, regs) \ argument 41 __re_search (bufp, string, size, startpos, range, regs) 42 # define re_compile_pattern(pattern, length, bufp) \ argument 43 __re_compile_pattern (pattern, length, bufp) 45 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 46 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/games/hack/ |
| H A D | hack.tty.c | 223 getlin(char *bufp) in getlin() argument 225 char *obufp = bufp; in getlin() 232 *bufp = 0; in getlin() 241 if (bufp != obufp) { in getlin() 242 bufp--; in getlin() 247 *bufp = 0; in getlin() 254 *bufp = c; in getlin() 255 bufp[1] = 0; in getlin() 256 putstr(bufp); in getlin() 257 if (bufp - obufp < BUFSZ - 1 && bufp - obufp < COLNO) in getlin() [all …]
|
| /netbsd-src/lib/libc/stdio/ |
| H A D | open_memstream.c | 48 char **bufp; member 70 buf = realloc(*ms->bufp, newsize + 1); in memstream_grow() 77 *ms->bufp = buf; in memstream_grow() 108 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write() 181 open_memstream(char **bufp, size_t *sizep) in open_memstream() argument 187 if (bufp == NULL || sizep == NULL) { in open_memstream() 191 *bufp = calloc(1, 1); in open_memstream() 192 if (*bufp == NULL) in open_memstream() 197 free(*bufp); in open_memstream() 198 *bufp = NULL; in open_memstream() [all …]
|
| H A D | open_wmemstream.c | 48 wchar_t **bufp; member 74 buf = realloc(*ms->bufp, (newsize + 1) * sizeof(wchar_t)); in wmemstream_grow() 81 *ms->bufp = buf; in wmemstream_grow() 149 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write() 242 open_wmemstream(wchar_t **bufp, size_t *sizep) in open_wmemstream() argument 248 if (bufp == NULL || sizep == NULL) { in open_wmemstream() 252 *bufp = calloc(1, sizeof(wchar_t)); in open_wmemstream() 253 if (*bufp == NULL) in open_wmemstream() 258 free(*bufp); in open_wmemstream() 259 *bufp = NULL; in open_wmemstream() [all …]
|
| /netbsd-src/external/bsd/ipf/dist/lib/ |
| H A D | ipft_pc.c | 181 static char *bufp = NULL; local 187 if (!bufp) 188 bufp = malloc(i); 190 bufp = realloc(bufp, i); 192 if (read(pfd, bufp, i) != i) 196 bcopy(bufp, buf, n); 210 static char *bufp = NULL; local 228 if (!bufp) 229 bufp = malloc(i); 231 bufp = realloc(bufp, i); [all …]
|
| /netbsd-src/external/bsd/pkg_install/dist/lib/ |
| H A D | file.c | 295 char *bufp, *tmp; in format_cmd() local 298 for (bufp = buf, remaining = size; remaining > 1 && *fmt;) { in format_cmd() 300 *bufp++ = *fmt++; in format_cmd() 311 quoted = shquote(name, bufp, remaining); in format_cmd() 316 bufp += quoted; in format_cmd() 321 quoted = shquote(dir, bufp, remaining); in format_cmd() 326 bufp += quoted; in format_cmd() 334 quoted = shquote(tmp, bufp, remaining); in format_cmd() 340 bufp += quoted; in format_cmd() 347 quoted = shquote(cp, bufp, remaining); in format_cmd() [all …]
|
| /netbsd-src/external/gpl2/diffutils/dist/lib/ |
| H A D | regex.c | 71 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 72 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 73 # define re_match(bufp, string, size, pos, regs) \ argument 74 __re_match (bufp, string, size, pos, regs) 75 # define re_search(bufp, string, size, startpos, range, regs) \ argument 76 __re_search (bufp, string, size, startpos, range, regs) 77 # define re_compile_pattern(pattern, length, bufp) \ argument 78 __re_compile_pattern (pattern, length, bufp) 80 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 81 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/master/ |
| H A D | master_ent.c | 214 static char *get_str_ent(char **bufp, char *name, char *def_val) in get_str_ent() argument 218 if ((value = mystrtok(bufp, master_blanks)) == 0) in get_str_ent() 234 static int get_bool_ent(char **bufp, char *name, char *def_val) in get_bool_ent() argument 238 value = get_str_ent(bufp, name, def_val); in get_bool_ent() 251 static int get_int_ent(char **bufp, char *name, char *def_val, int min_val) in get_int_ent() argument 256 value = get_str_ent(bufp, name, def_val); in get_int_ent() 279 char *bufp; in get_master_ent() local 314 bufp = vstring_str(buf); in get_master_ent() 315 if ((cp = mystrtok(&bufp, master_blanks)) == 0) in get_master_ent() 318 transport = get_str_ent(&bufp, "transport type", (char *) 0); in get_master_ent() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
| H A D | regex.c | 78 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 79 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 80 # define re_match(bufp, string, size, pos, regs) \ argument 81 __re_match (bufp, string, size, pos, regs) 82 # define re_search(bufp, string, size, startpos, range, regs) \ argument 83 __re_search (bufp, string, size, startpos, range, regs) 84 # define re_compile_pattern(pattern, length, bufp) \ argument 85 __re_compile_pattern (pattern, length, bufp) 87 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 88 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgrep/ |
| H A D | regex.c | 58 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 59 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 60 # define re_match(bufp, string, size, pos, regs) \ argument 61 __re_match (bufp, string, size, pos, regs) 62 # define re_search(bufp, string, size, startpos, range, regs) \ argument 63 __re_search (bufp, string, size, startpos, range, regs) 64 # define re_compile_pattern(pattern, length, bufp) \ argument 65 __re_compile_pattern (pattern, length, bufp) 67 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 68 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libiberty/ |
| H A D | regex.c | 78 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 79 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 80 # define re_match(bufp, string, size, pos, regs) \ argument 81 __re_match (bufp, string, size, pos, regs) 82 # define re_search(bufp, string, size, startpos, range, regs) \ argument 83 __re_search (bufp, string, size, startpos, range, regs) 84 # define re_compile_pattern(pattern, length, bufp) \ argument 85 __re_compile_pattern (pattern, length, bufp) 87 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 88 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/libiberty/ |
| H A D | regex.c | 78 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 79 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 80 # define re_match(bufp, string, size, pos, regs) \ argument 81 __re_match (bufp, string, size, pos, regs) 82 # define re_search(bufp, string, size, startpos, range, regs) \ argument 83 __re_search (bufp, string, size, startpos, range, regs) 84 # define re_compile_pattern(pattern, length, bufp) \ argument 85 __re_compile_pattern (pattern, length, bufp) 87 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 88 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
| H A D | regex.c | 74 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 75 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 76 # define re_match(bufp, string, size, pos, regs) \ argument 77 __re_match (bufp, string, size, pos, regs) 78 # define re_search(bufp, string, size, startpos, range, regs) \ argument 79 __re_search (bufp, string, size, startpos, range, regs) 80 # define re_compile_pattern(pattern, length, bufp) \ argument 81 __re_compile_pattern (pattern, length, bufp) 83 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 84 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /netbsd-src/external/gpl2/grep/dist/lib/ |
| H A D | regex.c | 80 # define COMPILED_BUFFER_VAR bufp->buffer 94 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 95 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 96 # define re_match(bufp, string, size, pos, regs) \ argument 97 __re_match (bufp, string, size, pos, regs) 98 # define re_search(bufp, string, size, startpos, range, regs) \ argument 99 __re_search (bufp, string, size, startpos, range, regs) 100 # define re_compile_pattern(pattern, length, bufp) \ argument 101 __re_compile_pattern (pattern, length, bufp) 103 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument [all …]
|
| /netbsd-src/usr.bin/qsubst/ |
| H A D | qsubst.c | 134 static char *bufp; variable 202 return (!issymchar(bufp[-1]) && in foundit() 203 !issymchar(bufp[-2 - s1l]) && in foundit() 204 !bcmp(bufp - 1 - s1l, str1, s1l)); in foundit() 206 return (!bcmp(bufp - s1l, str1, s1l)); in foundit() 397 bufp = bufp0; in process_file() 405 if (bufp > bufp0) in process_file() 406 fwrite(bufp0, 1, bufp - bufp0, tempf); in process_file() 419 *bufp++ = c; in process_file() 423 c, n, (long) (bufp - bufp0)); in process_file() [all …]
|
| /netbsd-src/sys/crypto/aes/ |
| H A D | aes_ccm.c | 519 uint8_t buf[33 + 2], *bufp = buf + 1; in aes_ccm_selftest() local 524 bufp[-1] = bufp[33] = 0x1a; in aes_ccm_selftest() 533 aes_ccm_enc(C, T[i].ptxt, bufp, 1); in aes_ccm_selftest() 534 aes_ccm_enc(C, T[i].ptxt + 1, bufp + 1, 2); in aes_ccm_selftest() 535 aes_ccm_enc(C, T[i].ptxt + 3, bufp + 3, T[i].mlen - 4); in aes_ccm_selftest() 537 bufp + T[i].mlen - 1, 1); in aes_ccm_selftest() 539 if (memcmp(bufp, T[i].ctxt, T[i].mlen)) { in aes_ccm_selftest() 543 hexdump(printf, name, bufp, T[i].mlen); in aes_ccm_selftest() 556 aes_ccm_dec(C, T[i].ctxt, bufp, 1); in aes_ccm_selftest() 557 aes_ccm_dec(C, T[i].ctxt + 1, bufp + 1, 2); in aes_ccm_selftest() [all …]
|
| /netbsd-src/sbin/sysctl/ |
| H A D | pathconf.c | 155 char *bufp, buf[BUFSIZ]; local 157 bufp = buf; 159 if ((indx = findname(string, "top", &bufp, &pclist)) == -1) 161 if (bufp) { 162 fprintf(stderr, "name %s in %s is unknown\n", *bufp, string); 197 findname(string, level, bufp, namelist) in findname() argument 200 char **bufp; 206 if (namelist->list == 0 || (name = strsep(bufp, ".")) == NULL) {
|
| /netbsd-src/external/gpl2/xcvs/dist/src/ |
| H A D | buffer.c | 171 - (buf->last->bufp + buf->last->size)) in buf_output() 174 memcpy (buf->last->bufp + buf->last->size, data, len); in buf_output() 197 newdata->bufp = newdata->text; in buf_output() 233 != buf->last->bufp + buf->last->size)) in buf_append_char() 235 *(buf->last->bufp + buf->last->size) = ch; in buf_append_char() 290 status = (*buf->output) (buf->closure, data->bufp, data->size, in buf_send_output() 308 data->bufp += nbytes; in buf_send_output() 436 data->bufp = data->text; in buf_send_counted() 471 data->bufp = data->text; in buf_send_special_count() 521 memcpy (new->text, cur->bufp, cur->size); in buf_copy_data() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | dict_test.c | 45 char *bufp; in dict_test() local 100 bufp = vstring_str(inbuf); in dict_test() 102 vstream_printf("> %s\n", bufp); in dict_test() 105 if (*bufp == '#') in dict_test() 107 if ((cmd = mystrtok(&bufp, " ")) == 0) { in dict_test() 114 key = *bufp ? vstring_str(unescape(keybuf, mystrtok(&bufp, " ="))) : 0; in dict_test() 115 value = mystrtok(&bufp, " ="); in dict_test()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | data_redirect.c | 212 char *bufp; in main() local 220 bufp = STR(inbuf); in main() 222 vstream_printf("> %s\n", bufp); in main() 225 if (*bufp == '#') in main() 227 if ((cmd = mystrtok(&bufp, " \t")) == 0) { in main() 232 target = mystrtokq(&bufp, " \t"); in main() 233 junk = mystrtok(&bufp, " \t"); in main()
|
| /netbsd-src/sys/dev/ofw/ |
| H A D | ofnet.c | 150 char *bufp; in ofnet_read() local 162 bufp = buf; in ofnet_read() 227 memcpy(mtod(m, char *), bufp, l); in ofnet_read() 228 bufp += l; in ofnet_read() 277 char *bufp; in ofnet_start() local 305 for (bufp = buf; (m = m0) != NULL;) { in ofnet_start() 306 memcpy(bufp, mtod(m, char *), m->m_len); in ofnet_start() 307 bufp += m->m_len; in ofnet_start() 318 memset(bufp, 0, ETHER_MIN_LEN - ETHER_CRC_LEN - len); in ofnet_start() 319 bufp += ETHER_MIN_LEN - ETHER_CRC_LEN - len; in ofnet_start() [all …]
|
| /netbsd-src/sys/dev/nor/ |
| H A D | nor.c | 602 const uint8_t *bufp; in nor_flash_write_unaligned() local 644 bufp = buf; in nor_flash_write_unaligned() 665 bufp, chip->nc_page_size - firstoff); in nor_flash_write_unaligned() 674 bufp += chip->nc_page_size - firstoff; in nor_flash_write_unaligned() 684 memcpy(chip->nc_page_cache, bufp, left); in nor_flash_write_unaligned() 703 error = nor_program_page(self, addr, bufp); in nor_flash_write_unaligned() 708 bufp += chip->nc_page_size; in nor_flash_write_unaligned() 729 const uint8_t *bufp; in nor_flash_write() local 753 bufp = buf; in nor_flash_write() 768 error = nor_program_page(self, addr, bufp); in nor_flash_write() [all …]
|