HomeSort by: relevance | last modified time | path
    Searched refs:newbuf (Results 1 - 25 of 36) sorted by relevancy

1 2

  /src/lib/libedit/
hist.c 228 wchar_t *newbuf; local in function:hist_enlargebuf
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;
hist.c 228 wchar_t *newbuf; local in function:hist_enlargebuf
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;
  /src/usr.bin/m4/
misc.c 202 unsigned char *newbuf; local in function:enlarge_bufspace
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;
misc.c 202 unsigned char *newbuf; local in function:enlarge_bufspace
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;
  /src/sys/external/bsd/ipf/netinet/
ip_irc_pxy.c 253 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local in function:ipf_p_irc_send
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);
ip_irc_pxy.c 253 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local in function:ipf_p_irc_send
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);
ip_ftp_pxy.c 285 char newbuf[IPF_FTPBUFSZ], *s; local in function:ipf_p_ftp_port
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 in function:ipf_p_ftp_pasv
804 snprintf(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
808 newbuf, s);
1675 char newbuf[IPF_FTPBUFSZ] local in function:ipf_p_ftp_eprt4
1817 char newbuf[IPF_FTPBUFSZ]; local in function:ipf_p_ftp_epsv
1890 char newbuf[IPF_FTPBUFSZ]; local in function:ipf_p_ftp_eprt6
    [all...]
ip_ftp_pxy.c 285 char newbuf[IPF_FTPBUFSZ], *s; local in function:ipf_p_ftp_port
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 in function:ipf_p_ftp_pasv
804 snprintf(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
808 newbuf, s);
1675 char newbuf[IPF_FTPBUFSZ] local in function:ipf_p_ftp_eprt4
1817 char newbuf[IPF_FTPBUFSZ]; local in function:ipf_p_ftp_epsv
1890 char newbuf[IPF_FTPBUFSZ]; local in function:ipf_p_ftp_eprt6
    [all...]
  /src/sys/lib/libkern/
strlist.c 329 char * const newbuf = strlist_alloc(newsize); local in function:strlist_append
331 if (newbuf == NULL) {
336 memcpy(newbuf, sl, slsize);
339 memcpy(newbuf + slsize, str, addsize);
345 *slp = newbuf;
strlist.c 329 char * const newbuf = strlist_alloc(newsize); local in function:strlist_append
331 if (newbuf == NULL) {
336 memcpy(newbuf, sl, slsize);
339 memcpy(newbuf + slsize, str, addsize);
345 *slp = newbuf;
  /src/lib/libc/db/hash/
hash_buf.c 55 * 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 in typeref:typename:BUFHEAD *
hash_buf.c 55 * 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 in typeref:typename:BUFHEAD *
  /src/regress/sys/kern/getcwd/
getcwd.c 146 char newbuf[1024]; local in function:check1
147 char *cp = old_getcwd(newbuf, sizeof(newbuf));
getcwd.c 146 char newbuf[1024]; local in function:check1
147 char *cp = old_getcwd(newbuf, sizeof(newbuf));
  /src/lib/libkvm/
kvm.c 175 void *newbuf; local in function:_kvm_pread
203 newbuf = realloc(kd->iobuf, dsize);
204 if (newbuf == NULL) {
208 kd->iobuf = newbuf;
819 void *newbuf; local in function:kvm_dump_inval
838 newbuf = realloc(kd->iobuf, dsize);
839 if (newbuf == NULL) {
843 kd->iobuf = newbuf;
kvm.c 175 void *newbuf; local in function:_kvm_pread
203 newbuf = realloc(kd->iobuf, dsize);
204 if (newbuf == NULL) {
208 kd->iobuf = newbuf;
819 void *newbuf; local in function:kvm_dump_inval
838 newbuf = realloc(kd->iobuf, dsize);
839 if (newbuf == NULL) {
843 kd->iobuf = newbuf;
  /src/sys/dev/
kloader.c 182 char *oldbuf, *newbuf; local in function:kloader_load
377 newbuf = (char *)(void *)kv
380 DPRINTF("argv: old %p -> new %p\n", oldbuf, newbuf);
383 nbi.argv = (void *)newbuf;
390 ap[i] = newbuf +
kloader.c 182 char *oldbuf, *newbuf; local in function:kloader_load
377 newbuf = (char *)(void *)kv
380 DPRINTF("argv: old %p -> new %p\n", oldbuf, newbuf);
383 nbi.argv = (void *)newbuf;
390 ap[i] = newbuf +
  /src/lib/libc/rpc/
svc_dg.c 483 char *newbuf; local in function:cache_set
512 newbuf = victim->cache_reply;
520 newbuf = mem_alloc(su->su_iosz);
521 if (newbuf == NULL) {
545 rpc_buffer(xprt) = newbuf;
svc_dg.c 483 char *newbuf; local in function:cache_set
512 newbuf = victim->cache_reply;
520 newbuf = mem_alloc(su->su_iosz);
521 if (newbuf == NULL) {
545 rpc_buffer(xprt) = newbuf;
  /src/sys/kern/
kern_sysctl.c 1582 char *newbuf; local in function:sysctl_lookup
1594 newbuf = malloc(len, M_SYSCTLDATA, M_WAITOK);
1595 if (newbuf == NULL) {
1599 error = sysctl_copyin(l, newp, newbuf, len);
1601 free(newbuf, M_SYSCTLDATA);
1610 if (newbuf[len - 1] != '\0' && len == sz) {
1611 free(newbuf, M_SYSCTLDATA);
1620 memcpy(d, newbuf, len);
1625 free(newbuf, M_SYSCTLDATA);
kern_sysctl.c 1582 char *newbuf; local in function:sysctl_lookup
1594 newbuf = malloc(len, M_SYSCTLDATA, M_WAITOK);
1595 if (newbuf == NULL) {
1599 error = sysctl_copyin(l, newp, newbuf, len);
1601 free(newbuf, M_SYSCTLDATA);
1610 if (newbuf[len - 1] != '\0' && len == sz) {
1611 free(newbuf, M_SYSCTLDATA);
1620 memcpy(d, newbuf, len);
1625 free(newbuf, M_SYSCTLDATA);
  /src/usr.sbin/syslogd/
tls.c 1581 char *newbuf; local in function:tls_split_messages
1628 newbuf = realloc(c->inbuf, MSG_END_OFFSET+1);
1629 if (newbuf) {
1632 c->inbuf = newbuf;
1684 newbuf = realloc(c->inbuf, TLS_LARGE_LINELENGTH);
1685 if (newbuf) {
1688 c->inbuf = newbuf;
tls.c 1581 char *newbuf; local in function:tls_split_messages
1628 newbuf = realloc(c->inbuf, MSG_END_OFFSET+1);
1629 if (newbuf) {
1632 c->inbuf = newbuf;
1684 newbuf = realloc(c->inbuf, TLS_LARGE_LINELENGTH);
1685 if (newbuf) {
1688 c->inbuf = newbuf;
  /src/usr.bin/fgen/
fgen.l 973 YY_BUFFER_STATE newbuf;
978 newbuf = yy_scan_string(xform->equiv);
979 yy_switch_to_buffer(newbuf);
980 tokenize(newbuf);
982 yy_delete_buffer(newbuf);

Completed in 45 milliseconds

1 2