Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 848) sorted by relevance

12345678910>>...34

/onnv-gate/usr/src/ucblib/libtermcap/
H A Dtermcap.c56 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 …]
/onnv-gate/usr/src/uts/common/os/
H A Dbio.c214 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 …]
/onnv-gate/usr/src/lib/libdtrace/common/
H A Ddt_buf.c49 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 …]
/onnv-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c121 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 …]
/onnv-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_buf.c39 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 …]
/onnv-gate/usr/src/cmd/sendmail/db/hash/
H A Dhash_auto.c43 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 …]
/onnv-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h191 #define BP_GET_LSIZE(bp) \ argument
192 BF64_GET_SB((bp)->blk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1)
193 #define BP_SET_LSIZE(bp, x) \ argument
194 BF64_SET_SB((bp)->blk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1, x)
196 #define BP_GET_PSIZE(bp) \ argument
197 BF64_GET_SB((bp)->blk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1)
198 #define BP_SET_PSIZE(bp, x) \ argument
199 BF64_SET_SB((bp)->blk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1, x)
201 #define BP_GET_COMPRESS(bp) BF64_GET((bp)->blk_prop, 32, 8) argument
202 #define BP_SET_COMPRESS(bp, x) BF64_SET((bp)->blk_prop, 32, 8, x) argument
[all …]
/onnv-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_auto.c43 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 …]
/onnv-gate/usr/src/cmd/sendmail/db/btree/
H A Dbtree_auto.c40 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 …]
/onnv-gate/usr/src/cmd/lvm/rpc.metamedd/
H A Dmed_hash.c78 (*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 …]
/onnv-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_log.c50 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 …]
/onnv-gate/usr/src/cmd/tip/
H A Dremcap.c91 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 …]
/onnv-gate/usr/src/cmd/vgrind/
H A Dvgrindefs.c37 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 …]
/onnv-gate/usr/src/cmd/captoinfo/
H A Dotermcap.c98 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 …]
/onnv-gate/usr/src/lib/libbc/libc/gen/common/
H A Diso.multibyte.c424 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 …]
/onnv-gate/usr/src/cmd/sendmail/db/txn/
H A Dtxn_auto.c34 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 …]
/onnv-gate/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_bio.c83 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 …]
/onnv-gate/usr/src/lib/libbc/libc/sys/common/
H A Dsigsetjmp.c44 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 …]
/onnv-gate/usr/src/common/openssl/crypto/ocsp/
H A Docsp_prn.c69 static int ocsp_certid_print(BIO *bp, OCSP_CERTID* a, int indent) in ocsp_certid_print() argument
71 BIO_printf(bp, "%*sCertificate ID:\n", indent, ""); in ocsp_certid_print()
73 BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); in ocsp_certid_print()
74 i2a_ASN1_OBJECT(bp, a->hashAlgorithm->algorithm); in ocsp_certid_print()
75 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); in ocsp_certid_print()
76 i2a_ASN1_STRING(bp, a->issuerNameHash, V_ASN1_OCTET_STRING); in ocsp_certid_print()
77 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); in ocsp_certid_print()
78 i2a_ASN1_STRING(bp, a->issuerKeyHash, V_ASN1_OCTET_STRING); in ocsp_certid_print()
79 BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); in ocsp_certid_print()
80 i2a_ASN1_INTEGER(bp, a->serialNumber); in ocsp_certid_print()
[all …]
/onnv-gate/usr/src/lib/libpkg/common/
H A Dnhash.c83 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 …]
/onnv-gate/usr/src/common/openssl/crypto/bn/
H A Dbntest.c94 int test_add(BIO *bp);
95 int test_sub(BIO *bp);
96 int test_lshift1(BIO *bp);
97 int test_lshift(BIO *bp,BN_CTX *ctx,BIGNUM *a_);
98 int test_rshift1(BIO *bp);
99 int test_rshift(BIO *bp,BN_CTX *ctx);
100 int test_div(BIO *bp,BN_CTX *ctx);
101 int test_div_word(BIO *bp);
102 int test_div_recp(BIO *bp,BN_CTX *ctx);
103 int test_mul(BIO *bp);
[all …]
/onnv-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_physio.c67 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 …]
/onnv-gate/usr/src/lib/libgss/
H A Doid_ops.c244 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 …]
/onnv-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h218 #define BP_GET_LSIZE(bp) \ argument
219 BF64_GET_SB((bp)->blk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1)
220 #define BP_SET_LSIZE(bp, x) \ argument
221 BF64_SET_SB((bp)->blk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1, x)
223 #define BP_GET_PSIZE(bp) \ argument
224 BF64_GET_SB((bp)->blk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1)
225 #define BP_SET_PSIZE(bp, x) \ argument
226 BF64_SET_SB((bp)->blk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1, x)
228 #define BP_GET_COMPRESS(bp) BF64_GET((bp)->blk_prop, 32, 8) argument
229 #define BP_SET_COMPRESS(bp, x) BF64_SET((bp)->blk_prop, 32, 8, x) argument
[all …]
/onnv-gate/usr/src/common/openssl/crypto/asn1/
H A Dt_x509.c99 int X509_print(BIO *bp, X509 *x) in X509_print() argument
101 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print()
104 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag) in X509_print_ex() argument
127 if (BIO_write(bp,"Certificate:\n",13) <= 0) goto err; in X509_print_ex()
128 if (BIO_write(bp," Data:\n",10) <= 0) goto err; in X509_print_ex()
133 if (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\n","",l+1,l) <= 0) goto err; in X509_print_ex()
138 if (BIO_write(bp," Serial Number:",22) <= 0) goto err; in X509_print_ex()
151 if (BIO_printf(bp," %s%lu (%s0x%lx)\n",neg,l,neg,l) <= 0) in X509_print_ex()
157 if (BIO_printf(bp,"\n%12s%s","",neg) <= 0) goto err; in X509_print_ex()
161 if (BIO_printf(bp,"%02x%c",bs->data[i], in X509_print_ex()
[all …]

12345678910>>...34