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

123

/netbsd-6-1-5-RELEASE/dist/dhcp/omapip/
H A Darray.c94 char **newbuf; local
109 newbuf = dmalloc ((array -> max + delta) * sizeof (char *),
111 if (!newbuf)
114 memset (&newbuf [array -> max], 0, (sizeof (char *)) * delta);
118 memcpy (newbuf,
122 array -> data = newbuf;
/netbsd-6-1-5-RELEASE/lib/libedit/
H A Dhist.c197 Char *newbuf; local
199 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf));
200 if (!newbuf)
203 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf));
205 el->el_history.last = newbuf +
207 el->el_history.buf = newbuf;
/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/
H A Dosdep-freebsd.c85 struct kinfo_proc *buf, *newbuf, *bestp; local
101 if ((newbuf = realloc(buf, len)) == NULL)
103 buf = newbuf;
H A Dosdep-netbsd.c73 struct kinfo_proc2 *buf, *newbuf, *bestp; local
93 if ((newbuf = realloc(buf, len * sizeof (*buf))) == NULL)
95 buf = newbuf;
H A Dosdep-openbsd.c87 struct kinfo_proc *buf, *newbuf, *bestp; local
103 if ((newbuf = realloc(buf, len)) == NULL)
105 buf = newbuf;
/netbsd-6-1-5-RELEASE/dist/ipf/
H A Dip_irc_pxy.c250 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
284 *newbuf = '\0';
306 (void) strncpy(newbuf, ctcpbuf, i);
309 SNPRINTF(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5);
311 (void) sprintf(newbuf, "%u %u\001\r\n", a1, a5);
314 nlen = strlen(newbuf);
351 COPYBACK(m, off, nlen, newbuf);
/netbsd-6-1-5-RELEASE/sys/dist/ipf/netinet/
H A Dip_irc_pxy.c260 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
294 *newbuf = '\0';
316 (void) strncpy(newbuf, ctcpbuf, i);
319 SNPRINTF(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5);
321 (void) sprintf(newbuf, "%u %u\001\r\n", a1, a5);
324 nlen = strlen(newbuf);
361 COPYBACK(m, off, nlen, newbuf);
H A Dip_ftp_pxy.c183 char newbuf[IPF_FTPBUFSZ], *s; local
290 SNPRINTF(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n",
293 (void) sprintf(newbuf, "%s %u,%u,%u,%u,%u,%u\r\n",
297 nlen = strlen(newbuf);
307 bcopy(newbuf, MTOD(m, char *) + off, nlen);
322 COPYBACK(m, off, nlen, newbuf);
475 char newbuf[IPF_FTPBUFSZ]; local
594 SNPRINTF(newbuf, sizeof(newbuf), "
1369 char newbuf[IPF_FTPBUFSZ]; local
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/m4/
H A Dmisc.c202 unsigned char *newbuf; local
206 newbuf = xrealloc(buf, bufsize, "too many characters pushed back");
208 bbase[i] = (bbase[i]-buf)+newbuf;
209 bp = (bp-buf)+newbuf;
210 bufbase = (bufbase-buf)+newbuf;
211 buf = newbuf;
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/src/
H A Dzlib.c677 unsigned char *newbuf; local
680 newbuf = xrealloc (*buf, *size);
681 if (newbuf == NULL)
686 *buf = newbuf;
738 unsigned char *newbuf; local
743 newbuf = xrealloc (*buf, *size);
744 if (newbuf == NULL)
749 *buf = newbuf;
770 unsigned char *newbuf; local
775 newbuf
[all...]
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/libipsec/
H A Dipsec_dump_policy.c105 char *newbuf; local
262 newbuf = (char *)realloc(buf, buflen);
263 if (newbuf == NULL) {
268 buf = newbuf;
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/contrib/idn/idnkit-1.0-src/lib/
H A Dfilemapper.c203 unsigned long *newbuf; local
212 newbuf = realloc(b->ucs, sizeof(unsigned long) * b->size);
213 if (newbuf == NULL)
215 b->ucs = newbuf;
H A Ducsmap.c174 ucsmap_entry_t *newbuf; local
198 newbuf = realloc(ctx->entries, sizeof(*e) * ctx->entry_size);
199 if (newbuf == NULL)
201 ctx->entries = newbuf;
H A Ducsset.c313 range_t *newbuf; local
344 newbuf = realloc(ctx->ranges, ctx->size * sizeof(range_t));
345 if (newbuf == NULL)
347 ctx->ranges = newbuf;
H A Dmapper.c392 void *newbuf; local
394 newbuf = realloc(buffers[idx],
396 if (newbuf == NULL) {
400 buffers[idx] = (unsigned long *)newbuf;
H A Dnormalizer.c301 void *newbuf; local
303 newbuf = realloc(buffers[idx],
305 if (newbuf == NULL) {
309 buffers[idx] = (unsigned long *)newbuf;
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/lib/log/
H A Dlog.c175 char *newbuf; local
209 else if ((newbuf = dm_realloc(_lvm_errmsg,
212 _lvm_errmsg = strcat(newbuf, "\n");
213 _lvm_errmsg = strcat(newbuf, message);
/netbsd-6-1-5-RELEASE/external/apache2/mDNSResponder/dist/mDNSShared/
H A Ddnssd_clientlib.c293 unsigned char *newbuf; local
296 newbuf = malloc((size_t)newlen);
297 if (!newbuf) return(kDNSServiceErr_NoMemory);
298 memcpy(newbuf, txtRec->buffer, txtRec->datalen);
300 txtRec->buffer = newbuf;
/netbsd-6-1-5-RELEASE/external/bsd/file/dist/src/
H A Dcompress.c107 unsigned char *newbuf = NULL; local
119 (nsz = uncompressbuf(ms, fd, i, buf, &newbuf,
123 if (file_buffer(ms, -1, name, newbuf, nsz) == -1)
143 free(newbuf);
/netbsd-6-1-5-RELEASE/lib/libc/db/hash/
H A Dhash_buf.c55 * newbuf
72 static BUFHEAD *newbuf(HTAB *, uint32_t, BUFHEAD *);
137 bp = newbuf(hashp, addr, prev_bp);
155 * If newbuf finds an error (returning NULL), it also sets errno.
158 newbuf(HTAB *hashp, uint32_t addr, BUFHEAD *prev_bp) function
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/
H A Dprivate.c306 unsigned char newbuf[DNS_NSEC3PARAM_BUFFERSIZE]; local
335 isc_buffer_init(&b, newbuf, sizeof(newbuf));
/netbsd-6-1-5-RELEASE/external/bsd/libevent/dist/
H A Dbuffer.c281 void *newbuf; local
291 if ((newbuf = realloc(buf->buffer, length)) == NULL)
294 buf->orig_buffer = buf->buffer = newbuf;
/netbsd-6-1-5-RELEASE/regress/sys/kern/getcwd/
H A Dgetcwd.c146 char newbuf[1024]; local
147 char *cp = old_getcwd(newbuf, sizeof(newbuf));
/netbsd-6-1-5-RELEASE/lib/libkvm/
H A Dkvm.c175 void *newbuf; local
194 newbuf = realloc(kd->iobuf, dsize);
195 if (newbuf == NULL) {
199 kd->iobuf = newbuf;
791 void *newbuf; local
810 newbuf = realloc(kd->iobuf, dsize);
811 if (newbuf == NULL) {
815 kd->iobuf = newbuf;
/netbsd-6-1-5-RELEASE/sys/dev/
H A Dkloader.c181 char *oldbuf, *newbuf; local
374 newbuf = (char *)(void *)kv
377 DPRINTF("argv: old %p -> new %p\n", oldbuf, newbuf);
380 nbi.argv = (void *)newbuf;
387 ap[i] = newbuf +

Completed in 204 milliseconds

123