/illumos-gate/usr/src/cmd/sgs/common/ |
H A D | alist.c | 107 Aliste bsize; in alist_insert() local 114 bsize = size * init_arritems; in alist_insert() 115 bsize = S_ROUND(bsize, sizeof (void *)); in alist_insert() 116 bsize = ALIST_OFF_DATA + bsize; in alist_insert() 117 if ((lp = malloc((size_t)bsize)) == NULL) in alist_insert() 133 Aliste bsize; in alist_insert() local 135 bsize = lp->al_size * lp->al_arritems * 2; in alist_insert() 136 bsize = S_ROUND(bsize, sizeof (void *)); in alist_insert() 137 bsize = ALIST_OFF_DATA + bsize; in alist_insert() 138 if ((lp = realloc(lp, (size_t)bsize)) == NULL) in alist_insert() [all …]
|
/illumos-gate/usr/src/test/smbclient-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 48 static size_t bsize = BSIZE; variable 104 count = fsize / bsize; in parse_options() 109 bsize = atoi(optarg); in parse_options() 173 buf = (char *)calloc(1, bsize); in do_write() 174 rbuf = (char *)calloc(1, bsize); in do_write() 187 if (write(fd, buf, bsize) < bsize) { in do_write() 198 if (read(fd, rbuf, bsize) < bsize) { in do_write() 203 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 53 static size_t bsize = BSIZE; variable 107 count = fsize / bsize; in parse_options() 112 bsize = atoi(optarg); in parse_options() 176 buf = (char *)calloc(1, bsize); in do_write() 177 rbuf = (char *)calloc(1, bsize); in do_write() 190 if (write(fd, buf, bsize) < bsize) { in do_write() 201 if (read(fd, rbuf, bsize) < bsize) { in do_write() 206 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | types.h | 86 #define mem_alloc(bsize) malloc(bsize) argument 87 #define mem_free(ptr, bsize) free(ptr) argument 91 #define mem_alloc(bsize) kmem_alloc(bsize, KM_SLEEP) argument 92 #define mem_free(ptr, bsize) kmem_free(ptr, bsize) argument
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | nblk.c | 41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) in nblk() argument 46 if (size == 0 || bsize == 0) in nblk() 53 ind = howmany(bsize, sizeof (daddr_t)); in nblk() 57 tot = howmany(size, bsize); in nblk() 70 roundup(size, bsize); in nblk() 80 tot *= howmany(bsize, DEV_BSIZE); in nblk()
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_bio.h | 62 daddr_t blkno, long bsize); 66 daddr_t blkno, long bsize, int flag); 68 #define UFS_BREAD(ufsvfsp, dev, blkno, bsize) \ argument 69 bread_common(ufsvfsp, dev, blkno, bsize) 80 #define UFS_GETBLK(ufsvfsp, dev, blkno, bsize) \ argument 81 getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 0)
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 320 long bsize = VBSIZE(vp); in bmap_write() local 369 if (osize < bsize && osize > 0) { in bmap_write() 377 btodb(bsize - osize)) > INT_MAX) { in bmap_write() 394 (uint_t)bsize, S_OTHER, &fbp); in bmap_write() 398 err = realloccg(ip, ob, pref, (int)osize, (int)bsize, in bmap_write() 413 TRANS_MATA_ALLOC(ufsvfsp, ip, nb, bsize, 0); in bmap_write() 417 ip->i_blocks += btodb(bsize - osize); in bmap_write() 487 nsize = bsize; in bmap_write() 620 if (((unsigned)ip->i_blocks + btodb(bsize)) in bmap_write() 629 err = alloc(ip, pref, (int)bsize, &nb, cr); in bmap_write() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | bf.c | 106 size_t bsize; local 114 bsize = ((struct bf_info *) info)->bi_bsize; 141 if (bsize > 0) 143 bfp->bf_buf = (char *) sm_malloc(bsize); 159 bfp->bf_bufsize = bsize; 216 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) in bfopen() argument 219 bfopen(filename, fmode, bsize, flags) in bfopen() 222 size_t bsize; 247 info.bi_bsize = bsize; 830 int bsize; local [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | bio.c | 204 bread(dev_t dev, daddr_t blkno, long bsize) in bread() argument 206 return (BREAD(dev, blkno, bsize)); in bread() 215 bread_common(void *arg, dev_t dev, daddr_t blkno, long bsize) in bread_common() argument 222 bp = getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 1); in bread_common() 226 ASSERT(bp->b_bcount == bsize); in bread_common() 252 breada(dev_t dev, daddr_t blkno, daddr_t rablkno, long bsize) in breada() argument 260 bp = GETBLK(dev, blkno, bsize); in breada() 263 bp->b_bcount = bsize; in breada() 272 rabp = GETBLK(dev, rablkno, bsize); in breada() 277 rabp->b_bcount = bsize; in breada() [all …]
|
H A D | dkioc_free_util.c | 158 uint_t bsize = 1U << dfi->dfi_bshift; in dfl_iter() local 177 if (!IS_P2ALIGNED(dfi->dfi_max_bytes, bsize)) { in dfl_iter() 183 if (dfi->dfi_align == 0 || !IS_P2ALIGNED(dfi->dfi_align, bsize)) { in dfl_iter() 189 if (!IS_P2ALIGNED(dfi->dfi_max_ext_bytes, bsize)) { in dfl_iter() 355 const uint64_t bsize = (uint64_t)1 << dfi->dfi_bshift; in adjust_exts() local 374 if (start < dfl->dfl_offset || start > (UINT64_MAX - bsize)) { in adjust_exts() 390 end = P2ALIGN(end, bsize); in adjust_exts()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getxby_door.h | 65 nss_status_t _nsc_trydoorcall(void **dptr, size_t *bsize, size_t *dsize); 66 nss_status_t _nsc_trydoorcall_ext(void **dptr, size_t *bsize, size_t *dsize); 67 int _nsc_getdoorbuf(void **dptr, size_t *bsize); 68 void _nsc_resizedoorbuf(size_t bsize);
|
/illumos-gate/usr/src/cmd/genmsg/ |
H A D | genmsg.l | 433 int bsize = BUFSIZ; /* growing buffer size */ 437 if ((buf = ptr = malloc(bsize)) == NULL) { 442 if (i == bsize) { 443 bsize += BUFSIZ; 444 if ((buf = realloc(buf, bsize)) == NULL) { 482 int bsize = BUFSIZ; /* growing buffer size */ 486 if ((buf = ptr = malloc(bsize)) == NULL) { 493 if (i == bsize) { 494 bsize += BUFSIZ; 495 if ((buf = realloc(buf, bsize)) == NULL) {
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 160 if (fs_tab->bsize != 0) in fsys_stat() 172 fs_tab->bsize = svfsb.f_bsize; in fsys_stat() 255 fs_tab->bsize, in readmap() 318 nblk(fs_tab->bsize, in readmap() 319 fs_tab->bsize, in readmap() 323 fs_tab->bsize, in readmap() 334 fs_tab->bsize, in readmap() 337 fs_tab->bsize, in readmap()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/ |
H A D | newfs.c | 115 static int bsize; /* block size */ variable 254 bsize = number("bsize", optarg, NR_NONE, DESBLKSIZE); in main() 255 if (bsize < MINBSIZE || bsize > MAXBSIZE) in main() 510 fsize = bsize; in main() 520 fsize = bsize/8; in main() 573 maxipg = roundup(bsize * NBBY / 3, in main() 574 bsize / sizeof (struct inode)); in main() 575 maxcpg = (bsize - sizeof (struct cg) - howmany(maxipg, NBBY)) / in main() 628 fssize, nsectors, ntracks, bsize, fsize, cpg, minfree, rpm/60, in main() 793 if (bsize == 0) in getdiskbydev() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/ |
H A D | fsirand.c | 68 int bsize; in main() local 132 bsize = INOPB(fs) * sizeof (struct dinode); in main() 145 n = read(fd, (char *)dibuf, bsize); in main() 146 if (n != bsize) { in main() 170 n = write(fd, (char *)dibuf, bsize); in main() 171 if (n != bsize) { in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stk.c | 215 register size_t bsize; in stkopen() local 232 bsize = init+sizeof(struct frame); in stkopen() 235 bsize = roundof(bsize,STK_FSIZE/16); in stkopen() 238 bsize = roundof(bsize,STK_FSIZE); in stkopen() 239 bsize -= sizeof(struct frame); in stkopen() 240 if(!(fp=newof((char*)0,struct frame, 1,bsize))) in stkopen() 245 count(addsize,sizeof(*fp)+bsize); in stkopen() 251 fp->end = sp->stkend = cp+bsize; in stkopen() 252 if(!sfnew(stream,cp,bsize,-1,SF_STRING|SF_WRITE|SF_STATIC|SF_EOF)) in stkopen()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash.c | 173 (info && info->bsize ? info->bsize : DEF_BUCKET_SIZE)) != 195 (hashp->hdr.bsize << BYTE_SHIFT) - 1) >> 207 csize = info->cachesize / hashp->hdr.bsize; 209 csize = DEF_CACHESIZE / hashp->hdr.bsize; 210 hashp->mp = mpool_open(&mpool_key, hashp->fp, hashp->hdr.bsize, csize); 229 hashp->split_buf = (PAGE16 *)malloc(hashp->hdr.bsize); 253 "BUCKET SIZE ", hashp->hdr.bsize, 331 hashp->hdr.bsize = DEF_BUCKET_SIZE; 342 hashp->hdr.bsize = statbuf.st_blksize; 343 hashp->hdr.bshift = __log2(hashp->hdr.bsize); [all …]
|
H A D | hash_page.c | 134 key->size = hashp->hdr.bsize - 335 delta = hashp->hdr.bsize - DATA_OFF(pagep, ndx); 362 (u_int8_t *)pagep + hashp->hdr.bsize - len; 446 off = hashp->hdr.bsize; 452 memcpy(temp_pagep, old_pagep, hashp->hdr.bsize); 464 off = hashp->hdr.bsize; 778 OFFSET(pagep) = hashp->hdr.bsize - 1; 882 max = hashp->hdr.bsize >> 2; /* divide by 4 bytes */ 913 max = hashp->hdr.bsize >> 2; /* divide by 4 bytes */ 1040 0xFF, hashp->hdr.bsize - clearbytes); [all …]
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_arp.c | 234 size_t bsize, plen; in libvarpd_plugin_proxy_ndp() local 283 bsize = vaq->vaq_bsize; in libvarpd_plugin_proxy_ndp() 284 bsize -= otl->otl_hdrsize; in libvarpd_plugin_proxy_ndp() 285 assert(bsize > sizeof (ip6_t)); in libvarpd_plugin_proxy_ndp() 314 bsize -= sizeof (ip6_t); in libvarpd_plugin_proxy_ndp() 316 if (bsize < plen) { in libvarpd_plugin_proxy_ndp() 614 size_t bsize = 0; in libvarpd_inject_arp() local 620 eh = (struct ether_vlan_header *)(buf + bsize); in libvarpd_inject_arp() 621 bsize += sizeof (struct ether_vlan_header); in libvarpd_inject_arp() 629 eh = (struct ether_header *)(buf + bsize); in libvarpd_inject_arp() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ffs.c | 101 int bnum, offset, bsize; in block_map() local 114 bsize = MAPBUF_LEN; in block_map() 121 bsize = SUPERBLOCK->fs_bsize; in block_map() 125 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) in block_map() 135 mapblock_bsize = bsize; in block_map()
|
H A D | fsys_ufs2.c | 125 int bnum, offset, bsize; in block_map() local 139 bsize = MAPBUF_LEN; in block_map() 146 bsize = SUPERBLOCK->fs_bsize; in block_map() 150 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) in block_map() 160 mapblock_bsize = bsize; in block_map()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | serialize.c | 145 size_t bufsize, bsize; in krb5_externalize_data() local 152 bsize = bufsize; in krb5_externalize_data() 157 &bsize))) { in krb5_externalize_data() 158 if (bsize != 0) in krb5_externalize_data() 159 bufsize -= bsize; in krb5_externalize_data()
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | zutil.c | 217 ulg bsize = (ulg)items*size; in zcalloc() local 224 if (bsize < 65520L) { in zcalloc() 225 buf = farmalloc(bsize); in zcalloc() 228 buf = farmalloc(bsize + 16L); in zcalloc()
|
/illumos-gate/usr/src/uts/common/fs/bootfs/ |
H A D | bootfs_vnops.c | 213 ulong_t bsize, brem; in bootfs_readdir() local 236 brem = bsize = uiop->uio_iov->iov_len; in bootfs_readdir() 237 buf = kmem_alloc(bsize, KM_SLEEP); in bootfs_readdir() 250 kmem_free(buf, bsize); in bootfs_readdir() 267 kmem_free(buf, bsize); in bootfs_readdir() 293 kmem_free(buf, bsize); in bootfs_readdir() 310 ret = uiomove(buf, (bsize - brem), UIO_READ, uiop); in bootfs_readdir() 323 kmem_free(buf, bsize); in bootfs_readdir()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | write_image.c | 103 uint_t bsize; in write_image() local 116 &bsize)) <= 0) { in write_image() 130 &bsize); in write_image()
|