Home
last modified time | relevance | path

Searched refs:bufp (Results 1 – 25 of 115) sorted by relevance

12345

/freebsd-13-stable/contrib/ncurses/ncurses/tinfo/
HDcomp_expand.c66 int bufp; in _nc_tic_expand() local
91 bufp = 0; in _nc_tic_expand()
94 buffer[bufp++] = *str++; in _nc_tic_expand()
106 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
108 bufp += (int) strlen(buffer + bufp); in _nc_tic_expand()
111 buffer[bufp++] = *str; in _nc_tic_expand()
132 buffer[bufp++] = S_QUOTE; in _nc_tic_expand()
135 buffer[bufp++] = '\\'; in _nc_tic_expand()
136 buffer[bufp++] = (char) ch; in _nc_tic_expand()
137 buffer[bufp++] = S_QUOTE; in _nc_tic_expand()
[all …]
HDlib_termcap.c98 NCURSES_SP_NAME(tgetent) (NCURSES_SP_DCLx char *bufp, const char *name) in NCURSES_SP_NAME()
131 bool same_result = (MyCache[n].last_used && MyCache[n].last_bufp == bufp); in NCURSES_SP_NAME()
197 LAST_BUF = bufp; in NCURSES_SP_NAME()
216 if (bufp && _nc_termcap[0]) in NCURSES_SP_NAME()
217 strncpy(bufp, _nc_termcap, 1024); in NCURSES_SP_NAME()
225 tgetent(char *bufp, const char *name) in tgetent() argument
227 return NCURSES_SP_NAME(tgetent) (CURRENT_SCREEN, bufp, name); in tgetent()
/freebsd-13-stable/lib/libc/db/hash/
HDhash_bigkey.c86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
94 cp = bufp->page; /* Character pointer of p. */ in __big_insert()
116 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
117 if (!bufp) in __big_insert()
146 p = (u_int16_t *)bufp->page; in __big_insert()
147 cp = bufp->page; in __big_insert()
148 bufp->flags |= BUF_MOD; in __big_insert()
172 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
173 if (!bufp) in __big_insert()
175 cp = bufp->page; in __big_insert()
[all …]
HDhash_page.c126 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument
131 bp = (u_int16_t *)bufp->page; in __delpair()
135 return (__big_delete(hashp, bufp)); in __delpair()
145 char *src = bufp->page + (int)OFFSET(bp); in __delpair()
174 bufp->flags |= BUF_MOD; in __delpair()
284 BUFHEAD *bufp; /* Buffer header for ino */ in ugly_split() local
295 bufp = old_bufp; in ugly_split()
306 new_bufp, bufp, bufp->addr, obucket, &ret)) in ugly_split()
316 bufp = ret.nextp; in ugly_split()
317 if (!bufp) in ugly_split()
[all …]
HDhash.c576 BUFHEAD *bufp, *save_bufp; in hash_access() local
624 bufp = rbufp; in hash_access()
626 __find_last_page(hashp, &bufp))) { in hash_access()
628 rbufp = bufp; in hash_access()
631 rbufp = __get_buf(hashp, pageno, bufp, 0); in hash_access()
702 BUFHEAD *bufp; in hash_seq() local
721 if (!(bufp = hashp->cpage)) { in hash_seq()
725 bufp = __get_buf(hashp, bucket, NULL, 0); in hash_seq()
726 if (!bufp) in hash_seq()
728 hashp->cpage = bufp; in hash_seq()
[all …]
/freebsd-13-stable/sys/opencrypto/
HDcryptodeflate.c91 struct deflate_buf *bufh, *bufp; in deflate_global() local
95 bufh = bufp = NULL; in deflate_global()
115 bufh = bufp = malloc(sizeof(*bufp) + (size_t)(size * i), in deflate_global()
117 if (bufp == NULL) { in deflate_global()
122 bufp->next = NULL; in deflate_global()
123 bufp->size = size * i; in deflate_global()
131 zbuf.next_out = bufp->data; in deflate_global()
132 zbuf.avail_out = bufp->size; in deflate_global()
174 bufp->next = p; in deflate_global()
175 bufp = p; in deflate_global()
[all …]
/freebsd-13-stable/lib/libc/stdio/
HDopen_memstream.c48 char **bufp; member
65 buf = realloc(*ms->bufp, newsize + 1); in memstream_grow()
72 *ms->bufp = buf; in memstream_grow()
101 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
174 open_memstream(char **bufp, size_t *sizep) in open_memstream() argument
180 if (bufp == NULL || sizep == NULL) { in open_memstream()
184 *bufp = calloc(1, 1); in open_memstream()
185 if (*bufp == NULL) in open_memstream()
190 free(*bufp); in open_memstream()
191 *bufp = NULL; in open_memstream()
[all …]
HDopen_wmemstream.c48 wchar_t **bufp; member
66 buf = reallocarray(*ms->bufp, newsize + 1, sizeof(wchar_t)); in wmemstream_grow()
73 *ms->bufp = buf; in wmemstream_grow()
142 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write()
235 open_wmemstream(wchar_t **bufp, size_t *sizep) in open_wmemstream() argument
241 if (bufp == NULL || sizep == NULL) { in open_wmemstream()
245 *bufp = calloc(1, sizeof(wchar_t)); in open_wmemstream()
246 if (*bufp == NULL) in open_wmemstream()
251 free(*bufp); in open_wmemstream()
252 *bufp = NULL; in open_wmemstream()
[all …]
/freebsd-13-stable/sbin/ipf/libipf/
HDipft_pc.c177 static char *bufp = NULL; in ipcap_read() local
183 if (!bufp) in ipcap_read()
184 bufp = malloc(i); in ipcap_read()
186 bufp = realloc(bufp, i); in ipcap_read()
188 if (read(pfd, bufp, i) != i) in ipcap_read()
192 bcopy(bufp, buf, n); in ipcap_read()
204 static char *bufp = NULL; in ipcap_readip() local
224 if (!bufp) in ipcap_readip()
225 bufp = malloc(i); in ipcap_readip()
227 bufp = realloc(bufp, i); in ipcap_readip()
[all …]
/freebsd-13-stable/contrib/ntp/libparse/
HDieee754io.c103 unsigned char *bufp, in fmt_hex() argument
114 snprintf(hex, sizeof(hex), "%02x", bufp[i]); in fmt_hex()
125 unsigned char *bufp, in get_byte() argument
132 val = *(bufp + offset[*fieldindex]); in get_byte()
135 …printf("fetchieee754: getbyte(0x%08x, %d) = 0x%02x\n", (unsigned int)(bufp)+offset[*fieldindex], *… in get_byte()
144 unsigned char *bufp, in put_byte() argument
150 *(bufp + offsets[*fieldindex]) = val; in put_byte()
167 unsigned char *bufp = *buffpp; in fetch_ieee754() local
206 val = get_byte(bufp, offsets, &fieldindex); /* fetch sign byte & first part of characteristic */ in fetch_ieee754()
211 …val = get_byte(bufp, offsets, &fieldindex); /* fetch rest of characteristic and start of mantissa … in fetch_ieee754()
[all …]
/freebsd-13-stable/kerberos5/lib/libgssapi_krb5/
HDpname_to_uid.c42 char lname[MAXLOGNAME + 1], buf[1024], *bufp; in _gsskrb5_pname_to_uid() local
61 bufp = buf; in _gsskrb5_pname_to_uid()
63 bufp = malloc(buflen); in _gsskrb5_pname_to_uid()
64 if (bufp == NULL) in _gsskrb5_pname_to_uid()
66 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw); in _gsskrb5_pname_to_uid()
70 free(bufp); in _gsskrb5_pname_to_uid()
81 if (bufp != NULL && buflen > sizeof(buf)) in _gsskrb5_pname_to_uid()
82 free(bufp); in _gsskrb5_pname_to_uid()
/freebsd-13-stable/contrib/libpcap/
HDdlpisubs.c134 int count, u_char *bufp, int len) in pcap_process_pkts() argument
153 ep = bufp + len; in pcap_process_pkts()
157 while (bufp < ep) { in pcap_process_pkts()
172 p->bp = bufp; in pcap_process_pkts()
173 p->cc = ep - bufp; in pcap_process_pkts()
178 if ((long)bufp & 3) { in pcap_process_pkts()
180 memcpy(sbp, bufp, sizeof(*sbp)); in pcap_process_pkts()
183 sbp = (struct sb_hdr *)bufp; in pcap_process_pkts()
185 pk = bufp + sizeof(*sbp); in pcap_process_pkts()
186 bufp += sbp->sbh_totlen; in pcap_process_pkts()
[all …]
/freebsd-13-stable/sys/powerpc/powernv/
HDopal_dbg.c101 uint64_t lenp, bufp; in uart_opal_dbg_getc() local
106 bufp = vtophys(&c); in uart_opal_dbg_getc()
109 bufp = (uint64_t)&c; in uart_opal_dbg_getc()
112 err = opal_call(OPAL_CONSOLE_READ, termnum, lenp, bufp); in uart_opal_dbg_getc()
127 uint64_t lenp, bufp; in uart_opal_dbg_putc() local
133 bufp = vtophys(&ch); in uart_opal_dbg_putc()
136 bufp = (uint64_t)&ch; in uart_opal_dbg_putc()
140 err = opal_call(OPAL_CONSOLE_WRITE, termnum, lenp, bufp); in uart_opal_dbg_putc()
/freebsd-13-stable/contrib/sendmail/src/
HDusersmtp.c2061 char *bufp; local
2128 bufp = &optbuf[strlen(optbuf)];
2133 bufp = optbuf;
2139 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2141 bufp += strlen(bufp);
2155 SPACELEFT(optbuf, bufp) > strlen(bodytype) + 7)
2157 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2159 bufp += strlen(bufp);
2192 SPACELEFT(optbuf, bufp) > strlen(e->e_envid) + 7)
2194 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
[all …]
/freebsd-13-stable/usr.sbin/ppp/
HDvjcomp.c117 u_char *bufp; in VjUncompressTcp() local
128 bufp = MBUF_CTOP(bp); in VjUncompressTcp()
129 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
147 bufp = work + MAX_HDR; in VjUncompressTcp()
148 bp = mbuf_Read(bp, bufp, rlen); in VjUncompressTcp()
149 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
158 bp = m_prepend(bp, bufp, len, 0); in VjUncompressTcp()
HDpred.c181 u_char bufp[MAX_MTU + 2]; in Pred1Output() local
187 cp = bufp; in Pred1Output()
193 fcs = hdlc_Fcs(bufp, 2 + orglen); in Pred1Output()
196 len = compress(state, bufp + 2, wp, orglen); in Pred1Output()
204 memcpy(wp, bufp + 2, orglen); in Pred1Output()
223 u_char *bufp; in Pred1Input() local
229 pp = bufp = MBUF_CTOP(wp); in Pred1Input()
262 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp); in Pred1Input()
/freebsd-13-stable/crypto/openssl/crypto/asn1/
HDf_int.c58 unsigned char *bufp; in a2i_ASN1_INTEGER() local
92 bufp = (unsigned char *)buf; in a2i_ASN1_INTEGER()
95 if ((bufp[0] == '0') && (bufp[1] == '0')) { in a2i_ASN1_INTEGER()
96 bufp += 2; in a2i_ASN1_INTEGER()
120 m = OPENSSL_hexchar2int(bufp[k + n]); in a2i_ASN1_INTEGER()
/freebsd-13-stable/usr.sbin/crunch/crunchide/
HDexec_elf32.c92 void *bufp; member
327 layoutp[r].bufp = NULL; in ELFNAMEEND()
351 layoutp[i].bufp = shdrp; in ELFNAMEEND()
356 layoutp[i].bufp = shstrtabp; in ELFNAMEEND()
366 layoutp[i].bufp = xmalloc(size, fn, in ELFNAMEEND()
368 if (layoutp[i].bufp == NULL) in ELFNAMEEND()
370 if ((size_t)xreadatoff(fd, layoutp[i].bufp, off, size, fn) != in ELFNAMEEND()
376 symtabp = layoutp[i].bufp; in ELFNAMEEND()
378 strtabp = layoutp[i].bufp; in ELFNAMEEND()
452 buf = layoutp[i].bufp; in ELFNAMEEND()
[all …]
/freebsd-13-stable/contrib/ntp/libntp/
HDrecvbuff.c110 recvbuf_t * bufp; in create_buffers() local
139 bufp = calloc(chunk, sizeof(*bufp)); in create_buffers()
140 if (!bufp) { in create_buffers()
143 chunk, (u_long)sizeof(*bufp) * chunk); in create_buffers()
147 for (i = chunk; i; --i,++bufp) { in create_buffers()
148 LINK_SLIST(free_recv_list, bufp, link); in create_buffers()
/freebsd-13-stable/sbin/dhclient/
HDparse.c249 unsigned char *bufp = buf, *s = NULL; in parse_numeric_aggregate() local
256 if (!bufp && *max) { in parse_numeric_aggregate()
257 lbufp = bufp = malloc(*max * size / 8); in parse_numeric_aggregate()
258 if (!bufp) in parse_numeric_aggregate()
261 s = bufp; in parse_numeric_aggregate()
314 bufp = malloc(count * size / 8); in parse_numeric_aggregate()
315 if (!bufp) in parse_numeric_aggregate()
317 s = bufp + count - size / 8; in parse_numeric_aggregate()
329 return (bufp); in parse_numeric_aggregate()
/freebsd-13-stable/crypto/openssl/crypto/
HDmem_dbg.c458 char *bufp = buf; in print_leak() local
475 n = BIO_snprintf(bufp, len, "[%02d:%02d:%02d] ", in print_leak()
478 bufp[0] = '\0'; in print_leak()
481 bufp += n; in print_leak()
484 n = BIO_snprintf(bufp, len, "%5lu file=%s, line=%d, ", in print_leak()
488 bufp += n; in print_leak()
493 n = BIO_snprintf(bufp, len, "thread=%lu, ", tid.ltid); in print_leak()
496 bufp += n; in print_leak()
499 n = BIO_snprintf(bufp, len, "number=%d, address=%p\n", m->num, m->addr); in print_leak()
502 bufp += n; in print_leak()
[all …]
/freebsd-13-stable/contrib/ntp/ntpd/
HDntp_ppsdev.c220 char *bufp, *endp, *scan; in getPpsTuple() local
225 if (NULL == (bufp = readFileAt(fdDir, "path"))) in getPpsTuple()
227 if ((-1 == stat(bufp, &sb)) || !S_ISCHR(sb.st_mode)) in getPpsTuple()
230 free(bufp); in getPpsTuple()
236 if (NULL == (bufp = readFileAt(fdDir, "dev"))) in getPpsTuple()
238 dmaj = strtoul((scan = bufp), &endp, 10); in getPpsTuple()
248 free(bufp); in getPpsTuple()
/freebsd-13-stable/usr.bin/comm/
HDcomm.c215 show(FILE *fp, const char *fn, const char *offset, char **bufp, size_t *buflenp) in show() argument
220 (void)printf("%s%s\n", offset, *bufp); in show()
221 if ((n = getline(bufp, buflenp, fp)) < 0) in show()
223 if (n > 0 && (*bufp)[n - 1] == '\n') in show()
224 (*bufp)[n - 1] = '\0'; in show()
/freebsd-13-stable/lib/libsysdecode/tests/
HDsysdecode_test.c44 check_sysdecode_cap_rights(FILE *fp, char **bufp, size_t *szp, in check_sysdecode_cap_rights() argument
54 (*bufp)[*szp] = '\0'; in check_sysdecode_cap_rights()
56 buf = strdup(*bufp); in check_sysdecode_cap_rights()
68 buf = strdup(*bufp); in check_sysdecode_cap_rights()
/freebsd-13-stable/lib/libufs/
HDsblock.c128 static int use_pread(void *devfd, off_t loc, void **bufp, int size);
146 use_pread(void *devfd, off_t loc, void **bufp, int size) in use_pread() argument
151 if ((*bufp = malloc(size)) == NULL) in use_pread()
153 if (pread(fd, *bufp, size, loc) != size) in use_pread()

12345