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

123

/netbsd-current/external/mpl/dhcp/dist/omapip/
H A Darray.c95 char **newbuf; local
110 newbuf = dmalloc ((array -> max + delta) * sizeof (char *),
112 if (!newbuf)
115 memset (&newbuf [array -> max], 0, (sizeof (char *)) * delta);
119 memcpy (newbuf,
123 array -> data = newbuf;
/netbsd-current/lib/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;
/netbsd-current/external/bsd/tmux/dist/
H A Dosdep-dragonfly.c74 struct kinfo_proc *buf, *newbuf, *bestp; local
90 if ((newbuf = realloc(buf, len)) == NULL)
92 buf = newbuf;
H A Dosdep-freebsd.c88 struct kinfo_proc *buf, *newbuf, *bestp; local
104 if ((newbuf = realloc(buf, len)) == NULL)
106 buf = newbuf;
H A Dosdep-netbsd.c73 struct kinfo_proc2 *buf, *newbuf, *bestp; local
95 if ((newbuf = realloc(buf, len)) == NULL)
97 buf = newbuf;
H A Dosdep-openbsd.c91 struct kinfo_proc *buf, *newbuf, *bestp; local
107 if ((newbuf = realloc(buf, len)) == NULL)
109 buf = newbuf;
/netbsd-current/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-current/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;
/netbsd-current/sys/external/bsd/ipf/netinet/
H A Dip_irc_pxy.c253 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
289 *newbuf = '\0';
311 (void) strncpy(newbuf, ctcpbuf, i);
312 snprintf(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5);
314 nlen = strlen(newbuf);
351 COPYBACK(m, off, nlen, newbuf);
H A Dip_ftp_pxy.c285 char newbuf[IPF_FTPBUFSZ], *s; local
394 snprintf(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n",
397 nlen = strlen(newbuf);
419 COPYBACK(m, off, nlen, newbuf);
677 char newbuf[IPF_FTPBUFSZ]; local
804 snprintf(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
808 newbuf, s);
1675 char newbuf[IPF_FTPBUFS local
1817 char newbuf[IPF_FTPBUFSZ]; local
1890 char newbuf[IPF_FTPBUFSZ]; local
[all...]
/netbsd-current/external/gpl2/xcvs/dist/src/
H A Dzlib.c679 unsigned char *newbuf; local
682 newbuf = xrealloc (*buf, *size);
683 if (newbuf == NULL)
688 *buf = newbuf;
740 unsigned char *newbuf; local
745 newbuf = xrealloc (*buf, *size);
746 if (newbuf == NULL)
751 *buf = newbuf;
772 unsigned char *newbuf; local
777 newbuf
[all...]
/netbsd-current/external/gpl3/binutils/dist/libctf/
H A Dctf-decl.c181 char *newbuf; local
182 if ((newbuf = ctf_str_append (cd->cd_buf, str)) != NULL)
183 cd->cd_buf = newbuf;
/netbsd-current/external/gpl3/binutils.old/dist/libctf/
H A Dctf-decl.c180 char *newbuf; local
181 if ((newbuf = ctf_str_append (cd->cd_buf, str)) != NULL)
182 cd->cd_buf = newbuf;
/netbsd-current/external/gpl3/gdb.old/dist/libctf/
H A Dctf-decl.c181 char *newbuf; local
182 if ((newbuf = ctf_str_append (cd->cd_buf, str)) != NULL)
183 cd->cd_buf = newbuf;
/netbsd-current/external/gpl3/gdb/dist/libctf/
H A Dctf-decl.c181 char *newbuf; local
182 if ((newbuf = ctf_str_append (cd->cd_buf, str)) != NULL)
183 cd->cd_buf = newbuf;
/netbsd-current/external/gpl2/lvm2/dist/lib/log/
H A Dlog.c175 char *newbuf; local
209 else if ((newbuf = dm_realloc(_lvm_errmsg,
212 _lvm_errmsg = strcat(newbuf, "\n");
213 _lvm_errmsg = strcat(newbuf, message);
/netbsd-current/crypto/dist/ipsec-tools/src/libipsec/
H A Dipsec_dump_policy.c98 char *newbuf; local
255 newbuf = (char *)realloc(buf, buflen);
256 if (newbuf == NULL) {
261 buf = newbuf;
/netbsd-current/external/bsd/openldap/dist/contrib/slapd-modules/acl/
H A Dgssacl.c285 char newbuf[ACL_BUF_SIZE]; local
289 bv.bv_len = sizeof( newbuf ) - 1;
290 bv.bv_val = newbuf;
297 rc = regcomp( &re, newbuf, REG_EXTENDED|REG_ICASE );
/netbsd-current/external/apache2/mDNSResponder/dist/mDNSShared/
H A Ddnssd_clientlib.c220 unsigned char *newbuf; local
223 newbuf = malloc((size_t)newlen);
224 if (!newbuf) return(kDNSServiceErr_NoMemory);
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen);
227 txtRec->buffer = newbuf;
/netbsd-current/sys/lib/libkern/
H A Dstrlist.c329 char * const newbuf = strlist_alloc(newsize); local
331 if (newbuf == NULL) {
336 memcpy(newbuf, sl, slsize);
339 memcpy(newbuf + slsize, str, addsize);
345 *slp = newbuf;
/netbsd-current/lib/libc/db/hash/
H A Dhash_buf.c55 * newbuf
72 static BUFHEAD *newbuf(HTAB *, uint32_t, BUFHEAD *);
137 bp = newbuf(hashp, addr, prev_bp);
155 * If newbuf finds an error (returning NULL), it also sets errno.
158 newbuf(HTAB *hashp, uint32_t addr, BUFHEAD *prev_bp) function
/netbsd-current/regress/sys/kern/getcwd/
H A Dgetcwd.c146 char newbuf[1024]; local
147 char *cp = old_getcwd(newbuf, sizeof(newbuf));
/netbsd-current/external/mpl/dhcp/bind/dist/lib/dns/
H A Dprivate.c349 unsigned char newbuf[DNS_NSEC3PARAM_BUFFERSIZE]; local
380 isc_buffer_init(&b, newbuf, sizeof(newbuf));
/netbsd-current/external/mpl/bind/dist/lib/dns/
H A Dprivate.c349 unsigned char newbuf[DNS_NSEC3PARAM_BUFFERSIZE]; local
380 isc_buffer_init(&b, newbuf, sizeof(newbuf));
/netbsd-current/lib/libkvm/
H A Dkvm.c175 void *newbuf; local
203 newbuf = realloc(kd->iobuf, dsize);
204 if (newbuf == NULL) {
208 kd->iobuf = newbuf;
819 void *newbuf; local
838 newbuf = realloc(kd->iobuf, dsize);
839 if (newbuf == NULL) {
843 kd->iobuf = newbuf;

Completed in 219 milliseconds

123