| /freebsd-12.1/contrib/ncurses/ncurses/tinfo/ |
| H A D | comp_expand.c | 60 int bufp; in _nc_tic_expand() local 80 bufp = 0; in _nc_tic_expand() 95 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand() 97 bufp += (int) strlen(buffer + bufp); in _nc_tic_expand() 129 buffer[bufp++] = *str; in _nc_tic_expand() 136 buffer[bufp++] = *str; in _nc_tic_expand() 183 _nc_SPRINTF(&buffer[bufp], _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand() 185 bufp += 2; in _nc_tic_expand() 187 _nc_SPRINTF(&buffer[bufp], _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand() 189 bufp += 4; in _nc_tic_expand() [all …]
|
| H A D | lib_termcap.c | 97 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() 192 LAST_BUF = bufp; in NCURSES_SP_NAME() 211 if (bufp && _nc_termcap[0]) in NCURSES_SP_NAME() 212 strncpy(bufp, _nc_termcap, 1024); in NCURSES_SP_NAME() 220 tgetent(char *bufp, const char *name) in tgetent() argument 222 return NCURSES_SP_NAME(tgetent) (CURRENT_SCREEN, bufp, name); in tgetent()
|
| /freebsd-12.1/lib/libc/db/hash/ |
| H A D | hash_bigkey.c | 118 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 D | hash_page.c | 308 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 …]
|
| /freebsd-12.1/sys/opencrypto/ |
| H A D | cryptodeflate.c | 105 bufh = bufp = malloc(sizeof(*bufp) + (size_t)(size * i), 174 bufp->next = p; 175 bufp = p; 207 for (bufp = bufh; bufp != NULL; ) { 211 bcopy(bufp->data, *out, bufp->size); 214 p = bufp; 215 bufp = bufp->next; 222 bufp = NULL; 235 for (bufp = bufh; bufp != NULL; ) { 238 p = bufp; [all …]
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | somread.c | 131 for (bufp = buf; bufp < endbufp; ++bufp) in som_symtab_read() 141 switch (bufp->symbol_type) in som_symtab_read() 154 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() 167 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() 174 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() 192 switch (bufp->symbol_type) in som_symtab_read() 202 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() 232 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() 243 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() 250 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read() [all …]
|
| /freebsd-12.1/contrib/libgnuregex/ |
| H A D | regex.c | 38 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument 39 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) 40 # define re_match(bufp, string, size, pos, regs) \ argument 41 __re_match (bufp, string, size, pos, regs) 42 # define re_search(bufp, string, size, startpos, range, regs) \ argument 43 __re_search (bufp, string, size, startpos, range, regs) 44 # define re_compile_pattern(pattern, length, bufp) \ argument 45 __re_compile_pattern (pattern, length, bufp) 47 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument 48 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) [all …]
|
| /freebsd-12.1/lib/libc/stdio/ |
| H A D | open_memstream.c | 50 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 D | open_wmemstream.c | 50 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-12.1/contrib/ntp/libparse/ |
| H A D | ieee754io.c | 105 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-12.1/contrib/ipfilter/lib/ |
| H A D | ipft_pc.c | 181 static char *bufp = NULL; local 187 if (!bufp) 188 bufp = malloc(i); 190 bufp = realloc(bufp, i); 196 bcopy(bufp, buf, n); 210 static char *bufp = NULL; local 230 if (!bufp) 231 bufp = malloc(i); 233 bufp = realloc(bufp, i); 234 s = bufp; [all …]
|
| /freebsd-12.1/kerberos5/lib/libgssapi_krb5/ |
| H A D | pname_to_uid.c | 43 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-12.1/contrib/libpcap/ |
| H A D | dlpisubs.c | 136 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-12.1/contrib/gcclibs/libiberty/ |
| H A D | regex.c | 84 # define re_compile_fastmap(bufp) __re_compile_fastmap (bufp) argument 1147 bufp->used, bufp->allocated); in PREFIX() 1149 if (bufp->fastmap_accurate && bufp->fastmap) in PREFIX() 1941 while ((unsigned long) (b - bufp->buffer + (n)) > bufp->allocated) \ 2402 bufp->not_bol = bufp->not_eol = 0; in PREFIX() 2407 bufp->used = 0; in PREFIX() 2410 bufp->re_nsub = 0; in PREFIX() 4168 bufp->used = b - bufp->buffer; in PREFIX() 4557 register UCHAR_T *pend = (UCHAR_T*) (bufp->buffer + bufp->used); in PREFIX() 5778 pend = (CHAR_T*)(bufp->buffer + bufp->used); in wcs_re_match_2_internal() [all …]
|
| /freebsd-12.1/contrib/binutils/libiberty/ |
| H A D | regex.c | 84 # define re_compile_fastmap(bufp) __re_compile_fastmap (bufp) argument 1147 bufp->used, bufp->allocated); in PREFIX() 1149 if (bufp->fastmap_accurate && bufp->fastmap) in PREFIX() 1941 while ((unsigned long) (b - bufp->buffer + (n)) > bufp->allocated) \ 2402 bufp->not_bol = bufp->not_eol = 0; in PREFIX() 2407 bufp->used = 0; in PREFIX() 2410 bufp->re_nsub = 0; in PREFIX() 4168 bufp->used = b - bufp->buffer; in PREFIX() 4557 register UCHAR_T *pend = (UCHAR_T*) (bufp->buffer + bufp->used); in PREFIX() 5778 pend = (CHAR_T*)(bufp->buffer + bufp->used); in wcs_re_match_2_internal() [all …]
|
| /freebsd-12.1/contrib/sendmail/src/ |
| H A D | usersmtp.c | 2055 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp), 2057 bufp += strlen(bufp); 2094 bufp += strlen(bufp); 2105 bufp += strlen(bufp); 2116 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp), 2118 bufp += strlen(bufp); 2141 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp), 2146 bufp += strlen(bufp); 2179 *bufp == '@' ? ',' : ':', bufp, optbuf); 2366 bufp += strlen(bufp); [all …]
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | vjcomp.c | 119 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 D | pred.c | 183 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-12.1/contrib/ntp/libntp/ |
| H A D | recvbuff.c | 81 register recvbuf_t *bufp; in create_buffers() local 88 bufp = eallocarray(abuf, sizeof(*bufp)); in create_buffers() 98 bufp = emalloc_zero(sizeof(*bufp)); in create_buffers() 100 LINK_SLIST(free_recv_list, bufp, link); in create_buffers() 101 bufp++; in create_buffers()
|
| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | bfd.c | 473 char *bufp; in _bfd_default_error_handler() local 485 bufp = buf; in _bfd_default_error_handler() 513 bufp += len; in _bfd_default_error_handler() 522 *bufp++ = '*'; in _bfd_default_error_handler() 523 *bufp++ = '*'; in _bfd_default_error_handler() 524 *bufp = '\0'; in _bfd_default_error_handler() 572 q = bufp; in _bfd_default_error_handler() 573 bufp += len; in _bfd_default_error_handler() 582 q = bufp; in _bfd_default_error_handler() 583 bufp += extra; in _bfd_default_error_handler() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/asn1/ |
| H A D | f_int.c | 58 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-12.1/usr.sbin/crunch/crunchide/ |
| H A D | exec_elf32.c | 94 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-12.1/crypto/openssl/crypto/ |
| H A D | mem_dbg.c | 458 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-12.1/sbin/dhclient/ |
| H A D | parse.c | 251 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-12.1/contrib/binutils/gas/ |
| H A D | input-scrub.c | 301 input_scrub_next_buffer (char **bufp) in input_scrub_next_buffer() argument 323 *bufp = input_scrub_pop (next_saved_file); in input_scrub_next_buffer() 329 *bufp = from_sb.ptr + sb_index; in input_scrub_next_buffer() 334 *bufp = buffer_start + BEFORE_SIZE; in input_scrub_next_buffer() 364 *bufp = buffer_start + BEFORE_SIZE; in input_scrub_next_buffer() 372 *bufp = input_scrub_pop (next_saved_file); in input_scrub_next_buffer() 402 *bufp = input_scrub_pop (next_saved_file); /* Pop state */ in input_scrub_next_buffer()
|