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

12

/freebsd-current/sbin/hastd/
H A Dhast_compression.c75 void *newbuf; local
80 newbuf = malloc(sizeof(size));
81 if (newbuf == NULL) {
87 bcopy(&size, newbuf, sizeof(size));
90 return (newbuf);
97 void *newbuf; local
108 newbuf = malloc(size);
109 if (newbuf == NULL) {
114 bzero(newbuf, size);
117 return (newbuf);
126 unsigned char *newbuf; local
158 unsigned char *newbuf; local
206 unsigned char *newbuf; local
254 unsigned char *newbuf; local
[all...]
/freebsd-current/lib/libthr/thread/
H A Dthr_clean.c60 struct pthread_cleanup *newbuf; local
62 newbuf = (void *)info;
63 newbuf->routine = routine;
64 newbuf->routine_arg = arg;
65 newbuf->onheap = 0;
66 newbuf->prev = curthread->cleanup;
67 curthread->cleanup = newbuf;
89 struct pthread_cleanup *newbuf; local
93 if ((newbuf = (struct pthread_cleanup *)
95 newbuf
[all...]
/freebsd-current/contrib/libedit/
H A Dhist.c228 wchar_t *newbuf; local
230 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf));
231 if (!newbuf)
234 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf));
236 el->el_history.last = newbuf +
238 el->el_history.buf = newbuf;
/freebsd-current/sys/netpfil/ipfilter/netinet/
H A Dip_irc_pxy.c248 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
280 *newbuf = '\0';
302 (void) strncpy(newbuf, ctcpbuf, i);
304 (void) snprintf(newbuf, sizeof(newbuf), "%u %u\001\r\n", a1, a5);
306 nlen = strlen(newbuf);
343 COPYBACK(m, off, nlen, newbuf);
H A Dip_ftp_pxy.c280 char newbuf[IPF_FTPBUFSZ], *s; local
389 (void) snprintf(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n",
392 nlen = strlen(newbuf);
414 COPYBACK(m, off, nlen, newbuf);
672 char newbuf[IPF_FTPBUFSZ]; local
799 (void) snprintf(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
803 newbuf, s));
1659 char newbuf[IPF_FTPBUFS local
1803 char newbuf[IPF_FTPBUFSZ]; local
1872 char newbuf[IPF_FTPBUFSZ]; local
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Duma_zalloc_arg.sh220 + char *newbuf = NULL;
230 + newbuf = malloc(newlen, M_TEMP, M_WAITOK);
231 + error = SYSCTL_IN(req, newbuf, newlen);
247 + if (newbuf == NULL)
250 + bcopy(newbuf, arg1, newlen);
255 + free(newbuf, M_TEMP);
/freebsd-current/usr.bin/m4/
H A Dmisc.c201 unsigned char *newbuf; local
205 newbuf = xrealloc(buf, bufsize, "too many characters pushed back");
207 bbase[i] = (bbase[i]-buf)+newbuf;
208 bp = (bp-buf)+newbuf;
209 bufbase = (bufbase-buf)+newbuf;
210 buf = newbuf;
/freebsd-current/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-current/sys/dev/iicbus/rtc/
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-current/usr.sbin/ctld/
H A Disns.c93 void *newbuf; local
99 newbuf = realloc(req->ir_buf, newlen);
100 if (newbuf == NULL) {
104 req->ir_buf = newbuf;
/freebsd-current/lib/libipsec/
H A Dipsec_dump_policy.c77 char *newbuf; local
155 newbuf = (char *)realloc(buf, buflen);
156 if (newbuf == NULL) {
161 buf = newbuf;
/freebsd-current/sbin/ggate/ggatec/
H A Dggatec.c99 char *newbuf; local
133 newbuf = malloc(ggio.gctl_length);
134 if (newbuf != NULL) {
136 ggio.gctl_data = newbuf;
216 char *newbuf; local
252 newbuf = malloc(ggio.gctl_length);
253 if (newbuf != NULL) {
255 ggio.gctl_data = newbuf;
/freebsd-current/lib/libc/db/hash/
H A Dhash_buf.c48 * newbuf
67 static BUFHEAD *newbuf(HTAB *, u_int32_t, BUFHEAD *);
131 bp = newbuf(hashp, addr, prev_bp);
149 * If newbuf finds an error (returning NULL), it also sets errno.
152 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) function
/freebsd-current/sys/netinet/libalias/
H A Dalias_nbt.c480 char newbuf[INET_ADDRSTRLEN]; local
495 inet_ntoa_r(nbtarg->newaddr, INET_NTOA_BUF(newbuf)),
504 printf("<%s>", inet_ntoa_r(nb->addr, INET_NTOA_BUF(newbuf)));
553 char newbuf[INET_ADDRSTRLEN]; local
569 inet_ntoa_r(nbtarg->newaddr, INET_NTOA_BUF(newbuf)));
575 printf("..%s", inet_ntoa_r(a->addr, INET_NTOA_BUF(newbuf)));
/freebsd-current/sbin/sysctl/
H A Dsysctl.c233 * Parse a single numeric value, append it to 'newbuf', and update
242 void *newbuf; local
334 newbuf = realloc(*newbufp, *newsizep + valsize);
335 if (newbuf == NULL)
337 memcpy((char *)newbuf + *newsizep, newval, valsize);
338 *newbufp = newbuf;
355 void *newbuf; local
499 newbuf = NULL;
510 if (!parse_numeric(cp, fmt, kind, &newbuf, &newsize)) {
513 free(newbuf);
[all...]
/freebsd-current/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-current/sys/kern/
H A Dsubr_sbuf.c168 char *newbuf; local
174 newbuf = SBMALLOC(newsize, SBUF_MALLOCFLAG(s));
175 if (newbuf == NULL)
177 memcpy(newbuf, s->s_buf, s->s_size);
182 s->s_buf = newbuf;
/freebsd-current/contrib/one-true-awk/
H A Dtran.c556 char *newbuf = (char *) malloc(l); local
557 if (newbuf == NULL)
561 snprintf(newbuf, l, "%s ", p);
562 c = setsymtab(newbuf, p, 0.0, CON|STR|DONTFREE, symtab);
564 free(newbuf);
/freebsd-current/contrib/file/src/
H A Dcompress.c271 unsigned char *newbuf = NULL; local
310 free(newbuf);
312 (ms->flags & MAGIC_NO_COMPRESS_FORK), buf, &newbuf, &nsz);
314 (char *)newbuf, nsz);
320 prv = format_decompression_error(ms, i, newbuf);
322 prv = file_buffer(ms, -1, NULL, name, newbuf,
372 free(newbuf);
/freebsd-current/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-current/lib/libc/rpc/
H A Dsvc_dg.c577 char *newbuf; local
601 newbuf = victim->cache_reply;
609 newbuf = mem_alloc(su->su_iosz);
610 if (newbuf == NULL) {
634 rpc_buffer(xprt) = newbuf;
/freebsd-current/usr.sbin/dconschat/
H A Ddconschat.c394 off_t newbuf; local
398 newbuf = dc->paddr + ntohl(dbuf.ooffset[j]);
401 if (newbuf != o->buf) {
406 o->buf = newbuf;
/freebsd-current/contrib/sendmail/libmilter/
H A Dengine.c478 milter_addsymlist(ctx, buf, newbuf)
481 char **newbuf;
490 SM_ASSERT(newbuf != NULL);
540 *newbuf = buffer;
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_subr.c662 char *newbuf; local
670 if ((newbuf = realloc(dtp->dt_buffered_buf,
676 dtp->dt_buffered_buf = newbuf;
/freebsd-current/usr.sbin/makefs/
H A Dffs.c1047 u_char *newbuf; local
1078 newbuf = erealloc(dbuf->buf, dbuf->size + DIRBLKSIZ);
1079 dbuf->buf = newbuf;

Completed in 408 milliseconds

12