Home
last modified time | relevance | path

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

12345

/freebsd-14.2/contrib/ncurses/ncurses/tinfo/
H A Dcomp_expand.c66 int bufp; in _nc_tic_expand() local
94 bufp = 0; in _nc_tic_expand()
109 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
111 bufp += (int) strlen(buffer + bufp); in _nc_tic_expand()
142 buffer[bufp++] = *str; in _nc_tic_expand()
151 buffer[bufp++] = *str; in _nc_tic_expand()
186 _nc_SPRINTF(&buffer[bufp], _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
188 bufp += 2; in _nc_tic_expand()
190 _nc_SPRINTF(&buffer[bufp], _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
198 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-14.2/lib/libc/db/hash/
H A Dhash_bigkey.c115 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
116 if (!bufp) in __big_insert()
171 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
172 if (!bufp) in __big_insert()
292 bufp = __get_buf(hashp, bp[ndx + 2], bufp, 0); in __find_bigpair()
293 if (!bufp) in __find_bigpair()
340 bufp = __get_buf(hashp, pageno, bufp, 0); in __find_last_page()
341 if (!bufp) in __find_last_page()
366 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __big_return()
374 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __big_return()
[all …]
H A Dhash_page.c305 new_bufp, bufp, bufp->addr, obucket, &ret)) in ugly_split()
316 if (!bufp) in ugly_split()
332 bufp = __get_buf(hashp, ov_addr, bufp, 0); in ugly_split()
333 if (!bufp) in ugly_split()
411 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __addel()
412 if (!bufp) in __addel()
425 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __addel()
436 bufp = __add_ovflpage(hashp, bufp); in __addel()
437 if (!bufp) in __addel()
485 tmp2 = bufp->ovfl ? bufp->ovfl->addr : 0; in __add_ovflpage()
[all …]
H A Dhash.c575 BUFHEAD *bufp, *save_bufp; in hash_access() local
623 bufp = rbufp; in hash_access()
627 rbufp = bufp; in hash_access()
701 BUFHEAD *bufp; in hash_seq() local
720 if (!(bufp = hashp->cpage)) { in hash_seq()
725 if (!bufp) in hash_seq()
727 hashp->cpage = bufp; in hash_seq()
728 bp = (u_int16_t *)bufp->page; in hash_seq()
752 assert(bufp); in hash_seq()
755 bufp = hashp->cpage = in hash_seq()
[all …]
/freebsd-14.2/sys/opencrypto/
H A Dcryptodeflate.c115 bufh = bufp = malloc(sizeof(*bufp) + (size_t)(size * i), in deflate_global()
174 bufp->next = p; in deflate_global()
175 bufp = p; in deflate_global()
200 for (bufp = bufh; bufp != NULL; ) { in deflate_global()
204 bcopy(bufp->data, *out, bufp->size); in deflate_global()
207 p = bufp; in deflate_global()
208 bufp = bufp->next; in deflate_global()
215 bufp = NULL; in deflate_global()
228 for (bufp = bufh; bufp != NULL; ) { in deflate_global()
231 p = bufp; in deflate_global()
[all …]
/freebsd-14.2/lib/libc/stdio/
H A Dopen_memstream.c47 char **bufp; member
64 buf = realloc(*ms->bufp, newsize + 1); in memstream_grow()
71 *ms->bufp = buf; in memstream_grow()
179 if (bufp == NULL || sizep == NULL) { in open_memstream()
183 *bufp = calloc(1, 1); in open_memstream()
184 if (*bufp == NULL) in open_memstream()
189 free(*bufp); in open_memstream()
190 *bufp = NULL; in open_memstream()
194 ms->bufp = bufp; in open_memstream()
204 free(*bufp); in open_memstream()
[all …]
H A Dopen_wmemstream.c47 wchar_t **bufp; member
72 *ms->bufp = buf; in wmemstream_grow()
234 open_wmemstream(wchar_t **bufp, size_t *sizep) in open_wmemstream() argument
240 if (bufp == NULL || sizep == NULL) { in open_wmemstream()
244 *bufp = calloc(1, sizeof(wchar_t)); in open_wmemstream()
245 if (*bufp == NULL) in open_wmemstream()
250 free(*bufp); in open_wmemstream()
251 *bufp = NULL; in open_wmemstream()
255 ms->bufp = bufp; in open_wmemstream()
266 free(*bufp); in open_wmemstream()
[all …]
/freebsd-14.2/sbin/ipf/libipf/
H A Dipft_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()
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()
228 s = bufp; in ipcap_readip()
[all …]
/freebsd-14.2/kerberos5/lib/libgssapi_krb5/
H A Dpname_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-14.2/contrib/ntp/libparse/
H A Dieee754io.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()
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
222 mantissa_low |= (u_long)get_byte(bufp, offsets, &fieldindex) << 8; in fetch_ieee754()
223 mantissa_low |= get_byte(bufp, offsets, &fieldindex); in fetch_ieee754()
232 mantissa_high |= get_byte(bufp, offsets, &fieldindex); in fetch_ieee754()
[all …]
/freebsd-14.2/sys/powerpc/powernv/
H A Dopal_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-14.2/contrib/libpcap/
H A Ddlpisubs.c153 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()
185 pk = bufp + sizeof(*sbp); in pcap_process_pkts()
186 bufp += sbp->sbh_totlen; in pcap_process_pkts()
192 pk = bufp; in pcap_process_pkts()
193 bufp += caplen; in pcap_process_pkts()
210 p->cc = ep - bufp; in pcap_process_pkts()
[all …]
/freebsd-14.2/contrib/sendmail/src/
H A Dusersmtp.c2139 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2141 bufp += strlen(bufp);
2159 bufp += strlen(bufp);
2196 bufp += strlen(bufp);
2207 bufp += strlen(bufp);
2218 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2220 bufp += strlen(bufp);
2248 bufp += strlen(bufp);
2295 *bufp == '@' ? ',' : ':', bufp, optbuf);
2494 bufp += strlen(bufp);
[all …]
/freebsd-14.2/usr.sbin/ppp/
H A Dvjcomp.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()
H A Dpred.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-14.2/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-14.2/usr.sbin/crunch/crunchide/
H A Dexec_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()
376 symtabp = layoutp[i].bufp; in ELFNAMEEND()
378 strtabp = layoutp[i].bufp; in ELFNAMEEND()
452 buf = layoutp[i].bufp; in ELFNAMEEND()
483 if (layoutp[i].bufp != NULL) in ELFNAMEEND()
[all …]
/freebsd-14.2/contrib/ntp/libntp/
H A Drecvbuff.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-14.2/sbin/dhclient/
H A Dparse.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-14.2/contrib/ntp/ntpd/
H A Dntp_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-14.2/usr.bin/comm/
H A Dcomm.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-14.2/lib/libsysdecode/tests/
H A Dsysdecode_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-14.2/crypto/openssl/fuzz/
H A Dserver.c523 const uint8_t *bufp; in FuzzerTestOneInput() local
551 bufp = kRSAPrivateKeyDER; in FuzzerTestOneInput()
552 privkey = d2i_RSAPrivateKey(NULL, &bufp, sizeof(kRSAPrivateKeyDER)); in FuzzerTestOneInput()
561 bufp = kCertificateDER; in FuzzerTestOneInput()
562 cert = d2i_X509(NULL, &bufp, sizeof(kCertificateDER)); in FuzzerTestOneInput()
/freebsd-14.2/crypto/openssl/test/
H A Dx509aux.c45 unsigned char *bufp; in test_certs() local
71 if ((buf = bufp = OPENSSL_malloc(len)) == NULL) { in test_certs()
76 enclen = i2d(cert, &bufp); in test_certs()
83 enclen = (long) (bufp - buf); in test_certs()

12345