Home
last modified time | relevance | path

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

12

/freebsd-13.1/sbin/hastd/
H A Dhast_compression.c77 void *newbuf; in hast_hole_compress() local
92 return (newbuf); in hast_hole_compress()
99 void *newbuf; in hast_hole_decompress() local
119 return (newbuf); in hast_hole_decompress()
147 free(newbuf); in hast_lzf_compress()
154 return (newbuf); in hast_lzf_compress()
179 free(newbuf); in hast_lzf_decompress()
186 return (newbuf); in hast_lzf_decompress()
239 free(newbuf); in compression_send()
246 *datap = newbuf; in compression_send()
[all …]
/freebsd-13.1/lib/libthr/thread/
H A Dthr_clean.c63 struct pthread_cleanup *newbuf; in __thr_cleanup_push_imp() local
65 newbuf = (void *)info; in __thr_cleanup_push_imp()
66 newbuf->routine = routine; in __thr_cleanup_push_imp()
67 newbuf->routine_arg = arg; in __thr_cleanup_push_imp()
68 newbuf->onheap = 0; in __thr_cleanup_push_imp()
70 curthread->cleanup = newbuf; in __thr_cleanup_push_imp()
92 struct pthread_cleanup *newbuf; in _thr_cleanup_push() local
98 newbuf->routine = routine; in _thr_cleanup_push()
99 newbuf->routine_arg = arg; in _thr_cleanup_push()
100 newbuf->onheap = 1; in _thr_cleanup_push()
[all …]
/freebsd-13.1/contrib/libedit/
H A Dhist.c228 wchar_t *newbuf; in hist_enlargebuf() local
230 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf)); in hist_enlargebuf()
231 if (!newbuf) in hist_enlargebuf()
234 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf)); in hist_enlargebuf()
236 el->el_history.last = newbuf + in hist_enlargebuf()
238 el->el_history.buf = newbuf; in hist_enlargebuf()
/freebsd-13.1/sys/netpfil/ipfilter/netinet/
H A Dip_irc_pxy.c248 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; in ipf_p_irc_send() local
280 *newbuf = '\0'; in ipf_p_irc_send()
302 (void) strncpy(newbuf, ctcpbuf, i); in ipf_p_irc_send()
304 (void) snprintf(newbuf, sizeof(newbuf), "%u %u\001\r\n", a1, a5); in ipf_p_irc_send()
306 nlen = strlen(newbuf); in ipf_p_irc_send()
343 COPYBACK(m, off, nlen, newbuf); in ipf_p_irc_send()
H A Dip_ftp_pxy.c394 (void) snprintf(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n", in ipf_p_ftp_port()
397 nlen = strlen(newbuf); in ipf_p_ftp_port()
804 (void) snprintf(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n", in ipf_p_ftp_pasv()
808 newbuf, s)); in ipf_p_ftp_pasv()
1768 (void) snprintf(newbuf, sizeof(newbuf), "%s %c1%c%u.%u.%u.%u%c%u%c\r\n", in ipf_p_ftp_eprt4()
1772 nlen = strlen(newbuf); in ipf_p_ftp_eprt4()
1864 (void) snprintf(newbuf, sizeof(newbuf), "%s (|||%u|)\r\n", in ipf_p_ftp_epsv()
1868 newbuf, s)); in ipf_p_ftp_epsv()
2003 s = newbuf; in ipf_p_ftp_eprt6()
2004 left = sizeof(newbuf); in ipf_p_ftp_eprt6()
[all …]
/freebsd-13.1/contrib/tcsh/
H A Dma.setp.c349 char newbuf[MAXPATHLEN+1];/*FIXBUF*/ in tcsh_rcmd() local
352 new = newbuf; in tcsh_rcmd()
392 char newbuf[MAXPATHLEN+1];/*FIXBUF*/ in icmd() local
398 new = newbuf; in icmd()
456 char newbuf[2000];/*FIXBUF*/ in insert() local
459 new = newbuf; in insert()
558 char newbuf[MAXPATHLEN+1];/*FIXBUF*/ in change() local
561 new = newbuf; in change()
/freebsd-13.1/usr.bin/m4/
H A Dmisc.c204 unsigned char *newbuf; in enlarge_bufspace() local
208 newbuf = xrealloc(buf, bufsize, "too many characters pushed back"); in enlarge_bufspace()
210 bbase[i] = (bbase[i]-buf)+newbuf; in enlarge_bufspace()
211 bp = (bp-buf)+newbuf; in enlarge_bufspace()
212 bufbase = (bufbase-buf)+newbuf; in enlarge_bufspace()
213 buf = newbuf; in enlarge_bufspace()
/freebsd-13.1/sbin/ggate/ggatec/
H A Dggatec.c101 char *newbuf; in send_thread() local
135 newbuf = malloc(ggio.gctl_length); in send_thread()
136 if (newbuf != NULL) { in send_thread()
138 ggio.gctl_data = newbuf; in send_thread()
218 char *newbuf; in recv_thread() local
254 newbuf = malloc(ggio.gctl_length); in recv_thread()
255 if (newbuf != NULL) { in recv_thread()
257 ggio.gctl_data = newbuf; in recv_thread()
/freebsd-13.1/lib/libipsec/
H A Dipsec_dump_policy.c82 char *newbuf; local
160 newbuf = (char *)realloc(buf, buflen);
161 if (newbuf == NULL) {
166 buf = newbuf;
/freebsd-13.1/sbin/sysctl/
H A Dsysctl.c237 void *newbuf; in parse_numeric() local
329 newbuf = realloc(*newbufp, *newsizep + valsize); in parse_numeric()
330 if (newbuf == NULL) in parse_numeric()
332 memcpy((char *)newbuf + *newsizep, newval, valsize); in parse_numeric()
333 *newbufp = newbuf; in parse_numeric()
350 void *newbuf; in parse() local
494 newbuf = NULL; in parse()
508 free(newbuf); in parse()
513 newval = newbuf; in parse()
523 free(newbuf); in parse()
[all …]
/freebsd-13.1/usr.sbin/ctld/
H A Disns.c96 void *newbuf; in isns_req_getspace() local
102 newbuf = realloc(req->ir_buf, newlen); in isns_req_getspace()
103 if (newbuf == NULL) { in isns_req_getspace()
107 req->ir_buf = newbuf; in isns_req_getspace()
/freebsd-13.1/sys/dev/iicbus/
H A Drtc8583.c102 uint8_t newbuf[MAX_TRANSFER]; in rtc8583_writeto() local
106 newbuf[0] = regaddr; in rtc8583_writeto()
107 memcpy(newbuf + 1, buffer, buflen); in rtc8583_writeto()
111 msgs.buf = newbuf; in rtc8583_writeto()
/freebsd-13.1/sys/netinet/libalias/
H A Dalias_nbt.c480 char newbuf[INET_ADDRSTRLEN]; in AliasHandleResourceNB() local
495 inet_ntoa_r(nbtarg->newaddr, INET_NTOA_BUF(newbuf)), in AliasHandleResourceNB()
504 printf("<%s>", inet_ntoa_r(nb->addr, INET_NTOA_BUF(newbuf))); in AliasHandleResourceNB()
553 char newbuf[INET_ADDRSTRLEN]; in AliasHandleResourceA() local
569 inet_ntoa_r(nbtarg->newaddr, INET_NTOA_BUF(newbuf))); in AliasHandleResourceA()
575 printf("..%s", inet_ntoa_r(a->addr, INET_NTOA_BUF(newbuf))); in AliasHandleResourceA()
/freebsd-13.1/lib/libc/db/hash/
H A Dhash_buf.c73 static BUFHEAD *newbuf(HTAB *, u_int32_t, BUFHEAD *);
137 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
158 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) in newbuf() function
/freebsd-13.1/contrib/file/src/
H A Dcompress.c248 unsigned char *newbuf = NULL; in file_zmagic() local
287 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic()
289 (char *)newbuf, nsz); in file_zmagic()
295 prv = format_decompression_error(ms, i, newbuf); in file_zmagic()
297 prv = file_buffer(ms, -1, NULL, name, newbuf, nsz); in file_zmagic()
345 free(newbuf); in file_zmagic()
/freebsd-13.1/contrib/pf/libevent/
H A Dbuffer.c273 void *newbuf; in evbuffer_expand() local
283 if ((newbuf = realloc(buf->buffer, length)) == NULL) in evbuffer_expand()
286 buf->orig_buffer = buf->buffer = newbuf; in evbuffer_expand()
/freebsd-13.1/sys/kern/
H A Dsubr_sbuf.c171 char *newbuf; in sbuf_extend() local
177 newbuf = SBMALLOC(newsize, SBUF_MALLOCFLAG(s)); in sbuf_extend()
178 if (newbuf == NULL) in sbuf_extend()
180 memcpy(newbuf, s->s_buf, s->s_size); in sbuf_extend()
185 s->s_buf = newbuf; in sbuf_extend()
/freebsd-13.1/contrib/one-true-awk/
H A Dtran.c565 char *newbuf = (char *) malloc(l); in catstr() local
566 if (newbuf == NULL) in catstr()
570 snprintf(newbuf, l, "%s ", p); in catstr()
571 c = setsymtab(newbuf, p, 0.0, CON|STR|DONTFREE, symtab); in catstr()
573 free(newbuf); in catstr()
/freebsd-13.1/lib/libc/rpc/
H A Dsvc_dg.c583 char *newbuf; in cache_set() local
607 newbuf = victim->cache_reply; in cache_set()
615 newbuf = mem_alloc(su->su_iosz); in cache_set()
616 if (newbuf == NULL) { in cache_set()
640 rpc_buffer(xprt) = newbuf; in cache_set()
/freebsd-13.1/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_dict_helpers.c777 struct wpabuf **newbuf; in _wpa_dbus_dict_entry_get_binarray() local
781 newbuf = os_realloc_array(entry->binarray_value, in _wpa_dbus_dict_entry_get_binarray()
783 if (!newbuf) in _wpa_dbus_dict_entry_get_binarray()
785 entry->binarray_value = newbuf; in _wpa_dbus_dict_entry_get_binarray()
/freebsd-13.1/usr.sbin/dconschat/
H A Ddconschat.c399 off_t newbuf; in dconschat_fetch_header() local
403 newbuf = dc->paddr + ntohl(dbuf.ooffset[j]); in dconschat_fetch_header()
406 if (newbuf != o->buf) { in dconschat_fetch_header()
411 o->buf = newbuf; in dconschat_fetch_header()
/freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_subr.c661 char *newbuf; in dt_printf() local
669 if ((newbuf = realloc(dtp->dt_buffered_buf, in dt_printf()
675 dtp->dt_buffered_buf = newbuf; in dt_printf()
/freebsd-13.1/contrib/sendmail/libmilter/
H A Dengine.c478 milter_addsymlist(ctx, buf, newbuf) in milter_addsymlist() argument
481 char **newbuf;
490 SM_ASSERT(newbuf != NULL);
540 *newbuf = buffer;
/freebsd-13.1/usr.sbin/makefs/
H A Dffs.c1039 u_char *newbuf; in ffs_make_dirbuf() local
1070 newbuf = erealloc(dbuf->buf, dbuf->size + DIRBLKSIZ); in ffs_make_dirbuf()
1071 dbuf->buf = newbuf; in ffs_make_dirbuf()
/freebsd-13.1/contrib/bsnmp/snmp_mibII/
H A DmibII.c1255 u_char *buf, *newbuf; in mib_fetch_rtab() local
1277 if ((newbuf = realloc(buf, *lenp)) == NULL) { in mib_fetch_rtab()
1282 buf = newbuf; in mib_fetch_rtab()

12