/titanic_41/usr/src/ucblib/libtermcap/ |
H A D | termcap.c | 56 static char *tskip(char *bp); 68 tgetent(char *bp, char *name) in tgetent() argument 77 tbuf = bp; in tgetent() 94 tbuf = bp; in tgetent() 96 (void) strcpy(bp, cp); in tgetent() 109 cp = bp; in tgetent() 121 if (cp > bp && cp[-1] == '\\') { in tgetent() 127 if (cp >= bp+BUFSIZ) { in tgetent() 236 tskip(char *bp) in tskip() argument 239 while (*bp && *bp != ':') in tskip() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | bio.c | 214 struct buf *bp; in bread_common() local 218 bp = getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 1); in bread_common() 219 if (bp->b_flags & B_DONE) in bread_common() 220 return (bp); in bread_common() 221 bp->b_flags |= B_READ; in bread_common() 222 ASSERT(bp->b_bcount == bsize); in bread_common() 224 (void) bdev_strategy(bp); in bread_common() 227 (*bio_lufs_strategy)(ufsvfsp->vfs_log, bp); in bread_common() 230 (*bio_snapshot_strategy)(&ufsvfsp->vfs_snapshot, bp); in bread_common() 234 (void) bdev_strategy(bp); in bread_common() [all …]
|
/titanic_41/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) in dt_buf_create() argument 54 bp->dbu_buf = bp->dbu_ptr = dt_zalloc(dtp, len); in dt_buf_create() 55 bp->dbu_len = len; in dt_buf_create() 57 if (bp->dbu_buf == NULL) in dt_buf_create() 58 bp->dbu_err = dtrace_errno(dtp); in dt_buf_create() 60 bp->dbu_err = 0; in dt_buf_create() 62 bp->dbu_resizes = 0; in dt_buf_create() 63 bp->dbu_name = name; in dt_buf_create() 67 dt_buf_destroy(dtrace_hdl_t *dtp, dt_buf_t *bp) in dt_buf_destroy() argument 70 bp->dbu_name, (ulong_t)bp->dbu_len, bp->dbu_resizes); in dt_buf_destroy() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/stage2/zfs-include/ |
H A D | spa.h | 195 #define BP_GET_LSIZE(bp) \ argument 196 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1) 197 #define BP_SET_LSIZE(bp, x) \ argument 198 BF64_SET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x) 200 #define BP_GET_PSIZE(bp) \ argument 201 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1) 202 #define BP_SET_PSIZE(bp, x) \ argument 203 BF64_SET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1, x) 205 #define BP_GET_COMPRESS(bp) BF64_GET((bp)->blk_prop, 32, 7) argument 206 #define BP_SET_COMPRESS(bp, x) BF64_SET((bp)->blk_prop, 32, 7, x) argument [all …]
|
/titanic_41/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 [all …]
|
/titanic_41/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 += sizeof(opcode); [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/db/ |
H A D | db_auto.c | 43 u_int8_t *bp; local 64 bp = logrec.data; 65 memcpy(bp, &rectype, sizeof(rectype)); 66 bp += sizeof(rectype); 67 memcpy(bp, &txn_num, sizeof(txn_num)); 68 bp += sizeof(txn_num); 69 memcpy(bp, lsnp, sizeof(DB_LSN)); 70 bp += sizeof(DB_LSN); 71 memcpy(bp, &opcode, sizeof(opcode)); 72 bp += sizeof(opcode); [all …]
|
/titanic_41/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); in fmd_buf_alloc() local 41 bp->buf_name = fmd_strdup(name, FMD_SLEEP); in fmd_buf_alloc() 42 bp->buf_next = NULL; in fmd_buf_alloc() 43 bp->buf_data = fmd_zalloc(size, FMD_SLEEP); in fmd_buf_alloc() 44 bp->buf_size = size; in fmd_buf_alloc() 45 bp->buf_flags = FMD_BUF_DIRTY; in fmd_buf_alloc() 47 return (bp); in fmd_buf_alloc() 51 fmd_buf_free(fmd_buf_t *bp) in fmd_buf_free() argument 53 fmd_strfree(bp->buf_name); in fmd_buf_free() 54 fmd_free(bp->buf_data, bp->buf_size); in fmd_buf_free() [all …]
|
/titanic_41/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 += sizeof(fileid); [all …]
|
/titanic_41/usr/src/cmd/lvm/rpc.metamedd/ |
H A D | med_hash.c | 78 (*cp)->bp = (Bucket *) Malloc(sizeof (*(*cp)->bp) * hsz); in init_cache() 79 if ((*cp)->bp == NULL) { in init_cache() 86 (*cp)->bp[i].nent = 0; in init_cache() 87 (*cp)->bp[i].nalloc = 0; in init_cache() 88 (*cp)->bp[i].itempp = NULL; in init_cache() 120 Bucket *bp; in add_cache() local 129 bp = &cp->bp[(*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)]; in add_cache() 130 if (bp->nent >= bp->nalloc) { in add_cache() 131 if (bp->nalloc == 0) { in add_cache() 132 bp->itempp = in add_cache() [all …]
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | lufs_log.c | 50 makebusy(ml_unit_t *ul, buf_t *bp) in makebusy() argument 52 sema_p(&bp->b_sem); in makebusy() 53 if ((bp->b_flags & B_ERROR) == 0) in makebusy() 55 if (bp->b_flags & B_READ) in makebusy() 62 logdone(buf_t *bp) in logdone() argument 64 bp->b_flags |= B_DONE; in logdone() 66 if (bp->b_flags & B_WRITE) in logdone() 67 sema_v(&bp->b_sem); in logdone() 70 sema_v(&bp->b_io); in logdone() 79 buf_t *bp; in ldl_strategy_done() local [all …]
|
/titanic_41/usr/src/cmd/tip/ |
H A D | remcap.c | 91 tgetent(char *bp, char *name, int len) in tgetent() argument 101 return (getent(bp, name, cp, len)); in tgetent() 103 if ((rc1 = getent(bp, name, cp, len)) != 1) in tgetent() 104 *bp = '\0'; in tgetent() 114 if (strlen(bp) + strlen(p) >= len) { in tgetent() 118 (void) strcat(bp, p); in tgetent() 120 tbuf = bp; in tgetent() 126 getent(char *bp, char *name, char *cp, int len) in getent() argument 134 tbuf = bp; in getent() 149 (void) strncpy(bp, cp, len-1); in getent() [all …]
|
/titanic_41/usr/src/cmd/vgrind/ |
H A D | vgrindefs.c | 37 static char *tskip(char *bp); 49 tgetent(char *bp, char *name, char *file) in tgetent() argument 58 tbuf = bp; in tgetent() 65 cp = bp; in tgetent() 77 if (cp > bp && cp[-1] == '\\'){ in tgetent() 83 if (cp >= bp+BUFSIZ) { in tgetent() 187 tskip(char *bp) in tskip() argument 190 while (*bp && *bp != ':') in tskip() 191 bp++; in tskip() 192 if (*bp == ':') in tskip() [all …]
|
/titanic_41/usr/src/cmd/captoinfo/ |
H A D | otermcap.c | 98 otgetent(char *bp, char *name) in otgetent() argument 105 ret = _tgetent(bp, name); in otgetent() 112 if (strlen(bp) >= 1024) in otgetent() 120 _tgetent(char *bp, char *name) in _tgetent() argument 129 tbuf = bp; in _tgetent() 144 (void) strcpy(bp, cp); in _tgetent() 160 cp = bp; in _tgetent() 172 if (cp > bp && cp[-1] == '\\') { in _tgetent() 178 if (cp >= bp + TBUFSIZE) { in _tgetent() 287 tskip(char *bp) in tskip() argument [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | iso.multibyte.c | 424 unsigned char *bp; in _wctomb_iso() local 448 bp = buf; in _wctomb_iso() 480 *bp++ = ESC; in _wctomb_iso() 481 *bp++ = 0x24; in _wctomb_iso() 482 *bp++ = 0x28; in _wctomb_iso() 483 *bp++ = FINAL; in _wctomb_iso() 490 *bp++ = ESC; in _wctomb_iso() 491 *bp++ = 0x28; in _wctomb_iso() 492 *bp++ = FINAL; in _wctomb_iso() 495 *bp++ = SI; in _wctomb_iso() [all …]
|
/titanic_41/usr/src/uts/common/fs/zfs/sys/ |
H A D | spa.h | 270 #define BPE_GET_ETYPE(bp) \ argument 271 (ASSERT(BP_IS_EMBEDDED(bp)), \ 272 BF64_GET((bp)->blk_prop, 40, 8)) 273 #define BPE_SET_ETYPE(bp, t) do { \ argument 274 ASSERT(BP_IS_EMBEDDED(bp)); \ 275 BF64_SET((bp)->blk_prop, 40, 8, t); \ 278 #define BPE_GET_LSIZE(bp) \ argument 279 (ASSERT(BP_IS_EMBEDDED(bp)), \ 280 BF64_GET_SB((bp)->blk_prop, 0, 25, 0, 1)) 281 #define BPE_SET_LSIZE(bp, x) do { \ argument [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/txn/ |
H A D | txn_auto.c | 34 u_int8_t *bp; local 48 bp = logrec.data; 49 memcpy(bp, &rectype, sizeof(rectype)); 50 bp += sizeof(rectype); 51 memcpy(bp, &txn_num, sizeof(txn_num)); 52 bp += sizeof(txn_num); 53 memcpy(bp, lsnp, sizeof(DB_LSN)); 54 bp += sizeof(DB_LSN); 55 memcpy(bp, &opcode, sizeof(opcode)); 56 bp += sizeof(opcode); [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_bio.c | 83 static void _sd_pack_pages(struct buf *bp, struct buf *list, sd_addr_t *addr, 85 static void _sd_pack_pages_nopageio(struct buf *bp, struct buf *list, 87 static void _sd_setup_iob(struct buf *bp, dev_t dev, nsc_off_t pos, int flag); 111 _sd_add_vm_to_bp_plist(struct buf *bp, unsigned char *v) in _sd_add_vm_to_bp_plist() argument 124 page_list_concat(&(bp->b_pages), &one_pg); in _sd_add_vm_to_bp_plist() 325 struct buf *bp; in _sd_get_iobuf() local 330 bp = pageio_setup(NULL, 0, &kvp, 0); in _sd_get_iobuf() 332 bp = getrbuf(KM_SLEEP); in _sd_get_iobuf() 334 if (bp == NULL) in _sd_get_iobuf() 339 return (bp); in _sd_get_iobuf() [all …]
|
/titanic_41/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->sjs_flags; [all …]
|
/titanic_41/usr/src/lib/libumem/amd64/ |
H A D | umem_genasm.c | 320 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument 324 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit() 326 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit() 327 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit() 329 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit() 330 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit() 336 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mcs) in genasm_frinit() argument 340 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit() 342 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit() 344 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit() [all …]
|
/titanic_41/usr/src/lib/libumem/i386/ |
H A D | umem_genasm.c | 313 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument 317 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit() 319 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit() 320 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit() 322 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit() 323 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit() 329 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mc) in genasm_frinit() argument 333 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit() 335 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit() 337 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit() [all …]
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | nhash.c | 83 if (((*cp)->bp = in init_cache() 84 (Bucket *) malloc(sizeof (*(*cp)->bp) * hsz)) == NULL) { in init_cache() 92 bzero((*cp)->bp, sizeof (*(*cp)->bp) * hsz); in init_cache() 111 Bucket *bp; in add_cache() local 121 bp = &cp->bp[(*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)]; in add_cache() 122 if (bp->nent >= bp->nalloc) { in add_cache() 123 if (bp->nalloc == 0) { in add_cache() 124 bp->itempp = in add_cache() 125 (Item **) malloc(sizeof (*bp->itempp) * cp->bsz); in add_cache() 130 bp->nalloc + cp->bsz, in add_cache() [all …]
|
/titanic_41/usr/src/lib/libgss/ |
H A D | oid_ops.c | 244 char *bp; local 290 if ((bp = (char *)malloc(string_length))) { 291 (void) strcpy(bp, "{ "); 294 (void) strcat(bp, numstr); 296 (void) strcat(bp, numstr); 303 (void) strcat(bp, numstr); 307 (void) strcat(bp, "}"); 308 oid_str->length = strlen(bp)+1; 309 oid_str->value = (void *) bp; 329 char *cp, *bp, *startp; local [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/log/ |
H A D | log_auto.c | 40 u_int8_t *bp; local 58 bp = logrec.data; 59 memcpy(bp, &rectype, sizeof(rectype)); 60 bp += sizeof(rectype); 61 memcpy(bp, &txn_num, sizeof(txn_num)); 62 bp += sizeof(txn_num); 63 memcpy(bp, lsnp, sizeof(DB_LSN)); 64 bp += sizeof(DB_LSN); 65 memcpy(bp, &opcode, sizeof(opcode)); 66 bp += sizeof(opcode); [all …]
|
/titanic_41/usr/src/uts/sun4/io/efcode/ |
H A D | fc_physio.c | 67 struct buf *bp = *bpp; in fc_physio_setup() local 69 bp = getrbuf(KM_SLEEP); in fc_physio_setup() 70 bp->b_iodone = NULL; in fc_physio_setup() 71 bp->b_resid = 0; in fc_physio_setup() 72 *bpp = bp; in fc_physio_setup() 78 ASSERT(SEMA_HELD(&bp->b_sem)); in fc_physio_setup() 80 bp->b_error = 0; in fc_physio_setup() 81 bp->b_proc = procp; in fc_physio_setup() 83 bp->b_flags = B_BUSY | B_PHYS | B_READ; in fc_physio_setup() 84 bp->b_edev = 0; in fc_physio_setup() [all …]
|