/illumos-gate/usr/src/cmd/mailx/ |
H A D | lock.c | 47 lock(FILE *fp, char *mode, int blk) argument 54 return fcntl(fileno(fp), blk ? F_SETLKW : F_SETLK, &l);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | memalign.c | 62 register Dblk blk; /* For addressing fragment blocks */ local 93 blk = (Dblk)(p - ALIGNSIZ); /* back up to get length word */ 94 blksize = blk->size; 107 frag_size = (uint)aligned_blk - (uint)blk; 120 blk->size = frag_size; 123 free(blk->data); 136 blk = nextblk(aligned_blk, nbytes); 137 blk->size = frag_size; 139 free(blk->data);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | memalign.c | 65 TREE *blk; /* For addressing fragment blocks */ local 126 blk = BLOCK(p); /* back up to get length word */ 127 blksize = SIZE(blk); 143 frag_size = (size_t)aligned_blk - (size_t)blk; 161 SIZE(blk) = frag_size | BIT0 | ISBIT1(SIZE(blk)); 162 _free_unlocked(DATA(blk)); 176 blk = NEXT(aligned_blk); 179 SIZE(blk) = frag_size | BIT0; 180 _free_unlocked(DATA(blk)); [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/labelit/ |
H A D | labelit.c | 139 int blk; local 206 blk = sblock.fs_spc * sblock.fs_cpc / NSPF(&sblock); 207 for (i = 0; i < blk; i += sblock.fs_frag) 210 blk = i / sblock.fs_frag; 211 p = (char *)&(fs_rotbl(fsp)[blk]); 284 bcopy((char *)&(fs_rotbl(fsp)[blk]), 285 (char *)&(fs_rotbl(altfsp)[blk]), 14); 299 p = (char *)&(fs_rotbl(fsp)[blk]);
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | md.c | 87 md_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, argument 96 if (blk < 0 || blk >= (MD_IMAGE_SIZE / MD_BLOCK_SIZE)) 102 ofs = blk * MD_BLOCK_SIZE;
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 195 fsblkcnt_t blk; local 250 blk = nblk(ept->cinfo.size, 254 blk = 0; 255 fs_tab->bused += blk; 313 blk = 318 blk = nblk(ept->cinfo.size, 322 blk = 0; 326 blk = 0; 341 blk = 0; 343 blk [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_uobj.c | 110 sol_ofs_uobj_blk_t *blk; local 127 blk = uo_tbl->uobj_tbl_uo_root[i]; 128 if (!blk) { 132 if (blk->ofs_uoblk_blks[j]) { 136 * (blk->ofs_uoblk_blks[j]); 139 "UOBJ TBL FINI: blk %p, slot %d non null", 140 blk, j); 143 kmem_free(blk, sizeof (*blk)); 287 sol_ofs_uobj_blk_t *blk; local 408 sol_ofs_uobj_blk_t *blk; local 504 sol_ofs_uobj_blk_t *blk; local [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_diff.c | 130 dnode_phys_t *blk; local 141 blk = abuf->b_data; 145 err = report_dnode(da, dnobj, blk+i);
|
/illumos-gate/usr/src/lib/libsum/common/ |
H A D | sum-sha1.c | 58 * blk0() and blk() perform the initial expand. 68 #define blk(i) \ macro 81 z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \ 84 z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); \ 87 z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \ 90 z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.exec.c | 58 tchar *blk[2]; local 91 blk[0] = t->t_dcom[0]; 92 blk[1] = 0; 93 av = blkspl(blk, av);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fdio.c | 182 uchar_t blk[DEV_BSIZE]; local 196 if (pread64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) 199 bcopy(&blk[blkoff], buf, len); 223 uchar_t blk[DEV_BSIZE]; local 237 if (pread64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE) 240 bcopy(buf, &blk[blkoff], len); 242 if (pwrite64(fdp->fd_fd, blk, DEV_BSIZE, devoff) != DEV_BSIZE)
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass5.c | 44 int32_t c, blk, frags; local 254 blk = blkmap(fs, cg_blksfree(newcg), i); 255 fragacct(fs, blk, newcg->cg_frsum, 1);
|
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/ |
H A D | tunefs.c | 400 bwrite(diskaddr_t blk, char *buf, int size) argument 402 if (llseek(fi, (offset_t)blk * DEV_BSIZE, 0) < 0) {
|
/illumos-gate/usr/src/uts/common/io/1394/ |
H A D | s1394_addr.c | 445 s1394_free_addr_blk(s1394_hal_t *hal, s1394_addr_space_blk_t *blk) argument 454 blk = s1394_used_tree_delete(hal, blk); 456 if (blk == NULL) { 468 s1394_free_list_insert(hal, blk);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/ |
H A D | sol_uverbs_event.c | 659 sol_ofs_uobj_blk_t *blk; local 674 blk = uo_tbl->uobj_tbl_uo_root[i]; 675 if (blk == NULL) { 679 uctxt = (uverbs_uctxt_uobj_t *)blk->ofs_uoblk_blks[j];
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 59 rctlsys_rblk_xfrm(rctl_opaque_t *blk, rctl_dict_entry_t *rde, argument 67 val->rcv_privilege = blk->rcq_privilege; 68 val->rcv_value = blk->rcq_value; 69 val->rcv_flagaction = blk->rcq_local_flagaction; 70 val->rcv_action_signal = blk->rcq_local_signal; 72 blk->rcq_local_recipient_pid; 75 rde->rcd_flagaction = blk->rcq_global_flagaction; 76 rde->rcd_syslog_level = blk->rcq_global_syslog_level; 85 switch (blk->rcq_global_syslog_level) { 108 bzero(blk, sizeo [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | flock.h | 154 struct filock *blk; /* for sleeping locks only */ member in struct:filock::__anon427
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mdoc_macro.c | 899 struct roff_node *blk; /* Our own or a broken block. */ local 918 blk = NULL; 929 if (blk != NULL) { 933 mdoc_macronames[blk->tok]); 934 rew_pending(mdoc, blk); 953 blk = n; 970 if (blk != NULL) { 974 mdoc_macronames[blk->tok]); 975 rew_pending(mdoc, blk); 976 blk 1152 struct roff_node *blk; /* saved block context */ local [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/ |
H A D | efipart.c | 262 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, argument 269 if (blk < 0 || blk > blkio->Media->LastBlock) 271 if ((blk + nblks - 1) > blkio->Media->LastBlock) 276 status = blkio->ReadBlocks(blkio, blkio->Media->MediaId, blk, 282 status = blkio->WriteBlocks(blkio, blkio->Media->MediaId, blk, 295 efipart_strategy(void *devdata, int rw, daddr_t blk, size_t offset, argument 305 return (bcache_strategy(&bcd, rw, blk, offset, size, 310 efipart_realstrategy(void *devdata, int rw, daddr_t blk, size_t offset, argument 320 if (dev == NULL || blk < [all...] |
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/ |
H A D | disk.c | 146 stor_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, argument 168 err = stor_readdev(dev, blk + dev->d_offset, bcount, buf); 219 stor_readdev(struct disk_devdesc *dev, daddr_t blk, size_t size, char *buf) argument 224 debugf("reading blk=%d size=%d @ 0x%08x\n", (int)blk, size, (uint32_t)buf); 226 err = ub_dev_read(SI(dev).handle, buf, size, blk, &real_size);
|
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | setproject.c | 74 build_rctlblk(rctlblk_t *blk, int comp_num, char *component) argument 78 uint_t act = rctlblk_get_local_action(blk, &sig); 87 rctlblk_set_privilege(blk, RCPRIV_BASIC); 93 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGED); 117 rctlblk_set_value(blk, (rctl_qty_t)val); 126 rctlblk_set_local_action(blk, 0, 0); 133 rctlblk_set_local_action(blk, act, sig); 157 rctlblk_set_local_action(blk, act, sig); 181 reinit_blk(rctlblk_t *blk, int local_action) argument 183 rctlblk_set_privilege(blk, RCPRIV_PRIVILEGE 197 rctlblk_t *blk; local [all...] |
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 311 struct header *blk; local 472 blk = freeptr; 474 blk = blk->nextfree; 476 next = blk->nextblk; 488 lastblk = blk; 489 blk->nextblk = next; 491 } while (((char *)(next) - (char *)blk) < nb); 496 if (blk == &(freeptr[1])) { 546 blk 690 struct header *blk; /* real start of block */ local 739 struct header *blk; /* block ptr is contained in */ local 968 struct header *blk, *next; /* ptr to ordinary blocks */ local 1099 struct header *blk, *prev, *next; /* ptr to ordinary blocks */ local [all...] |
/illumos-gate/usr/src/common/crypto/sha1/ |
H A D | sha1.c | 500 SHA1_CTX *ctx, const uint8_t blk[64]) 562 * blk = bcopy(ctx->buf_un.buf32, blk, sizeof (ctx->buf_un.buf32)); 568 if ((uintptr_t)blk & 0x3) { /* not 4-byte aligned? */ 569 bcopy(blk, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32)); 588 w_15 = LOAD_BIG_32(blk + 60); 590 w_14 = LOAD_BIG_32(blk + 56); 592 w_13 = LOAD_BIG_32(blk + 52); 594 w_12 = LOAD_BIG_32(blk + 48); 596 w_11 = LOAD_BIG_32(blk 499 SHA1Transform(uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, SHA1_CTX *ctx, const uint8_t blk[64]) argument 623 SHA1Transform(SHA1_CTX *ctx, const uint8_t blk[64]) argument [all...] |
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 281 ulong_t off, blk; local 295 blk = FI_STARTCLUST(fp); 296 rd = blk == CLUSTER_ROOTDIR ? 1 : 0; 300 blk = FI_STARTCLUST(fp); 301 rd = (blk == CLUSTER_ROOTDIR) ? 1 : 0; 307 blk = fat_map(blk, rd); 310 if (!cluster_valid(blk, rd)) { 312 blk, rd); 318 sector = fat_ctodb(blk, r 403 fat_ctodb(int blk, int r) argument 415 fat_map(int blk, int rootdir) argument [all...] |
/illumos-gate/usr/src/cmd/eject/ |
H A D | eject.c | 460 char *blk; /* block name */ local 480 blk = eject_getfullblkname(path, vm_running); 481 if (blk == NULL) 491 mref.mnt_special = blk; 500 (void) strcpy(busy_base, blk);
|