/openbsd/sys/net/ |
H A D | bridgestp.c | 1052 if (bp->bp_sync || !bp->bp_synced || bp->bp_reroot) { in bstp_update_roles() 1069 if (bp->bp_proposed && !bp->bp_agree) { in bstp_update_roles() 1076 if (bp->bp_sync || !bp->bp_synced || bp->bp_reroot) { in bstp_update_roles() 1134 !bp->bp_synced) || (bp->bp_agreed && !bp->bp_synced) || in bstp_update_roles() 1136 (bp->bp_sync && bp->bp_synced)) { in bstp_update_roles() 1169 bp->bp_agreed = bp->bp_protover; in bstp_update_roles() 1221 if (bp->bp_rcvdtc || bp->bp_rcvdtcn || bp->bp_rcvdtca || in bstp_update_tc() 1259 if (bp->bp_synced && !bp->bp_agreed) { in bstp_update_info() 1265 bp->bp_port_pv = bp->bp_desg_pv; in bstp_update_info() 1269 bp->bp_port_htime = bp->bp_desg_htime; in bstp_update_info() [all …]
|
/openbsd/games/hunt/huntd/ |
H A D | shots.c | 113 for (bp = blist; bp != NULL; bp = next) { in moveshots() 168 for (bp = blist; bp != NULL; bp = next) { in moveshots() 267 zapshot(bp->b_next, bp); in move_normal_shot() 274 zapshot(bp->b_next, bp); in move_normal_shot() 596 bp->b_over = Maze[bp->b_y][bp->b_x]; in save_bullet() 629 Maze[bp->b_y][bp->b_x] = bp->b_type; in save_bullet() 1013 i, bp->b_size, bp->b_owner, bp->b_score, TRUE, SPACE); in move_slime() 1073 for (bp = blist; bp != NULL; bp = bp->b_next) { in zapshot() 1094 for (bp = blist; bp != NULL; bp = bp->b_next) in explshot() 1152 for (bp = Bullets; bp != NULL; bp = bp->b_next) in is_bullet() [all …]
|
/openbsd/sys/kern/ |
H A D | vfs_bio.c | 318 &bp->b_vp->v_bufs_tree, bp); in bufbackoff() 441 VOP_STRATEGY(bp->b_vp, bp); in bio_doread() 672 VOP_STRATEGY(bp->b_vp, bp); in bread_cluster() 750 VOP_STRATEGY(bp->b_vp, bp); in bwrite() 888 if (bp->b_vp && bp->b_vp->v_type == VREG) in brelse() 974 if (bp != NULL && ISSET(bp->b_flags, B_INVAL)) in incore_locked() 1159 bp->b_blkno = bp->b_lblkno = blkno; in buf_get() 1265 return (bp->b_error ? bp->b_error : EIO); in biowait() 1298 bufq_done(bp->b_bq, bp); in biodone() 1313 (*bp->b_iodone)(bp); in biodone() [all …]
|
H A D | vfs_biomem.c | 66 buf_map(bp); in buf_acquire() 146 if (bp->b_data) { in buf_release() 176 data = bp->b_data; in buf_dealloc_mem() 177 bp->b_data = NULL; in buf_dealloc_mem() 186 if (bp->b_pobj) in buf_dealloc_mem() 192 bp->b_data = data; in buf_dealloc_mem() 287 bp->b_pobj = &bp->b_uobj; in buf_alloc_pages() 288 bp->b_poffs = 0; in buf_alloc_pages() 305 bp->b_poffs = 0; in buf_free_pages() 344 r = uvm_pagerealloc_multi(bp->b_pobj, bp->b_poffs, in buf_realloc_pages() [all …]
|
H A D | kern_physio.c | 69 struct buf *bp; in physio() local 83 bp->b_dev = dev; in physio() 84 bp->b_error = 0; in physio() 85 bp->b_proc = p; in physio() 128 (*minphys)(bp); in physio() 145 bp->b_data = map; in physio() 152 (*strategy)(bp); in physio() 184 error = (bp->b_error ? bp->b_error : EIO); in physio() 191 done = bp->b_bcount - bp->b_resid; in physio() 214 if (bp->b_vp) in physio() [all …]
|
/openbsd/sys/arch/luna88k/stand/boot/ |
H A D | bmd.c | 182 bp->bc_esc = &bp->bc_escseq[0]; in bmd_escape() 197 if (bp->bc_row > bp->bc_ymin) { in bmd_escape_0() 221 bp->bc_row = bp->bc_ymin; in bmd_escape_0() 234 bp->bc_esc = &bp->bc_escseq[0]; in bmd_escape_0() 250 bp->bc_esc = &bp->bc_escseq[0]; in bmd_escape_1() 262 bp->bc_row = row + bp->bc_ymin; in bmd_escape_1() 265 bp->bc_esc = &bp->bc_escseq[0]; in bmd_escape_1() 307 bp->bc_row = bp->bc_ymin; in bmdinit() 319 bp->bc_col = bp->bc_xmin; in bmdinit() 321 bp->bc_esc = &bp->bc_escseq[0]; in bmdinit() [all …]
|
/openbsd/usr.bin/mandoc/ |
H A D | eqn_term.c | 45 eqn_box(p, bp); in term_eqn() 58 if ((bp->type == EQN_LIST && bp->expectargs > 1) || in eqn_box() 59 (bp->type == EQN_PILE && (bp->prev || bp->next)) || in eqn_box() 60 (bp->parent != NULL && (bp->parent->pos == EQNPOS_SQRT || in eqn_box() 62 ((bp->top != NULL || bp->bottom != NULL) && in eqn_box() 64 bp->parent->pos != EQNPOS_OVER && bp->next != NULL) || in eqn_box() 66 (bp->type == EQN_SUBEXPR && bp->pos != EQNPOS_SQRT && in eqn_box() 81 term_word(p, bp->left != NULL ? bp->left : "("); in eqn_box() 96 if ((cp = strchr(bp->text, '\0')) > bp->text && in eqn_box() 168 term_word(p, bp->right != NULL ? bp->right : ")"); in eqn_box() [all …]
|
H A D | eqn_html.c | 42 if (NULL == bp) in eqn_box() 123 if (bp->top || bp->bottom) { in eqn_box() 125 if (bp->top && NULL == bp->bottom) in eqn_box() 127 else if (bp->top && bp->bottom) in eqn_box() 139 } else if (bp->type == EQN_LIST && bp->expectargs > 1 && in eqn_box() 140 bp->parent && bp->parent->type == EQN_PILE) { in eqn_box() 149 cp = bp->text; in eqn_box() 199 if (NULL != bp->left || NULL != bp->right) in eqn_box() 201 "open", bp->left == NULL ? "" : bp->left, in eqn_box() 202 "close", bp->right == NULL ? "" : bp->right); in eqn_box() [all …]
|
/openbsd/usr.bin/mg/ |
H A D | buffer.c | 72 for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { in togglereadonlyall() 382 for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { in makelist() 451 for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { in listbuf_goto_buffer_helper() 518 for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { in anycb() 560 bp = bp->b_bufp; in bfind() 592 bp->b_altb = bp->b_bufp = NULL; in bnew() 615 bzero(&bp->b_fi, sizeof(bp->b_fi)); in bnew() 620 bp->b_dotline = bp->b_markline = 1; in bnew() 623 bp->b_nlchr = bp->b_nlseq; in bnew() 872 bp->b_dotp = bfirstlp(bp); in popbuftop() [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/gdbserver/ |
H A D | mem-break.c | 67 bp->pc = where; in set_breakpoint_at() 82 (*the_target->write_memory) (bp->pc, bp->old_data, in delete_breakpoint() 84 free (bp); in delete_breakpoint() 93 (*the_target->write_memory) (bp->pc, bp->old_data, in delete_breakpoint() 95 free (bp); in delete_breakpoint() 110 return bp; in find_breakpoint_at() 111 bp = bp->next; in find_breakpoint_at() 166 (*the_target->write_memory) (bp->pc, bp->old_data, in uninsert_breakpoint() 201 (*bp->handler) (bp->pc); in check_breakpoints() 218 for (; bp != NULL; bp = bp->next) in check_mem_read() [all …]
|
/openbsd/lib/libc/db/mpool/ |
H A D | mpool.c | 108 BKT *bp; in mpool_new() local 142 BKT *bp; in mpool_delete() local 159 free(bp); in mpool_delete() 173 BKT *bp; in mpool_get() local 253 (mp->pgin)(mp->pgcookie, bp->pgno, bp->page); in mpool_get() 265 BKT *bp; in mpool_put() local 291 BKT *bp; in mpool_close() local 311 BKT *bp; in mpool_sync() local 331 BKT *bp; in mpool_bkt() local 373 bp->page = (char *)bp + sizeof(BKT); in mpool_bkt() [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-dvmrp.c | 89 bp += 8; in dvmrp_print() 129 bp -= 4; in dvmrp_print() 130 target_level = (bp[0] << 24) | (bp[1] << 16) | in dvmrp_print() 131 (bp[2] << 8) | bp[3]; in dvmrp_print() 132 bp += 4; in dvmrp_print() 168 mask = (u_int32_t)0xff << 24 | bp[0] << 16 | bp[1] << 8 | bp[2]; in print_report() 170 if (bp[0]) in print_report() 178 bp += 3; in print_report() 218 genid = (bp[0] << 24) | (bp[1] << 16) | (bp[2] << 8) | bp[3]; in print_probe() 219 bp += 4; in print_probe() [all …]
|
H A D | print-bootp.c | 84 if (bp->bp_htype != 1 || bp->bp_hlen != 6) in bootp_print() 90 if (bp->bp_xid) in bootp_print() 118 if (bp->bp_htype == 1 && bp->bp_hlen == 6) { in bootp_print() 157 length -= sizeof(*bp) - sizeof(bp->bp_vend); in bootp_print() 279 tag = *bp++; in rfc1048_print() 293 len = *bp++; in rfc1048_print() 300 c = *bp++; in rfc1048_print() 318 c = *bp++; in rfc1048_print() 347 bp += size; in rfc1048_print() 413 ++bp; in rfc1048_print() [all …]
|
H A D | print-ofp.c | 128 bp += sizeof(*he); in ofp_print_hello() 157 bp += sizeof(bmp); in ofp_print_hello() 170 bp += helen; in ofp_print_hello() 419 bp += ahlen; in ofp_print_packetout() 482 bp += padsize; in ofp_print_flowmod() 490 bp += omlen; in ofp_print_flowmod() 495 bp += padsize; in ofp_print_flowmod() 506 bp += sizeof(*i); in ofp_print_flowmod() 517 bp += ilen; in ofp_print_flowmod() 755 bp += datalen; in oxm_print_data() [all …]
|
/openbsd/lib/libc/db/hash/ |
H A D | hash_buf.c | 113 if (!bp || (bp->addr != addr)) in __get_buf() 131 if (!bp) { in __get_buf() 163 bp = LRU; in newbuf() 207 if ((bp->addr != 0) || (bp->flags & BUF_BUCKET)) { in newbuf() 216 bp->addr, (int)IS_BUCKET(bp->flags), 0)) in newbuf() 274 bp->addr, (bp->ovfl ? bp->ovfl->addr : 0), 0); in newbuf() 285 (bp ? bp->addr : 0)); in newbuf() 326 for (bp = LRU; bp != &hashp->bufhead;) { in __buf_free() 328 if (bp->addr || IS_BUCKET(bp->flags)) { in __buf_free() 331 bp->addr, IS_BUCKET(bp->flags), 0)) in __buf_free() [all …]
|
H A D | hash_bigkey.c | 204 if (bp[2] == FULL_KEY || bp[2] == FULL_KEY_DATA) in __big_delete() 212 if (bp[2] == FULL_KEY_DATA && FREESPACE(bp)) in __big_delete() 214 pageno = bp[bp[0] - 1]; in __big_delete() 362 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __big_return() 370 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in __big_return() 387 off = bp[bp[0]]; in __big_return() 398 off = bp[bp[0]]; in __big_return() 409 bp[bp[0] - 1], bufp, 0); in __big_return() 465 __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in collect_data() 475 xbp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); in collect_data() [all …]
|
/openbsd/usr.bin/make/ |
H A D | buf.c | 86 if ((bp)->endPtr - (bp)->buffer == 1) \ 109 size_t occupied = bp->inPtr - bp->buffer; in BufExpand() 110 size_t size = bp->endPtr - bp->buffer; in BufExpand() 121 bp->buffer = erealloc(bp->buffer, size); in BufExpand() 122 bp->inPtr = bp->buffer +occupied; in BufExpand() 123 bp->endPtr = bp->buffer + size; in BufExpand() 129 assert(bp->endPtr >= bp->inPtr); in Buf_AddChars() 143 n = vsnprintf(bp->inPtr, bp->endPtr - bp->inPtr, fmt, va); in Buf_printf() 145 if (n+1 > bp->endPtr - bp->inPtr) { in Buf_printf() 149 (void)vsnprintf(bp->inPtr, bp->endPtr - bp->inPtr, fmt, vb); in Buf_printf() [all …]
|
/openbsd/usr.sbin/makefs/ffs/ |
H A D | buf.c | 106 free(bp); in brelse() 122 rv = write(bp->b_fs->fd, bp->b_data, bytes); in bwrite() 123 brelse(bp, 0); in bwrite() 150 (long long)bp->b_lblkno, (long long)bp->b_blkno, in bcleanup() 151 bp->b_bcount, bp->b_bufsize); in bcleanup() 165 bp = NULL; in getblk() 177 bp = ecalloc(1, sizeof(*bp)); in getblk() 179 bp->b_blkno = bp->b_lblkno = blkno; in getblk() 185 if (bp->b_data == NULL || bp->b_bcount > bp->b_bufsize) { in getblk() 188 bp->b_data = n; in getblk() [all …]
|
/openbsd/sys/nfs/ |
H A D | nfs_bio.c | 167 if (!bp) in nfs_bioread() 203 if (!bp) in nfs_bioread() 358 bp->b_dirtyoff = min(on, bp->b_dirtyoff); in nfs_write() 364 if (bp->b_validend == 0 || bp->b_validend < bp->b_dirtyoff || in nfs_write() 365 bp->b_validoff > bp->b_dirtyend) { in nfs_write() 366 bp->b_validoff = bp->b_dirtyoff; in nfs_write() 367 bp->b_validend = bp->b_dirtyend; in nfs_write() 369 bp->b_validoff = min(bp->b_validoff, bp->b_dirtyoff); in nfs_write() 370 bp->b_validend = max(bp->b_validend, bp->b_dirtyend); in nfs_write() 601 bp->b_validend = bp->b_bcount; in nfs_doio() [all …]
|
/openbsd/lib/libc/time/ |
H A D | strptime.c | 116 bp++; in _strptime() 159 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) in _strptime() 165 if (!(bp = _strptime(bp, "%Y-%m-%d", tm, 0))) in _strptime() 171 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) in _strptime() 183 if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0))) in _strptime() 261 bp++; in _strptime() 387 bp++; in _strptime() 454 bp++; in _strptime() 477 --bp; in _strptime() 495 if (!isdigit(bp[0]) || !isdigit(bp[1])) in _strptime() [all …]
|
/openbsd/usr.bin/yacc/ |
H A D | symtab.c | 70 bucket *bp; in make_bucket() local 76 bp->link = 0; in make_bucket() 77 bp->next = 0; in make_bucket() 81 bp->tag = 0; in make_bucket() 84 bp->prec = 0; in make_bucket() 88 return (bp); in make_bucket() 98 bp = *bpp; in lookup() 100 while (bp) { in lookup() 104 bp = *bpp; in lookup() 111 return (bp); in lookup() [all …]
|
/openbsd/lib/libcrypto/ocsp/ |
H A D | ocsp_prn.c | 83 i2a_ASN1_INTEGER(bp, a->serialNumber); in ocsp_certid_print() 84 BIO_printf(bp, "\n"); in ocsp_certid_print() 166 GENERAL_NAME_print(bp, inf->requestorName); in OCSP_REQUEST_print() 173 ocsp_certid_print(bp, cid, 8); in OCSP_REQUEST_print() 188 if (PEM_write_bio_X509(bp, in OCSP_REQUEST_print() 262 if (ocsp_certid_print(bp, cid, 4) <= 0) in OCSP_RESPONSE_print() 265 if (BIO_printf(bp, " Cert Status: %s", in OCSP_RESPONSE_print() 272 if (!ASN1_GENERALIZEDTIME_print(bp, in OCSP_RESPONSE_print() 277 if (BIO_printf(bp, in OCSP_RESPONSE_print() 293 if (BIO_write(bp, "\n", 1) <= 0) in OCSP_RESPONSE_print() [all …]
|
/openbsd/regress/usr.bin/m4/ |
H A D | esyscmd.m4 | 19 bp(a00) 20 bp(b00) 21 bp(c00) 22 bp(d00) 23 bp(e00) 24 bp(f00) 25 bp(g00) 26 bp(h00) 27 bp(i00) 28 bp(j00) [all …]
|
/openbsd/usr.sbin/dhcpd/ |
H A D | hash.c | 106 if (!bp) { in add_hash() 110 bp->name = name; in add_hash() 111 bp->value = pointer; in add_hash() 113 bp->len = len; in add_hash() 134 for (bp = table->buckets[hashno]; bp; bp = bp->next) { in delete_hash_entry() 135 if ((!bp->len && in delete_hash_entry() 137 (bp->len == len && !memcmp(bp->name, name, len))) { in delete_hash_entry() 142 free(bp); in delete_hash_entry() 163 for (bp = table->buckets[hashno]; bp; bp = bp->next) in hash_lookup() 164 if (len == bp->len && !memcmp(bp->name, name, len)) in hash_lookup() [all …]
|
/openbsd/lib/libcrypto/asn1/ |
H A D | t_x509.c | 108 X509_print(BIO *bp, X509 *x) in X509_print() argument 191 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex() 205 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex() 214 if (BIO_write(bp, "\n", 1) <= 0) in X509_print_ex() 225 if (BIO_puts(bp, "\n") <= 0) in X509_print_ex() 231 ERR_print_errors(bp); in X509_print_ex() 259 X509_ocspid_print(BIO *bp, X509 *x) in X509_ocspid_print() argument 300 BIO_printf(bp, "\n"); in X509_ocspid_print() 329 if (BIO_write(bp, "\n", 1) != 1) in X509_signature_dump() 357 else if (BIO_puts(bp, "\n") <= 0) in X509_signature_print() [all …]
|