Searched refs:newbuf (Results 1 - 25 of 27) sorted by relevance

12

/openbsd-current/usr.bin/rcs/
H A Drcs.c1484 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 Dhist.c193 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 Dprocname.c88 struct kinfo_proc *buf, *newbuf, *bestp; local
104 if ((newbuf = realloc(buf, len)) == NULL)
106 buf = newbuf;
/openbsd-current/usr.bin/m4/
H A Dmisc.c199 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 Dzlib.c561 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 Dbs_cbb.c106 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 Dbs_cbb.c106 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 Dhash_buf.c48 * 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 Dsvc_udp.c366 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 Dspamd-setup.c363 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 Dregcache.c362 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 Dtran.c561 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 Dbuffer.c346 void *newbuf; local
362 if ((newbuf = recallocarray(buf->buffer, buf->totallen,
366 buf->orig_buffer = buf->buffer = newbuf;
/openbsd-current/libexec/tradcpp/
H A Dmacro.c880 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 Dncheck_ffs.c623 char *src, *dst, *newbuf; local
636 if ((newbuf = reallocarray(buf, size, 2)) == NULL)
638 buf = newbuf;
/openbsd-current/usr.bin/fgen/
H A Dfgen.l993 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 Datactl.c1471 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 Dffs.c879 u_char *newbuf; local
898 newbuf = erealloc(dbuf->buf, dbuf->size + DIRBLKSIZ);
899 dbuf->buf = newbuf;
/openbsd-current/sys/dev/pci/
H A Dif_et.c144 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 Dazalia_codec.c1439 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 Dcp-demangle.c2573 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 Decofflink.c268 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 Decofflink.c268 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 Dfrm_driver.c665 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 Dbwfm.c2983 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;

Completed in 322 milliseconds

12