/illumos-gate/usr/src/ucblib/libcurses/ |
H A D | fullname.c | 30 fullname(char *bp, char *def) argument 36 while (*bp && *bp != ':') { 38 while (*bp && *bp != ':' && *bp != '|') { 39 *cp++ = *bp++; /* copy name over */ 42 if (*bp == '|') { 43 bp++; /* skip over '|' if that is case */
|
H A D | longname.c | 29 longname(char *bp, char *def) argument 33 while (*bp && *bp != ':' && *bp != '|') 34 bp++; 35 if (*bp == '|') { 36 bp++; 38 while (*bp && *bp != ':' && *bp ! [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_buf.c | 49 dt_buf_create(dtrace_hdl_t *dtp, dt_buf_t *bp, const char *name, size_t len) argument 54 bp->dbu_buf = bp->dbu_ptr = dt_zalloc(dtp, len); 55 bp->dbu_len = len; 57 if (bp->dbu_buf == NULL) 58 bp->dbu_err = dtrace_errno(dtp); 60 bp->dbu_err = 0; 62 bp->dbu_resizes = 0; 63 bp->dbu_name = name; 67 dt_buf_destroy(dtrace_hdl_t *dtp, dt_buf_t *bp) argument 76 dt_buf_reset(dtrace_hdl_t *dtp, dt_buf_t *bp) argument 85 dt_buf_write(dtrace_hdl_t *dtp, dt_buf_t *bp, const void *buf, size_t len, size_t align) argument 139 dt_buf_offset(const dt_buf_t *bp, size_t align) argument 146 dt_buf_len(const dt_buf_t *bp) argument 152 dt_buf_error(const dt_buf_t *bp) argument 158 dt_buf_ptr(const dt_buf_t *bp) argument 164 dt_buf_claim(dtrace_hdl_t *dtp, dt_buf_t *bp) argument [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_buf.c | 39 fmd_buf_t *bp = fmd_alloc(sizeof (fmd_buf_t), FMD_SLEEP); local 41 bp->buf_name = fmd_strdup(name, FMD_SLEEP); 42 bp->buf_next = NULL; 43 bp->buf_data = fmd_zalloc(size, FMD_SLEEP); 44 bp->buf_size = size; 45 bp->buf_flags = FMD_BUF_DIRTY; 47 return (bp); 51 fmd_buf_free(fmd_buf_t *bp) argument 53 fmd_strfree(bp->buf_name); 54 fmd_free(bp 70 fmd_buf_t *bp, *np; local 89 fmd_buf_t *bp; local 101 fmd_buf_t *bp; local 120 fmd_buf_t *bp = fmd_buf_alloc(name, size); local 133 fmd_buf_t *bp; local 147 fmd_buf_t *bp, **pp = &bhp->bh_hash[h]; local [all...] |
H A D | fmd_builtin.c | 44 const fmd_builtin_t *bp; local 46 for (bp = _fmd_builtins; bp->bltin_name != NULL; bp++) { 47 if (strcmp(mp->mod_name, bp->bltin_name) == 0) 51 if (bp == NULL) 54 if (bp->bltin_init == NULL) 57 mp->mod_data = (void *)bp; 64 if (fmd_module_enter(mp, bp->bltin_init) != 0 && mp->mod_info != NULL) 79 fmd_builtin_t *bp local 106 const fmd_builtin_t *bp; local [all...] |
/illumos-gate/usr/src/ucblib/libtermcap/ |
H A D | termcap.c | 56 static char *tskip(char *bp); 62 * Get an entry for terminal name in buffer bp, 68 tgetent(char *bp, char *name) argument 77 tbuf = bp; 94 tbuf = bp; 96 (void) strcpy(bp, cp); 109 cp = bp; 121 if (cp > bp && cp[-1] == '\\') { 127 if (cp >= bp+BUFSIZ) { 236 tskip(char *bp) argument 264 char *bp = tbuf; local 297 char *bp = tbuf; local 324 char *bp = tbuf; local 392 tngetsize(char *bp) argument 424 appendsmalldec(char *bp, int val) argument [all...] |
/illumos-gate/usr/src/lib/libwrap/ |
H A D | percent_m.c | 27 char *bp = obuf; local 30 while (*bp = *cp) 32 strcpy(bp, strerror(errno)); 33 bp += strlen(bp); 36 bp++, cp++;
|
/illumos-gate/usr/src/cmd/vgrind/ |
H A D | vgrindefs.c | 37 static char *tskip(char *bp); 44 * Get an entry for terminal name in buffer bp, 49 tgetent(char *bp, char *name, char *file) argument 58 tbuf = bp; 65 cp = bp; 77 if (cp > bp && cp[-1] == '\\'){ 83 if (cp >= bp+BUFSIZ) { 187 tskip(char *bp) argument 190 while (*bp && *bp ! 209 char *bp = tbuf; local 241 char *bp = tbuf; local 267 char *bp = tbuf; local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | sigsetjmp.c | 44 register o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 59 bp->sjs_flags = 0; 60 bp->sjs_sp = *((int *)sp+14); 61 bp->sjs_pc = *((int *)sp+15) + 0x8; 62 bp->sjs_stack = uc.uc_stack; 66 bp->sjs_flags |= JB_SAVEMASK; 67 memcpy(bp->sjs_sigmask, &(uc.uc_sigmask), 3 * sizeof (int)); 69 memset(bp->sjs_sigmask, 0, 3 * sizeof (int)); 81 o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 85 sp->sjs_flags = bp 104 register o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 136 o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/ |
H A D | spa.h | 77 * overhead, three DVAs per bp, plus one more bit in case we do anything 159 * fill count number of non-zero blocks under this bp 160 * checksum[4] 256-bit checksum of the data this bp describes 163 #define SPA_DVAS_PER_BP 3 /* Number of DVAs in a bp */ 176 * Macros to get and set fields in a bp or DVA. 198 #define BP_GET_LSIZE(bp) \ 199 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1) 200 #define BP_SET_LSIZE(bp, x) \ 201 BF64_SET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x) 203 #define BP_GET_PSIZE(bp) \ [all...] |
/illumos-gate/usr/src/cmd/lvm/rpc.metamedd/ |
H A D | med_hash.c | 78 (*cp)->bp = (Bucket *) Malloc(sizeof (*(*cp)->bp) * hsz); 79 if ((*cp)->bp == NULL) { 80 (void) fprintf(stderr, "Malloc(Bucket cp->bp)"); 86 (*cp)->bp[i].nent = 0; 87 (*cp)->bp[i].nalloc = 0; 88 (*cp)->bp[i].itempp = NULL; 120 Bucket *bp; local 129 bp = &cp->bp[(*c 173 Bucket *bp; local 252 Bucket *bp; local 284 Bucket *bp; local 338 Bucket *bp; local 373 Bucket *bp; local [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | eqn_term.c | 51 eqn_box(struct termp *p, const struct eqn_box *bp) argument 55 if (bp->type == EQN_LIST || 56 (bp->type == EQN_PILE && (bp->prev || bp->next)) || 57 (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) { 58 if (bp->parent->type == EQN_SUBEXPR && bp->prev != NULL) 60 term_word(p, bp [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | setjmp.c | 43 register o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 58 bp->sjs_flags = 0; 59 bp->sjs_sp = *((int *)sp+14); 60 bp->sjs_pc = *((int *)sp+15) + 0x8; 61 bp->sjs_sigmask[0] = 0; 62 bp->sjs_sigmask[1] = 0; 63 bp->sjs_sigmask[2] = 0; 64 bp->sjs_stack = uc.uc_stack; 75 o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 79 sp->sjs_flags = bp [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | bio.c | 215 struct buf *bp; local 219 bp = getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 1); 220 if (bp->b_flags & B_DONE) 221 return (bp); 222 bp->b_flags |= B_READ; 223 ASSERT(bp->b_bcount == bsize); 225 (void) bdev_strategy(bp); 228 (*bio_lufs_strategy)(ufsvfsp->vfs_log, bp); 231 (*bio_snapshot_strategy)(&ufsvfsp->vfs_snapshot, bp); 235 (void) bdev_strategy(bp); 251 struct buf *bp, *rabp; local 295 bwrite_common(void *arg, struct buf *bp, int force_wait, int do_relse, int clear_flags) argument 345 bwrite(struct buf *bp) argument 357 bwrite2(struct buf *bp) argument 371 bdwrite(struct buf *bp) argument 391 bawrite(struct buf *bp) argument 405 brelse(struct buf *bp) argument 525 struct buf *bp, *dp; local 573 struct buf *bp; local 753 struct buf *bp; local 785 struct buf *bp; local 828 iowait(struct buf *bp) argument 839 iodone(struct buf *bp) argument 849 clrbuf(struct buf *bp) argument 864 struct buf *bp, *dp; local 959 struct buf *bp, *dp; local 1020 struct buf *bp; local 1121 struct buf *bp; local 1209 biowait(struct buf *bp) argument 1241 biodone_tnf_probe(struct buf *bp) argument 1255 biodone(struct buf *bp) argument 1290 geterror(struct buf *bp) argument 1316 struct buf *bp; local 1393 pageio_done(struct buf *bp) argument 1416 struct buf *bp; local 1478 struct buf *bp, *dp; local 1592 struct buf *bp; local 1648 bio_bhdr_free(struct buf *bp) argument 1693 struct buf *bp; local 1718 struct buf *bp, *dp, *dwp, *nbp; local 1894 struct buf *bp; local 1916 bio_pageio_done(struct buf *bp) argument 1940 bioerror(struct buf *bp, int error) argument 1958 bioreset(struct buf *bp) argument 1979 biomodified(struct buf *bp) argument 2009 bioinit(struct buf *bp) argument 2021 biofini(struct buf *bp) argument 2031 bioclone(struct buf *bp, off_t off, size_t len, dev_t dev, daddr_t blkno, int (*iodone)(struct buf *), struct buf *bp_mem, int sleep) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | setjmp.c | 43 register o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 58 bp->sjs_flags = 0; 59 bp->sjs_sp = *((int *)sp+14); 60 bp->sjs_pc = *((int *)sp+15) + 0x8; 61 bp->sjs_stack = uc.uc_stack; 64 bp->sjs_flags |= JB_SAVEMASK; 65 memcpy(bp->sjs_sigmask, &(uc.uc_sigmask), 3 * sizeof (int)); 77 o_setjmp_struct_t *bp = (o_setjmp_struct_t *)env; local 81 sp->sjs_flags = bp->sjs_flags; 82 sp->sjs_sp = bp [all...] |
/illumos-gate/usr/src/cmd/tip/ |
H A D | remcap.c | 86 * Get an entry for terminal name in buffer bp, 91 tgetent(char *bp, char *name, int len) argument 101 return (getent(bp, name, cp, len)); 103 if ((rc1 = getent(bp, name, cp, len)) != 1) 104 *bp = '\0'; 114 if (strlen(bp) + strlen(p) >= len) { 118 (void) strcat(bp, p); 120 tbuf = bp; 126 getent(char *bp, char *name, char *cp, int len) argument 134 tbuf = bp; 297 tskip(char *bp) argument 324 char *bp = tbuf; local 356 char *bp = tbuf; local 382 char *bp = tbuf; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_auto.c | 43 u_int8_t *bp; local 63 bp = logrec.data; 64 memcpy(bp, &rectype, sizeof(rectype)); 65 bp += sizeof(rectype); 66 memcpy(bp, &txn_num, sizeof(txn_num)); 67 bp += sizeof(txn_num); 68 memcpy(bp, lsnp, sizeof(DB_LSN)); 69 bp += sizeof(DB_LSN); 70 memcpy(bp, &opcode, sizeof(opcode)); 71 bp 184 u_int8_t *bp; local 247 u_int8_t *bp; local 368 u_int8_t *bp; local 425 u_int8_t *bp; local 526 u_int8_t *bp; local 578 u_int8_t *bp; local 695 u_int8_t *bp; local 753 u_int8_t *bp; local 898 u_int8_t *bp; local 965 u_int8_t *bp; local 1086 u_int8_t *bp; local 1146 u_int8_t *bp; local 1251 u_int8_t *bp; local 1309 u_int8_t *bp; local 1446 u_int8_t *bp; local [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.c | 121 BKT *bp; local 135 if ((bp = mpool_bkt(mp)) == NULL) 139 bp->pgno = *pgnoaddr; 141 bp->pgno = *pgnoaddr = mp->npages++; 143 bp->flags = MPOOL_PINNED | MPOOL_INUSE; 145 head = &mp->hqh[HASHKEY(bp->pgno)]; 146 CIRCLEQ_INSERT_HEAD(head, bp, hq); 147 CIRCLEQ_INSERT_TAIL(&mp->lqh, bp, q); 148 return (bp->page); 157 BKT *bp; local 189 BKT *bp; local 284 BKT *bp; local 311 BKT *bp; local 332 BKT *bp; local 354 BKT *bp; local 450 BKT *bp; local 475 BKT *bp; local [all...] |
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fc_physio.c | 67 struct buf *bp = *bpp; local 69 bp = getrbuf(KM_SLEEP); 70 bp->b_iodone = NULL; 71 bp->b_resid = 0; 72 *bpp = bp; 78 ASSERT(SEMA_HELD(&bp->b_sem)); 80 bp->b_error = 0; 81 bp->b_proc = procp; 83 bp->b_flags = B_BUSY | B_PHYS | B_READ; 84 bp 119 struct buf *bp = *bpp; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_syslog.c | 53 char *bp = buf; local 57 while ((*bp = *sp) != '\0' && bp != endp) { 60 if (strerror_r(err, bp, endp - bp) == 0) 61 bp += strlen(bp); 63 bp++; 66 *bp = '\0';
|
/illumos-gate/usr/src/lib/libc/sparcv9/gen/ |
H A D | siglongjmp.c | 47 volatile sigjmp_struct_t *bp = (sigjmp_struct_t *)env; local 48 greg_t fp = bp->sjs_fp; 49 greg_t i7 = bp->sjs_i7; 62 uc.uc_stack = bp->sjs_stack; 63 uc.uc_link = bp->sjs_uclink; 64 reg[REG_PC] = bp->sjs_pc; 66 reg[REG_SP] = bp->sjs_sp; 67 reg[REG_ASI] = bp->sjs_asi; 68 reg[REG_FPRS] = bp->sjs_fprs; 70 if (bp [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | blkptr.c | 47 encode_embedded_bp_compressed(blkptr_t *bp, void *data, argument 50 uint64_t *bp64 = (uint64_t *)bp; 60 bzero(bp, sizeof (*bp)); 61 BP_SET_EMBEDDED(bp, B_TRUE); 62 BP_SET_COMPRESS(bp, comp); 63 BP_SET_BYTEORDER(bp, ZFS_HOST_BYTEORDER); 64 BPE_SET_LSIZE(bp, uncompressed_size); 65 BPE_SET_PSIZE(bp, compressed_size); 75 ASSERT3P(bp64, <, bp 93 decode_embedded_bp_compressed(const blkptr_t *bp, void *buf) argument [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | nhash.c | 83 if (((*cp)->bp = 84 (Bucket *) malloc(sizeof (*(*cp)->bp) * hsz)) == NULL) { 85 (void) fprintf(stderr, pkg_gt("malloc(Bucket cp->bp)")); 92 bzero((*cp)->bp, sizeof (*(*cp)->bp) * hsz); 111 Bucket *bp; local 121 bp = &cp->bp[(*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)]; 122 if (bp->nent >= bp 164 Bucket *bp; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | btree_auto.c | 40 u_int8_t *bp; local 59 bp = logrec.data; 60 memcpy(bp, &rectype, sizeof(rectype)); 61 bp += sizeof(rectype); 62 memcpy(bp, &txn_num, sizeof(txn_num)); 63 bp += sizeof(txn_num); 64 memcpy(bp, lsnp, sizeof(DB_LSN)); 65 bp += sizeof(DB_LSN); 66 memcpy(bp, &fileid, sizeof(fileid)); 67 bp 149 u_int8_t *bp; local 203 u_int8_t *bp; local 320 u_int8_t *bp; local 380 u_int8_t *bp; local 521 u_int8_t *bp; local 584 u_int8_t *bp; local 721 u_int8_t *bp; local 779 u_int8_t *bp; local 884 u_int8_t *bp; local 938 u_int8_t *bp; local 1043 u_int8_t *bp; local 1094 u_int8_t *bp; local 1191 u_int8_t *bp; local 1247 u_int8_t *bp; local 1396 u_int8_t *bp; local [all...] |
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | blkptr.c | 43 * buf must be at least BPE_GET_PSIZE(bp) bytes long (which will never be 47 decode_embedded_bp_compressed(const blkptr_t *bp, void *buf) argument 52 const uint64_t *bp64 = (const uint64_t *)bp; 54 ASSERT(BP_IS_EMBEDDED(bp)); 56 psize = BPE_GET_PSIZE(bp); 65 ASSERT3P(bp64, <, bp + 1); 68 if (!BPE_IS_PAYLOADWORD(bp, bp64))
|