| /dragonfly/contrib/ncurses/ncurses/tinfo/ |
| HD | comp_expand.c | 66 int bufp; in _nc_tic_expand() local 91 bufp = 0; in _nc_tic_expand() 94 buffer[bufp++] = *str++; in _nc_tic_expand() 106 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand() 108 bufp += (int) strlen(buffer + bufp); in _nc_tic_expand() 111 buffer[bufp++] = *str; in _nc_tic_expand() 132 buffer[bufp++] = S_QUOTE; in _nc_tic_expand() 135 buffer[bufp++] = '\\'; in _nc_tic_expand() 136 buffer[bufp++] = (char) ch; in _nc_tic_expand() 137 buffer[bufp++] = S_QUOTE; in _nc_tic_expand() [all …]
|
| /dragonfly/sbin/rconfig/ |
| HD | subs.c | 80 char **bufp, int *lenp, const char *ctl, ...) in udp_transact() argument 92 if (*bufp) { in udp_transact() 93 free(*bufp); in udp_transact() 94 *bufp = NULL; in udp_transact() 104 asprintf(bufp, "udp_transaction: socket: %s", strerror(errno)); in udp_transact() 105 *lenp = strlen(*bufp); in udp_transact() 110 asprintf(bufp, "udp_transaction: bind: %s", strerror(errno)); in udp_transact() 111 *lenp = strlen(*bufp); in udp_transact() 136 asprintf(bufp, "udp_transaction: recvfrom: timeout"); in udp_transact() 137 *lenp = strlen(*bufp); in udp_transact() [all …]
|
| /dragonfly/lib/libc/db/hash/ |
| HD | hash_bigkey.c | 83 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument 91 cp = bufp->page; /* Character pointer of p. */ in __big_insert() 113 bufp = __add_ovflpage(hashp, bufp); in __big_insert() 114 if (!bufp) in __big_insert() 143 p = (uint16_t *)bufp->page; in __big_insert() 144 cp = bufp->page; in __big_insert() 145 bufp->flags |= BUF_MOD; in __big_insert() 169 bufp = __add_ovflpage(hashp, bufp); in __big_insert() 170 if (!bufp) in __big_insert() 172 cp = bufp->page; in __big_insert() [all …]
|
| HD | hash_page.c | 123 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument 128 bp = (uint16_t *)bufp->page; in __delpair() 132 return (__big_delete(hashp, bufp)); in __delpair() 142 char *src = bufp->page + (int)OFFSET(bp); in __delpair() 171 bufp->flags |= BUF_MOD; in __delpair() 281 BUFHEAD *bufp; /* Buffer header for ino */ in ugly_split() local 292 bufp = old_bufp; in ugly_split() 303 new_bufp, bufp, bufp->addr, obucket, &ret)) in ugly_split() 313 bufp = ret.nextp; in ugly_split() 314 if (!bufp) in ugly_split() [all …]
|
| /dragonfly/contrib/gmp/printf/ |
| HD | sprintffuns.c | 49 gmp_sprintf_format (char **bufp, const char *fmt, va_list ap) in gmp_sprintf_format() argument 51 char *buf = *bufp; in gmp_sprintf_format() 55 *bufp = buf + ret; in gmp_sprintf_format() 60 gmp_sprintf_memory (char **bufp, const char *str, size_t len) in gmp_sprintf_memory() argument 62 char *buf = *bufp; in gmp_sprintf_memory() 63 *bufp = buf + len; in gmp_sprintf_memory() 69 gmp_sprintf_reps (char **bufp, int c, int reps) in gmp_sprintf_reps() argument 71 char *buf = *bufp; in gmp_sprintf_reps() 73 *bufp = buf + reps; in gmp_sprintf_reps() 79 gmp_sprintf_final (char **bufp, int c, int reps) in gmp_sprintf_final() argument [all …]
|
| /dragonfly/contrib/cvs-1.12/lib/ |
| HD | regex.c | 33 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 34 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 35 # define re_match(bufp, string, size, pos, regs) \ argument 36 __re_match (bufp, string, size, pos, regs) 37 # define re_search(bufp, string, size, startpos, range, regs) \ argument 38 __re_search (bufp, string, size, startpos, range, regs) 39 # define re_compile_pattern(pattern, length, bufp) \ argument 40 __re_compile_pattern (pattern, length, bufp) 42 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 43 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /dragonfly/contrib/grep/lib/ |
| HD | regex.c | 46 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 47 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 48 # define re_match(bufp, string, size, pos, regs) \ argument 49 __re_match (bufp, string, size, pos, regs) 50 # define re_search(bufp, string, size, startpos, range, regs) \ argument 51 __re_search (bufp, string, size, startpos, range, regs) 52 # define re_compile_pattern(pattern, length, bufp) \ argument 53 __re_compile_pattern (pattern, length, bufp) 55 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 56 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /dragonfly/contrib/gdb-7/gdb/ |
| HD | somread.c | 54 struct som_external_symbol_dictionary_record *buf, *bufp, *endbufp; in som_symtab_read() local 100 for (bufp = buf; bufp < endbufp; ++bufp) in som_symtab_read() 103 unsigned int flags = bfd_getb32 (bufp->flags); in som_symtab_read() 108 CORE_ADDR symbol_value = bfd_getb32 (bufp->symbol_value); in som_symtab_read() 126 symname = bfd_getb32 (bufp->name) + stringtab; in som_symtab_read() 133 symname = bfd_getb32 (bufp->name) + stringtab; in som_symtab_read() 146 symname = bfd_getb32 (bufp->name) + stringtab; in som_symtab_read() 153 symname = bfd_getb32 (bufp->name) + stringtab; in som_symtab_read() 174 symname = bfd_getb32 (bufp->name) + stringtab; in som_symtab_read() 205 symname = bfd_getb32 (bufp->name) + stringtab; in som_symtab_read() [all …]
|
| /dragonfly/games/hack/ |
| HD | hack.tty.c | 215 getlin(char *bufp) in getlin() argument 217 char *obufp = bufp; in getlin() 224 *bufp = 0; in getlin() 233 if (bufp != obufp) { in getlin() 234 bufp--; in getlin() 239 *bufp = 0; in getlin() 246 *bufp = c; in getlin() 247 bufp[1] = 0; in getlin() 248 putstr(bufp); in getlin() 249 if (bufp - obufp < BUFSZ - 1 && bufp - obufp < COLNO) in getlin() [all …]
|
| /dragonfly/lib/libc/stdio/ |
| HD | open_memstream.c | 44 char **bufp; member 61 buf = realloc(*ms->bufp, newsize + 1); in memstream_grow() 68 *ms->bufp = buf; in memstream_grow() 97 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write() 170 open_memstream(char **bufp, size_t *sizep) in open_memstream() argument 176 if (bufp == NULL || sizep == NULL) { in open_memstream() 180 *bufp = calloc(1, 1); in open_memstream() 181 if (*bufp == NULL) in open_memstream() 186 free(*bufp); in open_memstream() 187 *bufp = NULL; in open_memstream() [all …]
|
| HD | open_wmemstream.c | 44 wchar_t **bufp; member 62 buf = realloc(*ms->bufp, (newsize + 1) * sizeof(wchar_t)); in wmemstream_grow() 69 *ms->bufp = buf; in wmemstream_grow() 138 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write() 231 open_wmemstream(wchar_t **bufp, size_t *sizep) in open_wmemstream() argument 237 if (bufp == NULL || sizep == NULL) { in open_wmemstream() 241 *bufp = calloc(1, sizeof(wchar_t)); in open_wmemstream() 242 if (*bufp == NULL) in open_wmemstream() 247 free(*bufp); in open_wmemstream() 248 *bufp = NULL; in open_wmemstream() [all …]
|
| /dragonfly/contrib/binutils-2.34/libiberty/ |
| HD | 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 …]
|
| /dragonfly/contrib/gcc-8.0/libiberty/ |
| HD | 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 …]
|
| /dragonfly/contrib/gdb-7/libiberty/ |
| HD | regex.c | 75 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 76 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 77 # define re_match(bufp, string, size, pos, regs) \ argument 78 __re_match (bufp, string, size, pos, regs) 79 # define re_search(bufp, string, size, startpos, range, regs) \ argument 80 __re_search (bufp, string, size, startpos, range, regs) 81 # define re_compile_pattern(pattern, length, bufp) \ argument 82 __re_compile_pattern (pattern, length, bufp) 84 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 85 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /dragonfly/contrib/binutils-2.27/libiberty/ |
| HD | regex.c | 75 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 76 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 77 # define re_match(bufp, string, size, pos, regs) \ argument 78 __re_match (bufp, string, size, pos, regs) 79 # define re_search(bufp, string, size, startpos, range, regs) \ argument 80 __re_search (bufp, string, size, startpos, range, regs) 81 # define re_compile_pattern(pattern, length, bufp) \ argument 82 __re_compile_pattern (pattern, length, bufp) 84 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 85 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /dragonfly/contrib/gcc-4.7/libiberty/ |
| HD | regex.c | 75 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 76 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 77 # define re_match(bufp, string, size, pos, regs) \ argument 78 __re_match (bufp, string, size, pos, regs) 79 # define re_search(bufp, string, size, startpos, range, regs) \ argument 80 __re_search (bufp, string, size, startpos, range, regs) 81 # define re_compile_pattern(pattern, length, bufp) \ argument 82 __re_compile_pattern (pattern, length, bufp) 84 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 85 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /dragonfly/contrib/cvs-1.12/src/ |
| HD | buffer.c | 169 - (buf->last->bufp + buf->last->size)) in buf_output() 172 memcpy (buf->last->bufp + buf->last->size, data, len); in buf_output() 195 newdata->bufp = newdata->text; in buf_output() 231 != buf->last->bufp + buf->last->size)) in buf_append_char() 233 *(buf->last->bufp + buf->last->size) = ch; in buf_append_char() 288 status = (*buf->output) (buf->closure, data->bufp, data->size, in buf_send_output() 306 data->bufp += nbytes; in buf_send_output() 434 data->bufp = data->text; in buf_send_counted() 469 data->bufp = data->text; in buf_send_special_count() 519 memcpy (new->text, cur->bufp, cur->size); in buf_copy_data() [all …]
|
| /dragonfly/usr.sbin/ppp/ |
| HD | vjcomp.c | 118 u_char *bufp; in VjUncompressTcp() local 129 bufp = MBUF_CTOP(bp); in VjUncompressTcp() 130 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp() 148 bufp = work + MAX_HDR; in VjUncompressTcp() 149 bp = mbuf_Read(bp, bufp, rlen); in VjUncompressTcp() 150 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp() 159 bp = m_prepend(bp, bufp, len, 0); in VjUncompressTcp()
|
| HD | pred.c | 183 u_char bufp[MAX_MTU + 2]; in Pred1Output() local 189 cp = bufp; in Pred1Output() 195 fcs = hdlc_Fcs(bufp, 2 + orglen); in Pred1Output() 198 len = compress(state, bufp + 2, wp, orglen); in Pred1Output() 206 memcpy(wp, bufp + 2, orglen); in Pred1Output() 225 u_char *bufp; in Pred1Input() local 231 pp = bufp = MBUF_CTOP(wp); in Pred1Input() 264 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp); in Pred1Input()
|
| /dragonfly/contrib/gdb-7/bfd/ |
| HD | bfd.c | 585 char *bufp; in _bfd_default_error_handler() local 600 bufp = buf; in _bfd_default_error_handler() 619 memcpy (bufp, fmt, len + 1); in _bfd_default_error_handler() 627 memcpy (bufp, fmt, len); in _bfd_default_error_handler() 628 bufp += len; in _bfd_default_error_handler() 637 *bufp++ = '*'; in _bfd_default_error_handler() 638 *bufp++ = '*'; in _bfd_default_error_handler() 639 *bufp = '\0'; in _bfd_default_error_handler() 651 snprintf (bufp, avail, "%s(%s)", in _bfd_default_error_handler() 654 snprintf (bufp, avail, "%s", abfd->filename); in _bfd_default_error_handler() [all …]
|
| /dragonfly/sbin/fsdb/ |
| HD | fsdbutil.c | 50 static int printindir(ufs_daddr_t blk, int level, char *bufp); 179 printindir(ufs_daddr_t blk, int level, char *bufp) in printindir() argument 189 bp->b_un.b_buf = bufp; in printindir() 219 if (printindir(blkno, level - 1, bufp) == 0) in printindir() 235 char *bufp; in printblocks() local 259 bufp = malloc((unsigned int)sblock.fs_bsize); in printblocks() 260 if (bufp == NULL) in printblocks() 264 if (printindir(dp->di_ib[i], i, bufp) == 0) in printblocks() 266 free(bufp); in printblocks()
|
| /dragonfly/usr.bin/crunch/crunchide/ |
| HD | exec_elf64.c | 74 void *bufp; member 321 layoutp[r].bufp = NULL; in ELFNAMEEND() 342 layoutp[i].bufp = shdrp; in ELFNAMEEND() 347 layoutp[i].bufp = shstrtabp; in ELFNAMEEND() 356 layoutp[i].bufp = xmalloc(size, fn, in ELFNAMEEND() 358 if (layoutp[i].bufp == NULL) in ELFNAMEEND() 360 if ((size_t)xreadatoff(fd, layoutp[i].bufp, off, size, fn) != in ELFNAMEEND() 366 symtabp = layoutp[i].bufp; in ELFNAMEEND() 368 strtabp = layoutp[i].bufp; in ELFNAMEEND() 439 buf = layoutp[i].bufp; in ELFNAMEEND() [all …]
|
| /dragonfly/contrib/dhcpcd/src/ |
| HD | script.c | 182 char **env, **envp, *bufp, *endp; in script_buftoenv() local 189 for (bufp = buf; bufp < endp; bufp++) { in script_buftoenv() 190 if (*bufp == '\0') { in script_buftoenv() 192 if (bufp + 1 < endp) in script_buftoenv() 193 assert(*(bufp + 1) != '\0'); in script_buftoenv() 198 assert(*(bufp - 1) == '\0'); in script_buftoenv() 210 bufp = buf; in script_buftoenv() 212 *envp++ = bufp++; in script_buftoenv() 214 for (; bufp < endp; bufp++) { in script_buftoenv() 215 if (*bufp == '\0') in script_buftoenv() [all …]
|
| /dragonfly/sbin/jscan/ |
| HD | jstream.c | 395 jsreadp(struct jstream *js, off_t off, const void **bufp, in jsreadp() argument 401 n = jsreadany(js, off, bufp); in jsreadp() 414 *bufp = NULL; in jsreadp() 416 *bufp = js->js_alloc_buf; in jsreadp() 426 const void *bufp; in jsreadcallback() local 432 while (bytes && (n = jsreadany(js, off, &bufp)) > 0) { in jsreadcallback() 435 r = func(fd, bufp, n); in jsreadcallback() 452 jsreadany(struct jstream *js, off_t off, const void **bufp) in jsreadany() argument 463 *bufp = scan->js_normalized_base + n; in jsreadany()
|
| /dragonfly/contrib/binutils-2.27/bfd/ |
| HD | bfd.c | 641 char *bufp; in _bfd_default_error_handler() local 656 bufp = buf; in _bfd_default_error_handler() 675 memcpy (bufp, fmt, len + 1); in _bfd_default_error_handler() 683 memcpy (bufp, fmt, len); in _bfd_default_error_handler() 684 bufp += len; in _bfd_default_error_handler() 693 *bufp++ = '*'; in _bfd_default_error_handler() 694 *bufp++ = '*'; in _bfd_default_error_handler() 695 *bufp = '\0'; in _bfd_default_error_handler() 708 snprintf (bufp, avail, "%s(%s)", in _bfd_default_error_handler() 711 snprintf (bufp, avail, "%s", abfd->filename); in _bfd_default_error_handler() [all …]
|