/freebsd-10.3-release/lib/libc/net/ |
H A D | gethostbydns.c | 151 char *bp, *ep, **ap, **hap; local 180 bp = hed->hostbuf; 188 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 189 if ((n < 0) || !(*name_ok)(bp)) { 199 n = strlen(bp) + 1; /* for the \0 */ 204 he->h_name = bp; 205 bp += n; 219 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); [all...] |
/freebsd-10.3-release/usr.sbin/ppp/ |
H A D | fsm.c | 193 struct mbuf *bp; local 214 bp = m_get(plen, mtype); 215 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); 217 memcpy(MBUF_CTOP(bp) + sizeof(struct fsmheader), ptr, count); 218 log_DumpBp(LogDEBUG, "fsm_Output", bp); 219 link_PushPacket(fp->link, bp, fp->bundle, LINK_QUEUES(fp->link) - 1, 466 FsmRecvConfigReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 474 bp = m_pullup(bp); 475 plen = m_length(bp); 609 FsmRecvConfigAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 672 FsmRecvConfigNak(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 738 FsmRecvTermReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 774 FsmRecvTermAck(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 802 FsmRecvConfigRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 870 FsmRecvCodeRej(struct fsm *fp __unused, struct fsmheader *lhp __unused, struct mbuf *bp) argument 877 FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 949 FsmRecvEchoReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 977 FsmRecvEchoRep(struct fsm *fp, struct fsmheader *lhp __unused, struct mbuf *bp) argument 986 FsmRecvDiscReq(struct fsm *fp __unused, struct fsmheader *lhp __unused, struct mbuf *bp) argument 993 FsmRecvIdent(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1015 FsmRecvTimeRemain(struct fsm *fp __unused, struct fsmheader *lhp __unused, struct mbuf *bp) argument 1022 FsmRecvResetReq(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1037 FsmRecvResetAck(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) argument 1044 fsm_Input(struct fsm *fp, struct mbuf *bp) argument [all...] |
/freebsd-10.3-release/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 53 gv_raid5_start(struct gv_plex *p, struct bio *bp, caddr_t addr, off_t boff, argument 63 wp->bio = bp; 68 if (bp->bio_pflags & GV_BIO_REBUILD) 69 err = gv_raid5_rebuild(p, wp, bp, addr, boff, bcount); 70 else if (bp->bio_pflags & GV_BIO_CHECK) 71 err = gv_raid5_check(p, wp, bp, addr, boff, bcount); 73 err = gv_raid5_request(p, wp, bp, addr, boff, bcount, &delay); 85 G_VINUM_LOGREQ(0, bp, "raid5 plex request failed."); 103 if (wp->bio != bp) 123 if (bp 144 gv_stripe_active(struct gv_plex *p, struct bio *bp) argument 173 gv_raid5_check(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument 251 gv_raid5_rebuild(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount) argument 339 gv_raid5_request(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) argument 640 gv_raid5_clone_bio(struct bio *bp, struct gv_sd *s, struct gv_raid5_packet *wp, caddr_t addr, int use_wp) argument [all...] |
/freebsd-10.3-release/sys/fs/cd9660/ |
H A D | cd9660_lookup.c | 113 struct buf *bp; /* a buffer of directory entries */ local 116 int entryoffsetinblock; /* offset of ep in bp's buffer */ 141 bp = NULL; 183 (error = cd9660_blkatoff(vdp, (off_t)i_offset, NULL, &bp))) 198 if (bp != NULL) 199 brelse(bp); 201 cd9660_blkatoff(vdp, (off_t)i_offset, NULL, &bp)) != 0) 209 ((char *)bp->b_data + entryoffsetinblock); 265 ino = dbtob(bp->b_blkno) 282 ino = dbtob(bp 443 struct buf *bp; local [all...] |
/freebsd-10.3-release/sys/fs/nandfs/ |
H A D | nandfs_subr.c | 66 void nandfs_bdflush(struct bufobj *bo, struct buf *bp); 95 nandfs_bdflush(bo, bp) 97 struct buf *bp; 105 vp = bp->b_vp; 109 if (NANDFS_IS_INDIRECT(bp)) 424 struct buf *bp; local 445 error = nandfs_bread(dat_node, ldatblknr, NOCRED, 0, &bp); 449 brelse(bp); 455 entry = ((struct nandfs_dat_entry *) bp->b_data) + entry_in_block; 457 entry, bp 484 struct buf *bp; local 511 struct buf *bp; local 702 struct buf *bp; local 791 struct buf *bp; local 920 _nandfs_dirty_buf(struct buf *bp, int dirty_meta, int force) argument 977 nandfs_dirty_buf(struct buf *bp, int force) argument 984 nandfs_dirty_buf_meta(struct buf *bp, int force) argument 991 nandfs_undirty_buf_fsdev(struct nandfs_device *nffsdev, struct buf *bp) argument 1009 nandfs_undirty_buf(struct buf *bp) argument 1019 nandfs_vblk_set(struct buf *bp, nandfs_daddr_t blocknr) argument 1027 nandfs_vblk_get(struct buf *bp) argument 1035 nandfs_buf_set(struct buf *bp, uint32_t bits) argument 1045 nandfs_buf_clear(struct buf *bp, uint32_t bits) argument 1055 nandfs_buf_check(struct buf *bp, uint32_t bits) argument 1068 struct buf *bp; local [all...] |
/freebsd-10.3-release/contrib/nvi/common/ |
H A D | put.c | 49 CHAR_T *bp, *t; local 126 GET_SPACE_RETW(sp, bp, blen, tp->len + len + 1); 127 t = bp; 131 MEMCPY(bp, p, clen); 172 if (db_set(sp, lno, bp, t - bp)) 190 len = t - bp; 191 ADD_SPACE_RETW(sp, bp, blen, ltp->len + clen); 192 t = bp + len; 201 * Now: bp point [all...] |
/freebsd-10.3-release/lib/libc/gen/ |
H A D | pw_scan.c | 71 __pw_scan(char *bp, struct passwd *pw, int flags) argument 82 if (!(pw->pw_name = strsep(&bp, ":"))) /* login */ 88 if (!(pw->pw_passwd = strsep(&bp, ":"))) /* passwd */ 93 if (!(p = strsep(&bp, ":"))) /* uid */ 128 if (!(p = strsep(&bp, ":"))) /* gid */ 159 if (!(pw->pw_class = strsep(&bp, ":"))) /* class */ 164 if (!(p = strsep(&bp, ":"))) /* change */ 170 if (!(p = strsep(&bp, ":"))) /* expire */ 176 if (!(pw->pw_gecos = strsep(&bp, ":"))) /* gecos */ 181 if (!(pw->pw_dir = strsep(&bp, " [all...] |
/freebsd-10.3-release/contrib/less/ |
H A D | ch.c | 149 register struct buf *bp; local 166 bp = bufnode_buf(ch_bufhead); 167 if (ch_block == bp->block && ch_offset < bp->datasize) 168 return bp->data[ch_offset]; 179 bp = bufnode_buf(bn); 180 if (bp->block == ch_block) 182 if (ch_offset >= bp->datasize) 217 bp = bufnode_buf(bn); 219 bp 422 register struct buf *bp; local 460 register struct buf *bp; local 547 register struct buf *bp; local 765 register struct buf *bp; local [all...] |
/freebsd-10.3-release/usr.bin/tset/ |
H A D | wrterm.c | 52 wrtermcap(char *bp) argument 59 if ((t = strchr(bp, ':')) == NULL) 65 while ((p = strsep(&bp, "|")) != NULL)
|
/freebsd-10.3-release/usr.bin/cap_mkdb/ |
H A D | cap_mkdb.c | 163 char *bp, *p, *t; local 167 for (reccnt = 0, bplen = 0; (st = cgetnext(&bp, ifiles)) > 0;) { 173 len = strlen(bp); 181 if ((p = strchr(bp, ':')) == NULL) { 182 warnx("no name field: %.*s", (int)MIN(len, 20), bp); 193 warnx("record not tc expanded: %.*s", (int)(p - bp), 194 bp); 199 memmove(&((u_char *)(data.data))[1], bp, len + 1); 203 key.data = bp; 204 key.size = p - bp; [all...] |
/freebsd-10.3-release/sys/geom/raid/ |
H A D | tr_raid1e.c | 436 struct bio *bp; local 478 bp = &trs->trso_bio; 479 memset(bp, 0, sizeof(*bp)); 480 bp->bio_offset = offset + start + 482 bp->bio_length = len; 483 bp->bio_data = trs->trso_buffer; 484 bp->bio_cmd = BIO_READ; 485 bp->bio_cflags = G_RAID_BIO_FLAG_SYNC; 486 bp 693 g_raid_tr_iostart_raid1e_read(struct g_raid_tr_object *tr, struct bio *bp) argument 763 g_raid_tr_iostart_raid1e_write(struct g_raid_tr_object *tr, struct bio *bp) argument 841 g_raid_tr_iostart_raid1e(struct g_raid_tr_object *tr, struct bio *bp) argument 888 g_raid_tr_iodone_raid1e(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd, struct bio *bp) argument 1205 struct bio *bp; local [all...] |
H A D | tr_concat.c | 208 g_raid_tr_iostart_concat(struct g_raid_tr_object *tr, struct bio *bp) argument 221 g_raid_iodone(bp, EIO); 224 if (bp->bio_cmd == BIO_FLUSH) { 225 g_raid_tr_flush_common(tr, bp); 229 offset = bp->bio_offset; 230 remain = bp->bio_length; 231 if ((bp->bio_flags & BIO_UNMAPPED) != 0) 234 addr = bp->bio_data; 242 ("Request starts after volume end (%ju)", bp->bio_offset)); 247 cbp = g_clone_bio(bp); 330 g_raid_tr_iodone_concat(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd,struct bio *bp) argument [all...] |
/freebsd-10.3-release/contrib/nvi/ex/ |
H A D | ex_argv.c | 73 MEMCPY(exp->args[exp->argsoff]->bp, cmd, cmdlen); 74 exp->args[exp->argsoff]->bp[cmdlen] = '\0'; 94 CHAR_T *p, *t, *bp; local 96 GET_SPACE_RETW(sp, bp, blen, 512); 100 if (argv_fexp(sp, excp, cmd, cmdlen, bp, &len, &bp, &blen, is_bang)) { 101 FREE_SPACEW(sp, bp, blen); 107 for (p = bp, t = bp + len; p < t; ++p) 115 (void)argv_exp0(sp, excp, bp, le 133 CHAR_T *bp, *p; local 366 CHAR_T *bp; local 673 CHAR_T *bp, *p; local 821 CHAR_T *bp, *p; local 884 CHAR_T *bp, *p; local [all...] |
H A D | ex_map.c | 61 input = cmdp->argv[0]->bp; 79 cmdp->argv[1]->bp, cmdp->argv[1]->len, stype, 84 cmdp->argv[1]->bp, cmdp->argv[1]->len)); 99 cmdp->argv[1]->bp, cmdp->argv[1]->len, stype, SEQ_USERDEF)); 111 if (seq_delete(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len, 114 cmdp->argv[0]->bp, "135|\"%s\" isn't currently mapped");
|
/freebsd-10.3-release/contrib/ntp/libntp/ |
H A D | dofptoa.c | 26 char *bp; local 108 bp = buf; 110 *bp++ = '-'; 114 *bp++ = '.'; 115 *bp++ = (char)(*cp++ + '0'); 117 *bp = '\0';
|
/freebsd-10.3-release/contrib/diff/lib/ |
H A D | cmpbuf.c | 86 char *bp = buf; local 92 size_t bytes_to_read = MIN (buflim - bp, readlim); 93 ssize_t nread = read (fd, bp, bytes_to_read); 117 bp += nread; 119 while (bp < buflim); 121 return bp - buf;
|
/freebsd-10.3-release/usr.bin/hexdump/ |
H A D | display.c | 63 u_char *bp; local 68 while ((bp = get())) 69 for (fs = fshead, savebp = bp, saveaddress = address; fs; 70 fs = fs->nextfs, bp = savebp, address = saveaddress) 76 bp += pr->bcnt, pr = pr->nextpr) { 84 print(pr, bp); 112 print(PR *pr, u_char *bp) argument 132 conv_c(pr, bp, eaddress ? eaddress - address : 136 (void)printf(pr->fmt, *bp); 141 bcopy(bp, [all...] |
/freebsd-10.3-release/sys/geom/ |
H A D | geom_slice.c | 141 g_slice_finish_hot(struct bio *bp) argument 150 KASSERT(bp->bio_to != NULL, 151 ("NULL bio_to in g_slice_finish_hot(%p)", bp)); 152 KASSERT(bp->bio_from != NULL, 153 ("NULL bio_from in g_slice_finish_hot(%p)", bp)); 154 gp = bp->bio_to->geom; 157 KASSERT(cp != NULL, ("NULL consumer in g_slice_finish_hot(%p)", bp)); 158 idx = bp->bio_to->index; 161 bp2 = g_clone_bio(bp); 163 g_io_deliver(bp, ENOME 175 g_slice_done(struct bio *bp) argument 197 g_slice_start(struct bio *bp) argument [all...] |
/freebsd-10.3-release/sys/geom/uzip/ |
H A D | g_uzip.c | 90 static void g_uzip_done(struct bio *bp); 127 g_uzip_cached(struct g_geom *gp, struct bio *bp) argument 134 ofs = bp->bio_offset + bp->bio_completed; 140 if (bp->bio_resid < usz) 141 usz = bp->bio_resid; 142 memcpy(bp->bio_data + bp->bio_completed, sc->last_buf + blkofs, 148 __func__, gp->name, bp, (intmax_t)ofs, (intmax_t)usz)); 150 bp 164 g_uzip_request(struct g_geom *gp, struct bio *bp) argument 227 g_uzip_done(struct bio *bp) argument 324 g_uzip_start(struct bio *bp) argument [all...] |
/freebsd-10.3-release/crypto/openssl/crypto/lhash/ |
H A D | lh_stats.c | 143 BIO *bp; local 145 bp = BIO_new(BIO_s_file()); 146 if (bp == NULL) 148 BIO_set_fp(bp, fp, BIO_NOCLOSE); 149 lh_stats_bio(lh, bp); 150 BIO_free(bp); 156 BIO *bp; local 158 bp = BIO_new(BIO_s_file()); 159 if (bp == NULL) 161 BIO_set_fp(bp, f 169 BIO *bp; local [all...] |
/freebsd-10.3-release/contrib/tcpdump/ |
H A D | print-msnlb.c | 52 msnlb_print(netdissect_options *ndo, const u_char *bp, u_int length) argument 56 hb = (struct msnlb_heartbeat_pkt *)bp;
|
/freebsd-10.3-release/lib/libc/db/hash/ |
H A D | hash_page.c | 98 u_int16_t *bp, n, off; local 100 bp = (u_int16_t *)p; 103 n = bp[0]; 105 off = OFFSET(bp) - key->size; 107 bp[++n] = off; 112 bp[++n] = off; 115 bp[0] = n; 116 bp[n + 1] = off - ((n + 3) * sizeof(u_int16_t)); 117 bp[n + 2] = off; 128 u_int16_t *bp, newof local 400 u_int16_t *bp, *sop; local 522 u_int16_t *bp; local 921 short *bp, oaddr; local [all...] |
/freebsd-10.3-release/sys/cam/scsi/ |
H A D | scsi_pt.c | 192 ptstrategy(struct bio *bp) argument 197 periph = (struct cam_periph *)bp->bio_dev->si_drv1; 198 bp->bio_resid = bp->bio_bcount; 200 biofinish(bp, NULL, ENXIO); 211 biofinish(bp, NULL, ENXIO); 218 bioq_insert_tail(&softc->bio_queue, bp); 426 struct bio *bp; local 435 bp = bioq_first(&softc->bio_queue); 436 if (bp 490 struct bio *bp; local [all...] |
/freebsd-10.3-release/bin/rcp/ |
H A D | util.c | 130 allocbuf(BUF *bp, int fd, int blksize) argument 142 if (bp->cnt >= size) 143 return (bp); 144 if ((bp->buf = realloc(bp->buf, size)) == NULL) { 145 bp->cnt = 0; 149 bp->cnt = size; 150 return (bp);
|
/freebsd-10.3-release/sys/geom/zero/ |
H A D | g_zero.c | 76 g_zero_start(struct bio *bp) argument 80 switch (bp->bio_cmd) { 82 if (g_zero_clear && (bp->bio_flags & BIO_UNMAPPED) == 0) 83 memset(bp->bio_data, g_zero_byte, bp->bio_length); 87 bp->bio_completed = bp->bio_length; 95 g_io_deliver(bp, error);
|