Home
last modified time | relevance | path

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

123

/netbsd-src/lib/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()
/netbsd-src/external/mpl/dhcp/dist/omapip/
H A Darray.c95 char **newbuf; in omapi_array_set() local
110 newbuf = dmalloc ((array -> max + delta) * sizeof (char *), in omapi_array_set()
112 if (!newbuf) in omapi_array_set()
115 memset (&newbuf [array -> max], 0, (sizeof (char *)) * delta); in omapi_array_set()
119 memcpy (newbuf, in omapi_array_set()
123 array -> data = newbuf; in omapi_array_set()
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dzlib.c679 unsigned char *newbuf; in read_and_gzip() local
682 newbuf = xrealloc (*buf, *size); in read_and_gzip()
683 if (newbuf == NULL) in read_and_gzip()
688 *buf = newbuf; in read_and_gzip()
740 unsigned char *newbuf; in read_and_gzip() local
745 newbuf = xrealloc (*buf, *size); in read_and_gzip()
746 if (newbuf == NULL) in read_and_gzip()
751 *buf = newbuf; in read_and_gzip()
772 unsigned char *newbuf; in read_and_gzip() local
777 newbuf = realloc (*buf, *size); in read_and_gzip()
[all …]
/netbsd-src/external/bsd/ipf/dist/
H A Dip_irc_pxy.c259 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
295 *newbuf = '\0';
317 (void) strncpy(newbuf, ctcpbuf, i);
320 SNPRINTF(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5);
322 (void) sprintf(newbuf, "%u %u\001\r\n", a1, a5);
325 nlen = strlen(newbuf);
362 COPYBACK(m, off, nlen, newbuf);
/netbsd-src/usr.bin/m4/
H A Dmisc.c202 unsigned char *newbuf; in enlarge_bufspace() local
206 newbuf = xrealloc(buf, bufsize, "too many characters pushed back"); in enlarge_bufspace()
208 bbase[i] = (bbase[i]-buf)+newbuf; in enlarge_bufspace()
209 bp = (bp-buf)+newbuf; in enlarge_bufspace()
210 bufbase = (bufbase-buf)+newbuf; in enlarge_bufspace()
211 buf = newbuf; in enlarge_bufspace()
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_irc_pxy.c253 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; in ipf_p_irc_send() local
289 *newbuf = '\0'; in ipf_p_irc_send()
311 (void) strncpy(newbuf, ctcpbuf, i); in ipf_p_irc_send()
312 snprintf(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5); in ipf_p_irc_send()
314 nlen = strlen(newbuf); in ipf_p_irc_send()
351 COPYBACK(m, off, nlen, newbuf); in ipf_p_irc_send()
H A Dip_ftp_pxy.c285 char newbuf[IPF_FTPBUFSZ], *s; in ipf_p_ftp_port() local
394 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 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()
1675 char newbuf[IPF_FTPBUFSZ]; in ipf_p_ftp_eprt4() local
1778 snprintf(newbuf, sizeof(newbuf), "%s %c1%c%u.%u.%u.%u%c%u%c\r\n", in ipf_p_ftp_eprt4()
1781 nlen = strlen(newbuf); in ipf_p_ftp_eprt4()
[all …]
/netbsd-src/external/bsd/tmux/dist/
H A Dosdep-dragonfly.c74 struct kinfo_proc *buf, *newbuf, *bestp; in osdep_get_name() local
90 if ((newbuf = realloc(buf, len)) == NULL) in osdep_get_name()
92 buf = newbuf; in osdep_get_name()
H A Dosdep-netbsd.c73 struct kinfo_proc2 *buf, *newbuf, *bestp; in osdep_get_name() local
95 if ((newbuf = realloc(buf, len)) == NULL) in osdep_get_name()
97 buf = newbuf; in osdep_get_name()
H A Dosdep-openbsd.c91 struct kinfo_proc *buf, *newbuf, *bestp; in osdep_get_name() local
107 if ((newbuf = realloc(buf, len)) == NULL) in osdep_get_name()
109 buf = newbuf; in osdep_get_name()
H A Dosdep-freebsd.c88 struct kinfo_proc *buf, *newbuf, *bestp; in osdep_get_name() local
104 if ((newbuf = realloc(buf, len)) == NULL) in osdep_get_name()
106 buf = newbuf; in osdep_get_name()
/netbsd-src/sys/lib/libkern/
H A Dstrlist.c329 char * const newbuf = strlist_alloc(newsize); in strlist_append() local
331 if (newbuf == NULL) { in strlist_append()
336 memcpy(newbuf, sl, slsize); in strlist_append()
339 memcpy(newbuf + slsize, str, addsize); in strlist_append()
345 *slp = newbuf; in strlist_append()
/netbsd-src/external/gpl2/lvm2/dist/lib/log/
H A Dlog.c175 char *newbuf; in print_log() local
209 else if ((newbuf = dm_realloc(_lvm_errmsg, in print_log()
212 _lvm_errmsg = strcat(newbuf, "\n"); in print_log()
213 _lvm_errmsg = strcat(newbuf, message); in print_log()
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/acl/
H A Dgssacl.c285 char newbuf[ACL_BUF_SIZE]; in regex_matches() local
289 bv.bv_len = sizeof( newbuf ) - 1; in regex_matches()
290 bv.bv_val = newbuf; in regex_matches()
297 rc = regcomp( &re, newbuf, REG_EXTENDED|REG_ICASE ); in regex_matches()
/netbsd-src/external/gpl3/binutils.old/dist/libctf/
H A Dctf-decl.c181 char *newbuf; in ctf_decl_sprintf() local
182 if ((newbuf = ctf_str_append (cd->cd_buf, str)) != NULL) in ctf_decl_sprintf()
183 cd->cd_buf = newbuf; in ctf_decl_sprintf()
/netbsd-src/external/gpl3/binutils/dist/libctf/
H A Dctf-decl.c181 char *newbuf; in ctf_decl_sprintf() local
182 if ((newbuf = ctf_str_append (cd->cd_buf, str)) != NULL) in ctf_decl_sprintf()
183 cd->cd_buf = newbuf; in ctf_decl_sprintf()
/netbsd-src/crypto/dist/ipsec-tools/src/libipsec/
H A Dipsec_dump_policy.c98 char *newbuf; in ipsec_dump_policy1() local
255 newbuf = (char *)realloc(buf, buflen); in ipsec_dump_policy1()
256 if (newbuf == NULL) { in ipsec_dump_policy1()
261 buf = newbuf; in ipsec_dump_policy1()
/netbsd-src/lib/libkvm/
H A Dkvm.c175 void *newbuf; in _kvm_pread() local
203 newbuf = realloc(kd->iobuf, dsize); in _kvm_pread()
204 if (newbuf == NULL) { in _kvm_pread()
208 kd->iobuf = newbuf; in _kvm_pread()
819 void *newbuf; in kvm_dump_inval() local
838 newbuf = realloc(kd->iobuf, dsize); in kvm_dump_inval()
839 if (newbuf == NULL) { in kvm_dump_inval()
843 kd->iobuf = newbuf; in kvm_dump_inval()
/netbsd-src/lib/libc/db/hash/
H A Dhash_buf.c72 static BUFHEAD *newbuf(HTAB *, uint32_t, BUFHEAD *);
137 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
158 newbuf(HTAB *hashp, uint32_t addr, BUFHEAD *prev_bp) in newbuf() function
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Dprivate.c348 unsigned char newbuf[DNS_NSEC3PARAM_BUFFERSIZE]; in dns_private_totext()
379 isc_buffer_init(&b, newbuf, sizeof(newbuf)); in dns_private_totext()
349 unsigned char newbuf[DNS_NSEC3PARAM_BUFFERSIZE]; dns_private_totext() local
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Dprivate.c349 unsigned char newbuf[DNS_NSEC3PARAM_BUFFERSIZE]; in dns_private_totext() local
380 isc_buffer_init(&b, newbuf, sizeof(newbuf)); in dns_private_totext()
/netbsd-src/lib/libc/rpc/
H A Dsvc_dg.c483 char *newbuf; in cache_set() local
512 newbuf = victim->cache_reply; in cache_set()
520 newbuf = mem_alloc(su->su_iosz); in cache_set()
521 if (newbuf == NULL) { in cache_set()
545 rpc_buffer(xprt) = newbuf; in cache_set()
/netbsd-src/sys/dev/
H A Dkloader.c182 char *oldbuf, *newbuf; in kloader_load() local
377 newbuf = (char *)(void *)kv in kloader_load()
380 DPRINTF("argv: old %p -> new %p\n", oldbuf, newbuf); in kloader_load()
383 nbi.argv = (void *)newbuf; in kloader_load()
390 ap[i] = newbuf + in kloader_load()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/
H A Dlibverify.c710 char newbuf[3]; in fmt_binary() local
713 snprintf(newbuf, sizeof(newbuf), "%02hhx", bin[i]); in fmt_binary()
714 if (!obuf_add_mem(obuf, newbuf, 2)) { in fmt_binary()
851 char newbuf[3]; in fmt_fingerprint() local
859 cc = snprintf(newbuf, sizeof(newbuf), "%02hhx", in fmt_fingerprint()
861 if (!obuf_add_mem(obuf, newbuf, cc)) { in fmt_fingerprint()
970 char newbuf[128]; in fmt_time() local
977 cc = snprintf(newbuf, sizeof(newbuf), "%04d-%02d-%02d", in fmt_time()
980 !obuf_add_mem(obuf, newbuf, cc)) { in fmt_time()
984 cc = snprintf(newbuf, sizeof(newbuf), in fmt_time()
[all …]
/netbsd-src/regress/sys/kern/getcwd/
H A Dgetcwd.c146 char newbuf[1024]; local
147 char *cp = old_getcwd(newbuf, sizeof(newbuf));

123