/freebsd-11.0-release/lib/libc/net/ |
H A D | ip6opt.c | 81 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) argument 83 struct cmsghdr *ch = (struct cmsghdr *)bp; 112 u_char *bp = (u_char *)cmsg + cmsg->cmsg_len; local 126 if (bp == (u_char *)eh) { 127 bp += 2; 132 off = bp - (u_char *)eh; 137 inet6_insert_padopt(bp, padlen); 139 bp += padlen; 146 memcpy(bp, typep, optlen); 147 bp 180 u_int8_t *bp = (u_char *)cmsg + cmsg->cmsg_len; local [all...] |
H A D | gethostbydns.c | 147 char *bp, *ep, **ap, **hap; local 176 bp = hed->hostbuf; 184 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 185 if ((n < 0) || !(*name_ok)(bp)) { 195 n = strlen(bp) + 1; /* for the \0 */ 200 he->h_name = bp; 201 bp += n; 215 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); [all...] |
/freebsd-11.0-release/usr.bin/last/ |
H A D | last.c | 244 doentry(struct utmpx *bp) argument 249 if (bp->ut_type == BOOT_TIME || bp->ut_type == SHUTDOWN_TIME) { 255 currentout = -bp->ut_tv.tv_sec; 256 crmsg = bp->ut_type != SHUTDOWN_TIME ? 268 if (!snaptime && want(bp)) 269 printentry(bp, NULL); 273 if (bp->ut_type == OLD_TIME || bp->ut_type == NEW_TIME) { 274 if (want(bp) 318 printentry(struct utmpx *bp, struct idtab *tt) argument 383 want(struct utmpx *bp) argument [all...] |
/freebsd-11.0-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-11.0-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-11.0-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-11.0-release/sys/riscv/htif/ |
H A D | htif_block.c | 203 struct bio *bp; local 213 bp = bioq_takefirst(&sc->bio_queue); 214 if (bp == NULL) 216 } while (bp == NULL); 219 if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) { 223 req.offset = (bp->bio_pblkno * sc->disk->d_sectorsize); 224 req.size = bp->bio_bcount; 225 paddr = vtophys(bp->bio_data); 233 if (bp 267 htif_blk_strategy(struct bio *bp) argument [all...] |
/freebsd-11.0-release/contrib/tcpdump/ |
H A D | print-ah.c | 37 ah_print(netdissect_options *ndo, register const u_char *bp) argument 44 ah = (const struct ah *)bp; 56 if (bp + sizeof(struct ah) + sumlen > ep)
|
/freebsd-11.0-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-11.0-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-11.0-release/sys/geom/sched/ |
H A D | gs_delay.c | 123 struct bio *bp; local 126 bp = bioq_first(&sc->sc_bioq); 127 if (bp == NULL) 131 * If the time isn't yet ripe for this bp to be let loose, 140 if (bintime_cmp(&bp->bio_t0, &bt, >)) 145 * The bp has mellowed enough, let it through and update stats. 150 bp = bioq_takefirst(&sc->sc_bioq); 151 return (bp); 163 g_delay_start(void *data, struct bio *bp) argument 170 bp 236 g_delay_done(void *data, struct bio *bp) argument [all...] |
/freebsd-11.0-release/sbin/dmesg/ |
H A D | dmesg.c | 79 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; local 124 if ((bp = malloc(buflen + 2)) == NULL) 126 if (sysctlbyname("kern.msgbuf", bp, &buflen, NULL, 0) == -1) 128 if (buflen > 0 && bp[buflen - 1] == '\0') 148 if ((bp = malloc(cur.msg_size + 2)) == NULL) 153 if (kvm_read(kd, (long)&cur.msg_ptr[bufpos], bp, 157 &bp[cur.msg_size - bufpos], bufpos) != (ssize_t)bufpos) 167 if (buflen == 0 || bp[buflen - 1] != '\n') 168 bp[buflen++] = '\n'; 169 bp[bufle [all...] |
/freebsd-11.0-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-11.0-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-11.0-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-11.0-release/sys/geom/raid/ |
H A D | tr_raid1e.c | 428 struct bio *bp; local 470 bp = &trs->trso_bio; 471 memset(bp, 0, sizeof(*bp)); 472 bp->bio_offset = offset + start + 474 bp->bio_length = len; 475 bp->bio_data = trs->trso_buffer; 476 bp->bio_cmd = BIO_READ; 477 bp->bio_cflags = G_RAID_BIO_FLAG_SYNC; 478 bp 685 g_raid_tr_iostart_raid1e_read(struct g_raid_tr_object *tr, struct bio *bp) argument 755 g_raid_tr_iostart_raid1e_write(struct g_raid_tr_object *tr, struct bio *bp) argument 833 g_raid_tr_iostart_raid1e(struct g_raid_tr_object *tr, struct bio *bp) argument 880 g_raid_tr_iodone_raid1e(struct g_raid_tr_object *tr, struct g_raid_subdisk *sd, struct bio *bp) argument 1197 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-11.0-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-11.0-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-11.0-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-11.0-release/sys/fs/ext2fs/ |
H A D | ext2_bmap.c | 163 struct buf *bp; local 220 for (bp = NULL, ++ap; --num; ++ap) { 234 if (bp) 235 bqrelse(bp); 237 bp = getblk(vp, metalbn, bsize, 0, 0, 0); 238 if ((bp->b_flags & B_CACHE) == 0) { 243 bp->b_blkno = blkptrtodb(ump, daddr); 244 bp->b_iocmd = BIO_READ; 245 bp->b_flags &= ~B_INVAL; 246 bp [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/ec/ |
H A D | eck_prn.c | 117 int EC_KEY_print(BIO *bp, const EC_KEY *x, int off) argument 124 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 129 int ECParameters_print(BIO *bp, const EC_KEY *x) argument 136 ret = EVP_PKEY_print_params(bp, pk, 4, NULL); 144 int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off) argument 176 if (!BIO_indent(bp, off, 128)) 183 if (BIO_printf(bp, "ASN1 OID: %s", OBJ_nid2sn(nid)) <= 0) 185 if (BIO_printf(bp, "\n") <= 0) 189 if (!BIO_indent(bp, off, 128)) 191 if (BIO_printf(bp, "NIS [all...] |
/freebsd-11.0-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-11.0-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...] |