| /freebsd-12-stable/sbin/hastd/ |
| D | hast_compression.c | 77 void *newbuf; in hast_hole_compress() local 82 newbuf = malloc(sizeof(size)); in hast_hole_compress() 83 if (newbuf == NULL) { in hast_hole_compress() 89 bcopy(&size, newbuf, sizeof(size)); in hast_hole_compress() 92 return (newbuf); in hast_hole_compress() 99 void *newbuf; in hast_hole_decompress() local 110 newbuf = malloc(size); in hast_hole_decompress() 111 if (newbuf == NULL) { in hast_hole_decompress() 116 bzero(newbuf, size); in hast_hole_decompress() 119 return (newbuf); in hast_hole_decompress() [all …]
|
| /freebsd-12-stable/lib/libthr/thread/ |
| D | thr_clean.c | 63 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() 69 newbuf->prev = curthread->cleanup; in __thr_cleanup_push_imp() 70 curthread->cleanup = newbuf; in __thr_cleanup_push_imp() 92 struct pthread_cleanup *newbuf; in _thr_cleanup_push() local 96 if ((newbuf = (struct pthread_cleanup *) in _thr_cleanup_push() 98 newbuf->routine = routine; in _thr_cleanup_push() [all …]
|
| /freebsd-12-stable/contrib/libedit/ |
| D | hist.c | 228 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-12-stable/sys/netpfil/ipfilter/netinet/ |
| D | ip_irc_pxy.c | 248 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()
|
| D | ip_ftp_pxy.c | 285 char newbuf[IPF_FTPBUFSZ], *s; in ipf_p_ftp_port() local 394 (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() 419 COPYBACK(m, off, nlen, newbuf); in ipf_p_ftp_port() 677 char newbuf[IPF_FTPBUFSZ]; in ipf_p_ftp_pasv() local 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() 1664 char newbuf[IPF_FTPBUFSZ]; in ipf_p_ftp_eprt4() local 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() [all …]
|
| /freebsd-12-stable/contrib/tcsh/ |
| D | ma.setp.c | 349 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-12-stable/usr.bin/m4/ |
| D | misc.c | 204 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-12-stable/sbin/sysctl/ |
| D | sysctl.c | 237 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() 505 if (!parse_numeric(cp, fmt, kind, &newbuf, &newsize)) { in parse() 508 free(newbuf); in parse() 513 newval = newbuf; in parse() [all …]
|
| /freebsd-12-stable/lib/libipsec/ |
| D | ipsec_dump_policy.c | 82 char *newbuf; local 160 newbuf = (char *)realloc(buf, buflen); 161 if (newbuf == NULL) { 166 buf = newbuf;
|
| /freebsd-12-stable/usr.sbin/ctld/ |
| D | isns.c | 96 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-12-stable/sys/dev/iicbus/ |
| D | rtc8583.c | 102 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-12-stable/sys/netinet/libalias/ |
| D | alias_nbt.c | 480 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-12-stable/lib/libc/db/hash/ |
| D | hash_buf.c | 73 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-12-stable/contrib/file/src/ |
| D | compress.c | 251 unsigned char *newbuf = NULL; in file_zmagic() local 290 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic() 292 (char *)newbuf, nsz); in file_zmagic() 298 prv = format_decompression_error(ms, i, newbuf); in file_zmagic() 300 prv = file_buffer(ms, -1, NULL, name, newbuf, nsz); in file_zmagic() 348 free(newbuf); in file_zmagic()
|
| /freebsd-12-stable/contrib/one-true-awk/ |
| D | tran.c | 565 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-12-stable/sys/kern/ |
| D | subr_sbuf.c | 170 char *newbuf; in sbuf_extend() local 176 newbuf = SBMALLOC(newsize, SBUF_MALLOCFLAG(s)); in sbuf_extend() 177 if (newbuf == NULL) in sbuf_extend() 179 memcpy(newbuf, s->s_buf, s->s_size); in sbuf_extend() 184 s->s_buf = newbuf; in sbuf_extend()
|
| /freebsd-12-stable/contrib/pf/libevent/ |
| D | buffer.c | 273 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-12-stable/contrib/gdb/gdb/ |
| D | regcache.c | 472 struct regcache *newbuf; in regcache_dup() local 474 newbuf = regcache_xmalloc (src->descr->gdbarch); in regcache_dup() 475 regcache_cpy (newbuf, src); in regcache_dup() 476 return newbuf; in regcache_dup() 482 struct regcache *newbuf; in regcache_dup_no_passthrough() local 484 newbuf = regcache_xmalloc (src->descr->gdbarch); in regcache_dup_no_passthrough() 485 regcache_cpy_no_passthrough (newbuf, src); in regcache_dup_no_passthrough() 486 return newbuf; in regcache_dup_no_passthrough()
|
| /freebsd-12-stable/lib/libc/rpc/ |
| D | svc_dg.c | 583 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-12-stable/contrib/wpa/wpa_supplicant/dbus/ |
| D | dbus_dict_helpers.c | 777 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-12-stable/gnu/usr.bin/grep/ |
| D | grep.c | 372 char *newbuf; in fillbuf() local 399 newbuf = bufalloc < newalloc ? xmalloc (bufalloc = newalloc) : buffer; in fillbuf() 400 readbuf = ALIGN_TO (newbuf + 1 + save, pagesize); in fillbuf() 404 if (newbuf != buffer) in fillbuf() 407 buffer = newbuf; in fillbuf()
|
| /freebsd-12-stable/usr.sbin/dconschat/ |
| D | dconschat.c | 399 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-12-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| D | dt_subr.c | 661 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-12-stable/contrib/sendmail/libmilter/ |
| D | engine.c | 478 milter_addsymlist(ctx, buf, newbuf) in milter_addsymlist() argument 481 char **newbuf; 490 SM_ASSERT(newbuf != NULL); 540 *newbuf = buffer;
|
| /freebsd-12-stable/usr.sbin/makefs/ |
| D | ffs.c | 1032 u_char *newbuf; in ffs_make_dirbuf() local 1063 newbuf = erealloc(dbuf->buf, dbuf->size + DIRBLKSIZ); in ffs_make_dirbuf() 1064 dbuf->buf = newbuf; in ffs_make_dirbuf()
|