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

12

/freebsd-11-stable/lib/libthr/thread/
H A Dthr_clean.c54 struct pthread_cleanup *newbuf; local
56 newbuf = (void *)info;
57 newbuf->routine = routine;
58 newbuf->routine_arg = arg;
59 newbuf->onheap = 0;
60 newbuf->prev = curthread->cleanup;
61 curthread->cleanup = newbuf;
83 struct pthread_cleanup *newbuf; local
87 if ((newbuf = (struct pthread_cleanup *)
89 newbuf
[all...]
/freebsd-11-stable/sbin/hastd/
H A Dhast_compression.c77 void *newbuf; local
82 newbuf = malloc(sizeof(size));
83 if (newbuf == NULL) {
89 bcopy(&size, newbuf, sizeof(size));
92 return (newbuf);
99 void *newbuf; local
110 newbuf = malloc(size);
111 if (newbuf == NULL) {
116 bzero(newbuf, size);
119 return (newbuf);
128 unsigned char *newbuf; local
160 unsigned char *newbuf; local
208 unsigned char *newbuf; local
256 unsigned char *newbuf; local
[all...]
/freebsd-11-stable/lib/libedit/
H A Dhist.c201 Char *newbuf; local
203 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf));
204 if (!newbuf)
207 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf));
209 el->el_history.last = newbuf +
211 el->el_history.buf = newbuf;
/freebsd-11-stable/sys/dev/nxge/xgehal/
H A Dxge-queue.c329 void *newbuf, *oldbuf; local
336 newbuf = xge_os_malloc(queue->pdev,
338 if (newbuf == NULL)
341 xge_os_memcpy(newbuf, queue->start_ptr,
346 queue->start_ptr = newbuf;
347 queue->end_ptr = (char *)newbuf +
349 queue->tail_ptr = (char *)newbuf + ((char *)queue->tail_ptr -
351 queue->head_ptr = (char *)newbuf + ((char *)queue->head_ptr -
354 queue->list_head.next = (xge_list_t *) (void *)((char *)newbuf +
356 queue->list_head.prev = (xge_list_t *) (void *)((char *)newbuf
[all...]
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_irc_pxy.c257 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
289 *newbuf = '\0';
311 (void) strncpy(newbuf, ctcpbuf, i);
314 SNPRINTF(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5);
316 (void) sprintf(newbuf, "%u %u\001\r\n", a1, a5);
319 nlen = strlen(newbuf);
356 COPYBACK(m, off, nlen, newbuf);
H A Dip_ftp_pxy.c297 char newbuf[IPF_FTPBUFSZ], *s; local
408 SNPRINTF(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n",
411 (void) sprintf(newbuf, "%s %u,%u,%u,%u,%u,%u\r\n",
415 nlen = strlen(newbuf);
437 COPYBACK(m, off, nlen, newbuf);
710 char newbuf[IPF_FTPBUFSZ]; local
838 SNPRINTF(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
842 (void) sprintf(newbuf, "
1750 char newbuf[IPF_FTPBUFSZ]; local
1904 char newbuf[IPF_FTPBUFSZ]; local
1983 char newbuf[IPF_FTPBUFSZ]; local
[all...]
/freebsd-11-stable/sys/dev/vxge/vxgehal/
H A Dvxge-queue.c407 void *newbuf, *oldbuf; local
424 newbuf = vxge_os_malloc(queue->pdev,
426 if (newbuf == NULL) {
432 vxge_os_memcpy(newbuf, queue->start_ptr,
437 queue->start_ptr = newbuf;
438 queue->end_ptr = (char *) newbuf +
440 queue->tail_ptr = (char *) newbuf +
443 queue->head_ptr = (char *) newbuf +
447 queue->list_head.next = (vxge_list_t *) (void *)((char *) newbuf +
450 queue->list_head.prev = (vxge_list_t *) (void *)((char *) newbuf
[all...]
/freebsd-11-stable/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;
/freebsd-11-stable/contrib/tcsh/
H A Dma.setp.c349 char newbuf[MAXPATHLEN+1];/*FIXBUF*/ local
352 new = newbuf;
392 char newbuf[MAXPATHLEN+1];/*FIXBUF*/ local
398 new = newbuf;
456 char newbuf[2000];/*FIXBUF*/ local
459 new = newbuf;
558 char newbuf[MAXPATHLEN+1];/*FIXBUF*/ local
561 new = newbuf;
/freebsd-11-stable/lib/libipsec/
H A Dipsec_dump_policy.c80 char *newbuf; local
158 newbuf = (char *)realloc(buf, buflen);
159 if (newbuf == NULL) {
164 buf = newbuf;
/freebsd-11-stable/sys/dev/iicbus/
H A Drtc8583.c100 uint8_t newbuf[MAX_TRANSFER]; local
104 newbuf[0] = regaddr;
105 memcpy(newbuf + 1, buffer, buflen);
109 msgs.buf = newbuf;
/freebsd-11-stable/usr.sbin/ctld/
H A Disns.c96 void *newbuf; local
102 newbuf = realloc(req->ir_buf, newlen);
103 if (newbuf == NULL) {
107 req->ir_buf = newbuf;
/freebsd-11-stable/lib/libc/db/hash/
H A Dhash_buf.c52 * newbuf
71 static BUFHEAD *newbuf(HTAB *, u_int32_t, BUFHEAD *);
135 bp = newbuf(hashp, addr, prev_bp);
153 * If newbuf finds an error (returning NULL), it also sets errno.
156 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) function
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_nbt.c490 char newbuf[INET_ADDRSTRLEN]; local
505 inet_ntoa_r(nbtarg->newaddr, INET_NTOA_BUF(newbuf)),
514 printf("<%s>", inet_ntoa_r(nb->addr, INET_NTOA_BUF(newbuf)));
563 char newbuf[INET_ADDRSTRLEN]; local
579 inet_ntoa_r(nbtarg->newaddr, INET_NTOA_BUF(newbuf)));
585 printf("..%s", inet_ntoa_r(a->addr, INET_NTOA_BUF(newbuf)));
/freebsd-11-stable/sbin/sysctl/
H A Dsysctl.c237 * Parse a single numeric value, append it to 'newbuf', and update
246 void *newbuf; local
338 newbuf = realloc(*newbufp, *newsizep + valsize);
339 if (newbuf == NULL)
341 memcpy((char *)newbuf + *newsizep, newval, valsize);
342 *newbufp = newbuf;
359 void *newbuf; local
481 newbuf = NULL;
492 if (!parse_numeric(cp, fmt, kind, &newbuf,
497 free(newbuf);
[all...]
/freebsd-11-stable/contrib/pf/libevent/
H A Dbuffer.c273 void *newbuf; local
283 if ((newbuf = realloc(buf->buffer, length)) == NULL)
286 buf->orig_buffer = buf->buffer = newbuf;
/freebsd-11-stable/sys/kern/
H A Dsubr_sbuf.c164 char *newbuf; local
170 newbuf = SBMALLOC(newsize);
171 if (newbuf == NULL)
173 memcpy(newbuf, s->s_buf, s->s_size);
178 s->s_buf = newbuf;
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_dict_helpers.c777 struct wpabuf **newbuf; local
781 newbuf = os_realloc_array(entry->binarray_value,
783 if (!newbuf)
785 entry->binarray_value = newbuf;
/freebsd-11-stable/contrib/gdb/gdb/
H A Dregcache.c472 struct regcache *newbuf; local
474 newbuf = regcache_xmalloc (src->descr->gdbarch);
475 regcache_cpy (newbuf, src);
476 return newbuf;
482 struct regcache *newbuf; local
484 newbuf = regcache_xmalloc (src->descr->gdbarch);
485 regcache_cpy_no_passthrough (newbuf, src);
486 return newbuf;
/freebsd-11-stable/contrib/file/src/
H A Dcompress.c248 unsigned char *newbuf = NULL; local
287 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz);
289 (char *)newbuf, nsz);
295 prv = format_decompression_error(ms, i, newbuf);
297 prv = file_buffer(ms, -1, NULL, name, newbuf, nsz);
345 free(newbuf);
/freebsd-11-stable/lib/libc/rpc/
H A Dsvc_dg.c581 char *newbuf; local
605 newbuf = victim->cache_reply;
613 newbuf = mem_alloc(su->su_iosz);
614 if (newbuf == NULL) {
638 rpc_buffer(xprt) = newbuf;
/freebsd-11-stable/usr.sbin/dconschat/
H A Ddconschat.c397 off_t newbuf; local
401 newbuf = dc->paddr + ntohl(dbuf.ooffset[j]);
404 if (newbuf != o->buf) {
409 o->buf = newbuf;
/freebsd-11-stable/gnu/usr.bin/grep/
H A Dgrep.c372 char *newbuf; local
399 newbuf = bufalloc < newalloc ? xmalloc (bufalloc = newalloc) : buffer;
400 readbuf = ALIGN_TO (newbuf + 1 + save, pagesize);
404 if (newbuf != buffer)
407 buffer = newbuf;
/freebsd-11-stable/contrib/sendmail/libmilter/
H A Dengine.c478 milter_addsymlist(ctx, buf, newbuf)
481 char **newbuf;
490 SM_ASSERT(newbuf != NULL);
540 *newbuf = buffer;
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_subr.c661 char *newbuf; local
669 if ((newbuf = realloc(dtp->dt_buffered_buf,
675 dtp->dt_buffered_buf = newbuf;

Completed in 259 milliseconds

12