/openbsd-current/usr.bin/rcs/ |
H A D | rcs.c | 1484 BUF *newbuf; local 1502 newbuf = buf_alloc(buf_len(bp)); 1511 /* Copying to newbuf is deferred until the first keyword. */ 1521 buf_append(newbuf, c, kw - c); 1562 buf_append(newbuf, kw, c - kw); 1571 buf_append(newbuf, buf_get(bp), kw - buf_get(bp)); 1575 buf_puts(newbuf, rcs_expkw[i].kw_str); 1577 buf_puts(newbuf, ": "); 1585 buf_puts(newbuf, rcsfile); 1587 buf_puts(newbuf, tmp [all...] |
/openbsd-current/lib/libedit/ |
H A D | hist.c | 193 wchar_t *newbuf; local 195 newbuf = recallocarray(el->el_history.buf, oldsz, newsz, 196 sizeof(*newbuf)); 197 if (!newbuf) 200 el->el_history.last = newbuf + 202 el->el_history.buf = newbuf;
|
/openbsd-current/usr.bin/tmux/ |
H A D | procname.c | 88 struct kinfo_proc *buf, *newbuf, *bestp; local 104 if ((newbuf = realloc(buf, len)) == NULL) 106 buf = newbuf;
|
/openbsd-current/usr.bin/m4/ |
H A D | misc.c | 199 unsigned char *newbuf; local 203 newbuf = xrealloc(buf, bufsize, "too many characters pushed back"); 205 bbase[i] = (bbase[i]-buf)+newbuf; 206 bp = (bp-buf)+newbuf; 207 bufbase = (bufbase-buf)+newbuf; 208 buf = newbuf;
|
/openbsd-current/gnu/usr.bin/cvs/src/ |
H A D | zlib.c | 561 unsigned char *newbuf; local 564 newbuf = realloc (*buf, *size); 565 if (newbuf == NULL) 570 *buf = newbuf; 621 unsigned char *newbuf; local 625 newbuf = realloc (*buf, *size); 626 if (newbuf == NULL) 631 *buf = newbuf;
|
/openbsd-current/lib/libcrypto/bytestring/ |
H A D | bs_cbb.c | 106 uint8_t *newbuf; local 114 newbuf = recallocarray(base->buf, base->cap, newcap, 1); 115 if (newbuf == NULL) 118 base->buf = newbuf;
|
/openbsd-current/lib/libssl/ |
H A D | bs_cbb.c | 106 uint8_t *newbuf; local 114 newbuf = recallocarray(base->buf, base->cap, newcap, 1); 115 if (newbuf == NULL) 118 base->buf = newbuf;
|
/openbsd-current/lib/libc/db/hash/ |
H A D | hash_buf.c | 48 * newbuf 68 static BUFHEAD *newbuf(HTAB *, u_int32_t, BUFHEAD *); 132 bp = newbuf(hashp, addr, prev_bp); 150 * If newbuf finds an error (returning NULL), it also sets errno. 153 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) function
|
/openbsd-current/lib/libc/rpc/ |
H A D | svc_udp.c | 366 char *newbuf; local 383 newbuf = victim->cache_reply; 389 newbuf = malloc(su->su_iosz); 390 if (newbuf == NULL) { 401 rpc_buffer(xprt) = newbuf;
|
/openbsd-current/libexec/spamd-setup/ |
H A D | spamd-setup.c | 363 char *newbuf, last; local 366 newbuf = malloc(2 * strlen(buf) + 1); 367 if (newbuf == NULL) 374 newbuf[j++] = '\\'; 375 newbuf[j++] = 'C'; 377 newbuf[j++] = buf[i]; 382 newbuf[j++] = buf[i]; 385 newbuf[j++] = buf[i]; 390 newbuf[j] = '\0'; 391 return (newbuf); [all...] |
/openbsd-current/gnu/usr.bin/binutils/gdb/ |
H A D | regcache.c | 362 struct regcache *newbuf; local 364 newbuf = regcache_xmalloc (src->descr->gdbarch); 365 regcache_cpy (newbuf, src); 366 return newbuf; 372 struct regcache *newbuf; local 374 newbuf = regcache_xmalloc (src->descr->gdbarch); 375 regcache_cpy_no_passthrough (newbuf, src); 376 return newbuf;
|
/openbsd-current/usr.bin/awk/ |
H A D | tran.c | 561 char *newbuf = (char *) malloc(l); local 562 if (newbuf == NULL) 566 snprintf(newbuf, l, "%s ", p); 567 c = setsymtab(newbuf, p, 0.0, CON|STR|DONTFREE, symtab); 569 free(newbuf);
|
/openbsd-current/lib/libevent/ |
H A D | buffer.c | 346 void *newbuf; local 362 if ((newbuf = recallocarray(buf->buffer, buf->totallen, 366 buf->orig_buffer = buf->buffer = newbuf;
|
/openbsd-current/libexec/tradcpp/ |
H A D | macro.c | 880 char *newbuf, *newbuf2; local 904 newbuf = expand_substitute(p, es); 905 debuglog(p, "Substituting for %s: %s", m->name, newbuf); 907 newbuf2 = macroexpand(p, newbuf, strlen(newbuf), false); 908 dostrfree(newbuf);
|
/openbsd-current/sbin/ncheck_ffs/ |
H A D | ncheck_ffs.c | 623 char *src, *dst, *newbuf; local 636 if ((newbuf = reallocarray(buf, size, 2)) == NULL) 638 buf = newbuf;
|
/openbsd-current/usr.bin/fgen/ |
H A D | fgen.l | 993 YY_BUFFER_STATE newbuf; 998 newbuf = yy_scan_string(xform->equiv); 999 yy_switch_to_buffer(newbuf); 1000 tokenize(newbuf); 1002 yy_delete_buffer(newbuf);
|
/openbsd-current/sbin/atactl/ |
H A D | atactl.c | 1471 u_int8_t *newbuf; local 1493 if ((newbuf = calloc(nsect, DEV_BSIZE)) == NULL) 1502 req.databuf = (caddr_t)newbuf; 1509 (newbuf + (nsect - 1) * DEV_BSIZE); 1517 (newbuf + (i / 5) * DEV_BSIZE);
|
/openbsd-current/usr.sbin/makefs/ |
H A D | ffs.c | 879 u_char *newbuf; local 898 newbuf = erealloc(dbuf->buf, dbuf->size + DIRBLKSIZ); 899 dbuf->buf = newbuf;
|
/openbsd-current/sys/dev/pci/ |
H A D | if_et.c | 144 et_newbuf_t newbuf; member in struct:et_bsize 148 { .bufsize = 0, .newbuf = et_newbuf_hdr }, 149 { .bufsize = 0, .newbuf = et_newbuf_cluster }, 955 sc->sc_rx_data[i].rbd_newbuf = et_bufsize[i].newbuf; 1324 printf("%s: %d ring %d buf, newbuf failed: "
|
H A D | azalia_codec.c | 1439 void *newbuf; local 1446 newbuf = mallocarray(newmax, sizeof(mixer_item_t), M_DEVBUF, 1448 if (newbuf == NULL) { 1452 bcopy(this->mixers, newbuf, this->maxmixers * sizeof(mixer_item_t)); 1454 this->mixers = newbuf;
|
/openbsd-current/gnu/lib/libiberty/src/ |
H A D | cp-demangle.c | 2573 char *newbuf; local 2576 newbuf = (char *) realloc (dpi->buf, newalc); 2577 if (newbuf == NULL) 2584 dpi->buf = newbuf;
|
/openbsd-current/gnu/usr.bin/binutils/bfd/ |
H A D | ecofflink.c | 268 char *newbuf; 279 newbuf = (char *) bfd_realloc (*buf, (bfd_size_type) have + want); 280 if (newbuf == NULL) 282 *buf = newbuf; 265 char *newbuf; local
|
/openbsd-current/gnu/usr.bin/binutils-2.17/bfd/ |
H A D | ecofflink.c | 268 char *newbuf; 279 newbuf = (char *) bfd_realloc (*buf, (bfd_size_type) have + want); 280 if (newbuf == NULL) 282 *buf = newbuf; 265 char *newbuf; local
|
/openbsd-current/lib/libform/ |
H A D | frm_driver.c | 665 FIELD_CELL *newbuf; local 696 newbuf = (FIELD_CELL *)malloc(Total_Buffer_Size(field)); 697 if (!newbuf) 715 T((T_CREATE("fieldcell %p"), (void *)newbuf)); 716 field->buf = newbuf; 783 free(newbuf);
|
/openbsd-current/sys/dev/ic/ |
H A D | bwfm.c | 2983 u_char *src, *dst, *end = *bufp + *sizep, *newbuf; local 2993 newbuf = malloc(newsize, M_DEVBUF, M_NOWAIT); 2994 if (newbuf == NULL) 2997 for (src = *bufp, dst = newbuf; src != end; ++src) { 3040 count = dst - newbuf; 3055 *bufp = newbuf;
|