/freebsd-9.3-release/lib/libc/net/ |
H A D | getnetbyht.c | 86 char *p, *bp, *ep; local 103 bp = ned->netbuf; 105 ne->n_name = bp; 111 if (ep - bp < len) { 115 strlcpy(bp, p, ep - bp); 116 bp += len; 138 if (ep - bp < len) 140 strlcpy(bp, cp, ep - bp); [all...] |
H A D | getnetbynis.c | 55 char *p, *bp, *ep; local 88 bp = ned->netbuf; 91 if (ep - bp < len) { 95 strlcpy(bp, result, ep - bp); 96 ne->n_name = bp; 97 bp += len; 120 if (ep - bp < len) 122 strlcpy(bp, cp, ep - bp); [all...] |
/freebsd-9.3-release/sbin/fsck_ffs/ |
H A D | ea.c | 61 struct bufarea *bp; 76 bp = getdatablk(dp->di_extb[0], blksiz, BT_EXTATTR); 77 cp = (u_char *)bp->b_un.b_buf;
|
H A D | fsutil.c | 161 struct bufarea *bp; local 176 bp = (struct bufarea *)Malloc(sizeof(struct bufarea)); 178 if (bp == NULL || bufp == NULL) { 183 bp->b_un.b_buf = bufp; 184 TAILQ_INSERT_HEAD(&bufhead, bp, b_list); 185 initbarea(bp, BT_UNKNOWN); 254 struct bufarea *bp; local 256 TAILQ_FOREACH(bp, &bufhead, b_list) 257 if (bp->b_bno == fsbtodb(&sblock, blkno)) 259 TAILQ_FOREACH_REVERSE(bp, 300 getblk(struct bufarea *bp, ufs2_daddr_t blk, long size) argument 326 flush(int fd, struct bufarea *bp) argument 369 struct bufarea *bp, *nbp; local [all...] |
H A D | fsck.h | 155 #define IBLK(bp, i) \ 157 (bp)->b_un.b_indir1[i] : (bp)->b_un.b_indir2[i]) 159 #define IBLK_SET(bp, i, val) do { \ 161 (bp)->b_un.b_indir1[i] = (val); \ 163 (bp)->b_un.b_indir2[i] = (val); \ 205 #define dirty(bp) do { \ 209 (bp)->b_dirty = 1; \ 211 #define initbarea(bp, type) do { \ 212 (bp) [all...] |
/freebsd-9.3-release/sys/fs/cd9660/ |
H A D | cd9660_node.c | 114 cd9660_defattr(isodir, inop, bp, ftype) 117 struct buf *bp; 138 if (!bp 143 bp = bp2; 145 if (bp) { 146 ap = (struct iso_extended_attributes *)bp->b_data; 179 cd9660_deftstamp(isodir,inop,bp,ftype) 182 struct buf *bp; 190 if (!bp 195 bp [all...] |
/freebsd-9.3-release/sys/ufs/ffs/ |
H A D | ffs_inode.c | 82 struct buf *bp; local 112 (int) fs->fs_bsize, 0, 0, 0, NOCRED, flags, &bp); 115 brelse(bp); 142 softdep_update_inodeblock(ip, bp, waitfor); 146 *((struct ufs1_dinode *)bp->b_data + 149 *((struct ufs2_dinode *)bp->b_data + 152 error = bwrite(bp); 154 bawrite(bp); 157 if (bp->b_bufsize == fs->fs_bsize) 158 bp 186 struct buf *bp; local 583 struct buf *bp; local [all...] |
/freebsd-9.3-release/usr.bin/ctags/ |
H A D | fortran.c | 142 char *bp; local 144 for (len = 0, bp = lbp; *cp && (*cp &~ ' ') == (*bp++ &~ ' ');
|
/freebsd-9.3-release/crypto/openssl/bugs/ |
H A D | sgiccbug.c | 41 register unsigned long t1, t2, *ap, *bp, *rp; local 48 bp = b; 53 t2 = *(bp++);
|
/freebsd-9.3-release/sys/gnu/fs/xfs/ |
H A D | xfs_ialloc_btree.c | 72 xfs_buf_t *bp; /* buffer for block */ local 111 bp = cur->bc_bufs[level]; 112 block = XFS_BUF_TO_INOBT_BLOCK(bp); 114 if ((error = xfs_btree_check_sblock(cur, block, level, bp))) 145 xfs_inobt_log_keys(cur, bp, ptr, numrecs - 1); 146 xfs_inobt_log_ptrs(cur, bp, ptr, numrecs - 1); 158 xfs_inobt_log_recs(cur, bp, ptr, numrecs - 1); 174 xfs_inobt_log_block(cur->bc_tp, bp, XFS_BB_NUMRECS); 201 xfs_trans_binval(cur->bc_tp, bp); 382 rbp = bp; 538 xfs_buf_t *bp; /* buffer for block */ local 747 xfs_inobt_log_block( xfs_trans_t *tp, xfs_buf_t *bp, int fields) argument 771 xfs_inobt_log_keys( xfs_btree_cur_t *cur, xfs_buf_t *bp, int kfirst, int klast) argument 793 xfs_inobt_log_ptrs( xfs_btree_cur_t *cur, xfs_buf_t *bp, int pfirst, int plast) argument 815 xfs_inobt_log_recs( xfs_btree_cur_t *cur, xfs_buf_t *bp, int rfirst, int rlast) argument 870 xfs_buf_t *bp; /* buffer pointer for btree block */ local 1192 xfs_buf_t *bp; /* buffer containing block */ local 1635 xfs_buf_t *bp; /* buffer for block */ local 1726 xfs_buf_t *bp; /* buffer containing btree block */ local 1793 xfs_buf_t *bp; /* buffer containing btree block */ local 1836 xfs_buf_t *bp; /* buffer containing btree block */ local 2043 xfs_buf_t *bp; /* buffer containing btree block */ local [all...] |
H A D | xfs_attr.c | 831 xfs_dabuf_t *bp; local 839 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, 843 ASSERT(bp != NULL); 849 retval = xfs_attr_leaf_lookup_int(bp, args); 851 xfs_da_brelse(args->trans, bp); 855 xfs_da_brelse(args->trans, bp); 869 retval = xfs_attr_leaf_add(bp, args); 870 xfs_da_buf_done(bp); 966 &bp, XFS_ATTR_FORK); 969 ASSERT(bp ! 1028 xfs_dabuf_t *bp; local 1091 xfs_dabuf_t *bp; local 1122 xfs_dabuf_t *bp; local 1425 xfs_dabuf_t *bp; local 1747 xfs_dabuf_t *bp; local 1898 xfs_buf_t *bp; local 1955 xfs_buf_t *bp; local 2085 xfs_buf_t *bp; local [all...] |
H A D | xfs_fsops.c | 127 xfs_buf_t *bp; local 148 XFS_FSS_TO_BB(mp, 1), 0, &bp); 151 ASSERT(bp); 152 xfs_buf_relse(bp); 189 bp = xfs_buf_get(mp->m_ddev_targp, 192 agf = XFS_BUF_TO_AGF(bp); 214 error = xfs_bwrite(mp, bp); 221 bp = xfs_buf_get(mp->m_ddev_targp, 224 agi = XFS_BUF_TO_AGI(bp); 238 error = xfs_bwrite(mp, bp); [all...] |
H A D | xfs_log_recover.c | 91 xfs_buf_t *bp) 93 xfs_buf_free(bp); 105 xfs_buf_t *bp) 115 ASSERT(BBTOB(nbblks) <= XFS_BUF_SIZE(bp)); 116 ASSERT(bp); 118 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); 119 XFS_BUF_READ(bp); 120 XFS_BUF_BUSY(bp); 121 XFS_BUF_SET_COUNT(bp, BBTOB(nbblks)); 122 XFS_BUF_SET_TARGET(bp, lo 90 xlog_put_bp( xfs_buf_t *bp) argument 101 xlog_bread( xlog_t *log, xfs_daddr_t blk_no, int nbblks, xfs_buf_t *bp) argument 137 xlog_bwrite( xlog_t *log, xfs_daddr_t blk_no, int nbblks, xfs_buf_t *bp) argument 168 xlog_align( xlog_t *log, xfs_daddr_t blk_no, int nbblks, xfs_buf_t *bp) argument 270 xlog_recover_iodone( struct xfs_buf *bp) argument 299 xlog_find_cycle_start( xlog_t *log, xfs_buf_t *bp, xfs_daddr_t first_blk, xfs_daddr_t *last_blk, uint cycle) argument 352 xfs_buf_t *bp; local 413 xfs_buf_t *bp; local 521 xfs_buf_t *bp; local 791 xfs_buf_t *bp; local 988 xfs_buf_t *bp; local 1113 xfs_buf_t *bp; local 1786 xlog_recover_do_inode_buffer( xfs_mount_t *mp, xlog_recover_item_t *item, xfs_buf_t *bp, xfs_buf_log_format_t *buf_f) argument 1906 xlog_recover_do_reg_buffer( xfs_mount_t *mp, xlog_recover_item_t *item, xfs_buf_t *bp, xfs_buf_log_format_t *buf_f) argument 2101 xlog_recover_do_dquot_buffer( xfs_mount_t *mp, xlog_t *log, xlog_recover_item_t *item, xfs_buf_t *bp, xfs_buf_log_format_t *buf_f) argument 2165 xfs_buf_t *bp; local 2284 xfs_buf_t *bp; local 2587 xfs_buf_t *bp; local 3826 xfs_buf_t *bp; local [all...] |
/freebsd-9.3-release/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 162 char *bp, *host, *src, *suser, *thost, *tuser; local 196 ret = asprintf(&bp, 203 ret = asprintf(&bp, 212 susystem(bp, userid); 213 free(bp); 216 if (asprintf(&bp, "%s -t %s", cmd, targ) == -1) 220 if (do_cmd(host, tuser, bp, &remin, &remout) < 0) 225 free(bp); 238 char *bp, *host, *src, *suser; local 244 ret = asprintf(&bp, "exe 290 BUF *bp; local 432 BUF *bp; local [all...] |
/freebsd-9.3-release/contrib/libreadline/ |
H A D | histfile.c | 309 char *buffer, *filename, *bp, *bp1; /* bp1 == bp+1 */ local 372 LINES lines. bp1 is set funny initially. But since bp[1] can't 373 be a comment character (since it's off the end) and *bp can't be 375 for (bp1 = bp = buffer + chars_read - 1; lines && bp > buffer; bp--) 377 if (*bp == '\n' && HIST_TIMESTAMP_START(bp1) == 0) 379 bp1 = bp; 387 for ( ; bp > buffe [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/pem/ |
H A D | pem_all.c | 172 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb, argument 176 pktmp = PEM_read_bio_PrivateKey(bp, NULL, cb, u); 193 int PEM_write_bio_RSAPrivateKey(BIO *bp, RSA *x, const EVP_CIPHER *enc, argument 204 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u); 255 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, argument 259 pktmp = PEM_read_bio_PrivateKey(bp, NULL, cb, u); 265 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc, argument 276 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u); 333 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, argument 337 pktmp = PEM_read_bio_PrivateKey(bp, NUL 424 PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, pem_password_cb *cb, void *u) argument [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dsl_scan.c | 383 static void dsl_scan_visitbp(blkptr_t *bp, 392 dsl_free(dsl_pool_t *dp, uint64_t txg, const blkptr_t *bp) argument 394 zio_free(dp->dp_spa, txg, bp); 476 dsl_scan_zil_block(zilog_t *zilog, blkptr_t *bp, void *arg, uint64_t claim_txg) argument 484 if (BP_IS_HOLE(bp) || bp->blk_birth <= scn->scn_phys.scn_cur_min_txg) 493 if (claim_txg == 0 && bp->blk_birth >= spa_first_txg(dp->dp_spa)) 497 ZB_ZIL_OBJECT, ZB_ZIL_LEVEL, bp->blk_cksum.zc_word[ZIL_ZC_SEQ]); 499 VERIFY(0 == scan_funcs[scn->scn_phys.scn_func](dp, bp, &zb)); 513 blkptr_t *bp local 561 dsl_scan_prefetch(dsl_scan_t *scn, arc_buf_t *buf, blkptr_t *bp, uint64_t objset, uint64_t object, uint64_t blkid) argument 621 dsl_scan_recurse(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_t *zb, dmu_tx_t *tx, arc_buf_t **bufp) argument 752 dsl_scan_visitbp(blkptr_t *bp, const zbookmark_t *zb, dnode_phys_t *dnp, arc_buf_t *pbuf, dsl_dataset_t *ds, dsl_scan_t *scn, dmu_objset_type_t ostype, dmu_tx_t *tx) argument 813 dsl_scan_visit_rootbp(dsl_scan_t *scn, dsl_dataset_t *ds, blkptr_t *bp, dmu_tx_t *tx) argument 1242 blkptr_t bp; local 1362 dsl_scan_free_block_cb(void *arg, const blkptr_t *bp, dmu_tx_t *tx) argument 1589 count_block(zfs_all_blkstats_t *zab, const blkptr_t *bp) argument 1655 dsl_scan_scrub_cb(dsl_pool_t *dp, const blkptr_t *bp, const zbookmark_t *zb) argument [all...] |
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-domain.c | 150 ns_nprint(register const u_char *cp, register const u_char *bp) argument 157 int data_size = snapend - bp; 178 cp = bp + (((i << 8) | *cp) & 0x3fff); 322 ns_qprint(register const u_char *cp, register const u_char *bp, int is_mdns) argument 353 cp = ns_nprint(np, bp); 359 ns_rprint(register const u_char *cp, register const u_char *bp, int is_mdns) argument 367 if ((cp = ns_nprint(cp, bp)) == NULL) 432 if (ns_nprint(cp, bp) == NULL) 440 if ((cp = ns_nprint(cp, bp)) == NULL) 443 if ((cp = ns_nprint(cp, bp)) 581 ns_print(register const u_char *bp, u_int length, int is_mdns) argument [all...] |
H A D | print-atalk.c | 96 llap_print(register const u_char *bp, u_int length) argument 108 lp = (const struct LAP *)bp; 109 bp += sizeof(*lp); 119 sdp = (const struct atShortDDP *)bp; 124 bp += ddpSSize; 127 ddp_print(bp, length, sdp->type, 0, lp->src, sdp->srcSkt); 135 dp = (const struct atDDP *)bp; 142 bp += ddpSize; 145 ddp_print(bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); 150 klap_print(bp, lengt 168 atalk_print(register const u_char *bp, u_int length) argument 194 aarp_print(register const u_char *bp, u_int length) argument 231 ddp_print(register const u_char *bp, register u_int length, register int t, register u_short snet, register u_char snode, u_char skt) argument [all...] |
/freebsd-9.3-release/contrib/nvi/ex/ |
H A D | ex_bang.c | 72 if ((exp->lastbcomm = strdup(ap->bp)) == NULL) { 89 vs_update(sp, "!", ap->bp); 91 (void)ex_printf(sp, "!%s\n", ap->bp); 116 cmdp, ap->bp, msg, !F_ISSET(sp, SC_EX | SC_SCR_EXWROTE)); 155 &cmdp->addr1, &cmdp->addr2, &rm, ap->bp, ftype);
|
/freebsd-9.3-release/sys/dev/flash/ |
H A D | at45d.c | 88 static void at45d_strategy(struct bio *bp); 287 at45d_strategy(struct bio *bp) argument 291 sc = (struct at45d_softc *)bp->bio_disk->d_drv1; 293 bioq_disksort(&sc->bio_queue, bp); 303 struct bio *bp; local 323 bp = bioq_takefirst(&sc->bio_queue); 324 if (bp == NULL) 326 } while (bp == NULL); 330 buf = bp->bio_data; 331 len = resid = bp [all...] |
H A D | mx25l.c | 95 static void mx25l_strategy(struct bio *bp); 425 mx25l_strategy(struct bio *bp) argument 429 sc = (struct mx25l_softc *)bp->bio_disk->d_drv1; 431 bioq_disksort(&sc->sc_bio_queue, bp); 440 struct bio *bp; local 447 bp = bioq_first(&sc->sc_bio_queue); 448 if (bp == NULL) 450 } while (bp == NULL); 451 bioq_remove(&sc->sc_bio_queue, bp); 454 switch (bp [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | kern_shutdown.c | 284 isbufbusy(struct buf *bp) argument 286 if (((bp->b_flags & (B_INVAL | B_PERSISTENT)) == 0 && 287 BUF_ISLOCKED(bp)) || 288 ((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI)) 332 register struct buf *bp; local 350 for (bp = &buf[nbuf]; --bp >= buf; ) 351 if (isbufbusy(bp)) 399 for (bp = &buf[nbuf]; --bp > [all...] |
/freebsd-9.3-release/sys/mips/cavium/ |
H A D | octeon_ebt3000_cf.c | 216 static void cf_start (struct bio *bp) argument 225 if(bp->bio_cmd & BIO_GETATTR) { 226 if (g_handleattr_int(bp, "GEOM::fwsectors", drive_param.sec_track)) 228 if (g_handleattr_int(bp, "GEOM::fwheads", drive_param.heads)) 230 g_io_deliver(bp, ENOIOCTL); 234 if ((bp->bio_cmd & (BIO_READ | BIO_WRITE))) { 236 if (bp->bio_cmd & BIO_READ) { 237 error = cf_cmd_read(bp->bio_length / drive_param.sector_size, 238 bp->bio_offset / drive_param.sector_size, bp [all...] |
/freebsd-9.3-release/sys/geom/stripe/ |
H A D | g_stripe.c | 280 g_stripe_done(struct bio *bp) argument 285 pbp = bp->bio_parent; 288 pbp->bio_error = bp->bio_error; 289 pbp->bio_completed += bp->bio_completed; 290 if (bp->bio_cmd == BIO_READ && bp->bio_caller1 != NULL) { 291 g_stripe_copy(sc, bp->bio_data, bp->bio_caller1, bp->bio_offset, 292 bp 306 g_stripe_start_fast(struct bio *bp, u_int no, off_t offset, off_t length) argument 434 g_stripe_start_economic(struct bio *bp, u_int no, off_t offset, off_t length) argument 521 g_stripe_flush(struct g_stripe_softc *sc, struct bio *bp) argument 557 g_stripe_start(struct bio *bp) argument [all...] |