Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/ncurses/ncurses/tinfo/
H A Dcomp_expand.c66 int bufp; in _nc_tic_expand() local
91 bufp = 0; 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()
140 buffer[bufp++] = *str; in _nc_tic_expand()
149 buffer[bufp++] = *str; in _nc_tic_expand()
184 _nc_SPRINTF(&buffer[bufp], _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
186 bufp += 2; in _nc_tic_expand()
188 _nc_SPRINTF(&buffer[bufp], _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
196 bufp += 4; in _nc_tic_expand()
[all …]
H A Dlib_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.1/lib/libc/db/hash/
H A Dhash_bigkey.c118 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
119 if (!bufp) in __big_insert()
174 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
175 if (!bufp) in __big_insert()
295 bufp = __get_buf(hashp, bp[ndx + 2], bufp, 0); in __find_bigpair()
296 if (!bufp) in __find_bigpair()
343 bufp = __get_buf(hashp, pageno, bufp, 0); in __find_last_page()
344 if (!bufp) in __find_last_page()
369 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __big_return()
377 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __big_return()
[all …]
H A Dhash_page.c308 new_bufp, bufp, bufp->addr, obucket, &ret)) in ugly_split()
319 if (!bufp) in ugly_split()
335 bufp = __get_buf(hashp, ov_addr, bufp, 0); in ugly_split()
336 if (!bufp) in ugly_split()
414 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __addel()
415 if (!bufp) in __addel()
428 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __addel()
439 bufp = __add_ovflpage(hashp, bufp); in __addel()
440 if (!bufp) in __addel()
488 tmp2 = bufp->ovfl ? bufp->ovfl->addr : 0; in __add_ovflpage()
[all …]
H A Dhash.c578 BUFHEAD *bufp, *save_bufp; in hash_access() local
626 bufp = rbufp; in hash_access()
630 rbufp = bufp; in hash_access()
704 BUFHEAD *bufp; in hash_seq() local
723 if (!(bufp = hashp->cpage)) { in hash_seq()
728 if (!bufp) in hash_seq()
730 hashp->cpage = bufp; in hash_seq()
731 bp = (u_int16_t *)bufp->page; in hash_seq()
755 assert(bufp); in hash_seq()
758 bufp = hashp->cpage = in hash_seq()
[all …]
/freebsd-13.1/sys/opencrypto/
H A Dcryptodeflate.c117 bufh = bufp = malloc(sizeof(*bufp) + (size_t)(size * i), in deflate_global()
176 bufp->next = p; in deflate_global()
177 bufp = p; in deflate_global()
202 for (bufp = bufh; bufp != NULL; ) { in deflate_global()
206 bcopy(bufp->data, *out, bufp->size); in deflate_global()
209 p = bufp; in deflate_global()
210 bufp = bufp->next; in deflate_global()
217 bufp = NULL; in deflate_global()
230 for (bufp = bufh; bufp != NULL; ) { in deflate_global()
233 p = bufp; in deflate_global()
[all …]
/freebsd-13.1/lib/libc/stdio/
H A Dopen_memstream.c50 char **bufp; member
67 buf = realloc(*ms->bufp, newsize + 1); in memstream_grow()
74 *ms->bufp = buf; in memstream_grow()
182 if (bufp == NULL || sizep == NULL) { in open_memstream()
186 *bufp = calloc(1, 1); in open_memstream()
187 if (*bufp == NULL) in open_memstream()
192 free(*bufp); in open_memstream()
193 *bufp = NULL; in open_memstream()
197 ms->bufp = bufp; in open_memstream()
207 free(*bufp); in open_memstream()
[all …]
H A Dopen_wmemstream.c50 wchar_t **bufp; member
75 *ms->bufp = buf; in wmemstream_grow()
237 open_wmemstream(wchar_t **bufp, size_t *sizep) in open_wmemstream() argument
243 if (bufp == NULL || sizep == NULL) { in open_wmemstream()
247 *bufp = calloc(1, sizeof(wchar_t)); in open_wmemstream()
248 if (*bufp == NULL) in open_wmemstream()
253 free(*bufp); in open_wmemstream()
254 *bufp = NULL; in open_wmemstream()
258 ms->bufp = bufp; in open_wmemstream()
269 free(*bufp); in open_wmemstream()
[all …]
/freebsd-13.1/sbin/ipf/libipf/
H A Dipft_pc.c178 static char *bufp = NULL; in ipcap_read() local
184 if (!bufp) in ipcap_read()
185 bufp = malloc(i); in ipcap_read()
187 bufp = realloc(bufp, i); in ipcap_read()
193 bcopy(bufp, buf, n); in ipcap_read()
205 static char *bufp = NULL; in ipcap_readip() local
225 if (!bufp) in ipcap_readip()
226 bufp = malloc(i); in ipcap_readip()
228 bufp = realloc(bufp, i); in ipcap_readip()
229 s = bufp; in ipcap_readip()
[all …]
/freebsd-13.1/kerberos5/lib/libgssapi_krb5/
H A Dpname_to_uid.c43 char lname[MAXLOGNAME + 1], buf[1024], *bufp; in _gsskrb5_pname_to_uid() local
62 bufp = buf; in _gsskrb5_pname_to_uid()
64 bufp = malloc(buflen); in _gsskrb5_pname_to_uid()
65 if (bufp == NULL) in _gsskrb5_pname_to_uid()
67 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw); in _gsskrb5_pname_to_uid()
71 free(bufp); in _gsskrb5_pname_to_uid()
82 if (bufp != NULL && buflen > sizeof(buf)) in _gsskrb5_pname_to_uid()
83 free(bufp); in _gsskrb5_pname_to_uid()
/freebsd-13.1/contrib/ntp/libparse/
H A Dieee754io.c105 unsigned char *bufp, in fmt_hex() argument
116 snprintf(hex, sizeof(hex), "%02x", bufp[i]); in fmt_hex()
127 unsigned char *bufp, in get_byte() argument
134 val = *(bufp + offset[*fieldindex]); in get_byte()
146 unsigned char *bufp, in put_byte() argument
152 *(bufp + offsets[*fieldindex]) = val; in put_byte()
169 unsigned char *bufp = *buffpp; in fetch_ieee754() local
224 mantissa_low |= (u_long)get_byte(bufp, offsets, &fieldindex) << 8; in fetch_ieee754()
225 mantissa_low |= get_byte(bufp, offsets, &fieldindex); in fetch_ieee754()
234 mantissa_high |= get_byte(bufp, offsets, &fieldindex); in fetch_ieee754()
[all …]
/freebsd-13.1/contrib/libpcap/
H A Ddlpisubs.c136 ep = bufp + len; in pcap_process_pkts()
140 while (bufp < ep) { in pcap_process_pkts()
155 p->bp = bufp; in pcap_process_pkts()
156 p->cc = ep - bufp; in pcap_process_pkts()
161 if ((long)bufp & 3) { in pcap_process_pkts()
168 pk = bufp + sizeof(*sbp); in pcap_process_pkts()
169 bufp += sbp->sbh_totlen; in pcap_process_pkts()
175 pk = bufp; in pcap_process_pkts()
176 bufp += caplen; in pcap_process_pkts()
193 p->cc = ep - bufp; in pcap_process_pkts()
[all …]
/freebsd-13.1/sys/powerpc/powernv/
H A Dopal_dbg.c103 uint64_t lenp, bufp; in uart_opal_dbg_getc() local
108 bufp = vtophys(&c); in uart_opal_dbg_getc()
111 bufp = (uint64_t)&c; in uart_opal_dbg_getc()
114 err = opal_call(OPAL_CONSOLE_READ, termnum, lenp, bufp); in uart_opal_dbg_getc()
129 uint64_t lenp, bufp; in uart_opal_dbg_putc() local
135 bufp = vtophys(&ch); in uart_opal_dbg_putc()
138 bufp = (uint64_t)&ch; in uart_opal_dbg_putc()
142 err = opal_call(OPAL_CONSOLE_WRITE, termnum, lenp, bufp); in uart_opal_dbg_putc()
/freebsd-13.1/contrib/sendmail/src/
H A Dusersmtp.c2075 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2077 bufp += strlen(bufp);
2095 bufp += strlen(bufp);
2132 bufp += strlen(bufp);
2143 bufp += strlen(bufp);
2154 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2156 bufp += strlen(bufp);
2184 bufp += strlen(bufp);
2217 *bufp == '@' ? ',' : ':', bufp, optbuf);
2404 bufp += strlen(bufp);
[all …]
/freebsd-13.1/usr.sbin/ppp/
H A Dvjcomp.c119 u_char *bufp; in VjUncompressTcp() local
130 bufp = MBUF_CTOP(bp); in VjUncompressTcp()
131 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
149 bufp = work + MAX_HDR; in VjUncompressTcp()
150 bp = mbuf_Read(bp, bufp, rlen); in VjUncompressTcp()
151 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
160 bp = m_prepend(bp, bufp, len, 0); in VjUncompressTcp()
H A Dpred.c183 u_char bufp[MAX_MTU + 2]; in Pred1Output() local
189 cp = bufp; in Pred1Output()
195 fcs = hdlc_Fcs(bufp, 2 + orglen); in Pred1Output()
198 len = compress(state, bufp + 2, wp, orglen); in Pred1Output()
206 memcpy(wp, bufp + 2, orglen); in Pred1Output()
225 u_char *bufp; in Pred1Input() local
231 pp = bufp = MBUF_CTOP(wp); in Pred1Input()
264 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp); in Pred1Input()
/freebsd-13.1/crypto/openssl/crypto/asn1/
H A Df_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.1/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c94 void *bufp; member
329 layoutp[r].bufp = NULL; in ELFNAMEEND()
353 layoutp[i].bufp = shdrp; in ELFNAMEEND()
358 layoutp[i].bufp = shstrtabp; in ELFNAMEEND()
368 layoutp[i].bufp = xmalloc(size, fn, in ELFNAMEEND()
370 if (layoutp[i].bufp == NULL) in ELFNAMEEND()
378 symtabp = layoutp[i].bufp; in ELFNAMEEND()
380 strtabp = layoutp[i].bufp; in ELFNAMEEND()
454 buf = layoutp[i].bufp; in ELFNAMEEND()
485 if (layoutp[i].bufp != NULL) in ELFNAMEEND()
[all …]
/freebsd-13.1/sbin/dhclient/
H A Dparse.c251 unsigned char *bufp = buf, *s = NULL; in parse_numeric_aggregate() local
258 if (!bufp && *max) { in parse_numeric_aggregate()
259 lbufp = bufp = malloc(*max * size / 8); in parse_numeric_aggregate()
260 if (!bufp) in parse_numeric_aggregate()
263 s = bufp; in parse_numeric_aggregate()
316 bufp = malloc(count * size / 8); in parse_numeric_aggregate()
317 if (!bufp) in parse_numeric_aggregate()
319 s = bufp + count - size / 8; in parse_numeric_aggregate()
331 return (bufp); in parse_numeric_aggregate()
/freebsd-13.1/crypto/openssl/crypto/
H A Dmem_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.1/contrib/ntp/libntp/
H A Drecvbuff.c108 register recvbuf_t *bufp; in create_buffers() local
128 bufp = calloc(chunk, sizeof(*bufp)); in create_buffers()
129 if (!bufp) { in create_buffers()
133 for (i = chunk; i; --i,++bufp) { in create_buffers()
134 LINK_SLIST(free_recv_list, bufp, link); in create_buffers()
/freebsd-13.1/usr.bin/comm/
H A Dcomm.c217 show(FILE *fp, const char *fn, const char *offset, char **bufp, size_t *buflenp) in show() argument
222 (void)printf("%s%s\n", offset, *bufp); in show()
223 if ((n = getline(bufp, buflenp, fp)) < 0) in show()
225 if (n > 0 && (*bufp)[n - 1] == '\n') in show()
226 (*bufp)[n - 1] = '\0'; in show()
/freebsd-13.1/stand/mips/beri/common/
H A Dsdcard.c191 uint32_t *bufp; in altera_sdcard_read_block() local
200 bufp = (uint32_t *)buf; in altera_sdcard_read_block()
235 bufp[i] = rxtxp[i]; in altera_sdcard_read_block()
245 uint8_t *bufp = buf; in altera_sdcard_read() local
249 if (altera_sdcard_read_block(bufp + i * in altera_sdcard_read()
/freebsd-13.1/lib/libufs/
H A Dsblock.c130 static int use_pread(void *devfd, off_t loc, void **bufp, int size);
148 use_pread(void *devfd, off_t loc, void **bufp, int size) in use_pread() argument
153 if ((*bufp = malloc(size)) == NULL) in use_pread()
155 if (pread(fd, *bufp, size, loc) != size) in use_pread()
/freebsd-13.1/bin/cp/
H A Dutils.c81 char *bufp; in copy_fallback() local
86 for (bufp = buf, wresid = rcount; ; bufp += wcount, wresid -= wcount) { in copy_fallback()
87 wcount = write(to_fd, bufp, wresid); in copy_fallback()
106 char *bufp; in copy_file() local
191 for (bufp = p, wresid = fs->st_size; ; in copy_file()
192 bufp += wcount, wresid -= (size_t)wcount) { in copy_file()
193 wcount = write(to_fd, bufp, wresid); in copy_file()

12345