/illumos-gate/usr/src/test/zfs-tests/tests/functional/compression/ |
H A D | compress_004_pos.ksh | 83 typeset -i fsize=0 104 (( fsize = $RANDOM )) 105 if (( fsize > blksize )); then 106 (( fsize = fsize % blksize )) 108 if (( (fsize % 2) == 0 )); then 110 (( fsize = fsize + 1 )) 112 create_free_testing $fsize $single_blk_file 125 (( fsize = blknum * blksize )) 126 create_free_testing $fsize $multi_blk_file
|
H A D | compress_003_pos.ksh | 60 typeset -i fsize=0 86 (( fsize = offset )) 87 log_must mkfile $fsize $single_blk_file 88 (( fsize = blksize + offset )) 89 log_must mkfile $fsize $multi_blk_file
|
/illumos-gate/usr/src/cmd/sgs/common/ |
H A D | leb128.c | 215 uint_t fsize; in dwarf_ehe_extract() local 233 fsize = wordsize; in dwarf_ehe_extract() 237 fsize = 8; in dwarf_ehe_extract() 241 fsize = 4; in dwarf_ehe_extract() 245 fsize = 2; in dwarf_ehe_extract() 263 for (cnt = 0; cnt < fsize; in dwarf_ehe_extract() 278 for (cnt = 0; cnt < fsize; in dwarf_ehe_extract() 285 result |= val << ((fsize - cnt - 1) * 8); in dwarf_ehe_extract() 292 (fsize < sizeof (uint64_t))) { in dwarf_ehe_extract() 296 bitshift = (sizeof (uint64_t) - fsize) * 8; in dwarf_ehe_extract() [all …]
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | check_header.c | 50 get_one_line(char **bufhead, char **mbuf, size_t *fsize) in get_one_line() argument 61 if (*fsize == 0) { in get_one_line() 67 while (((*fsize) != 0) && (*p++ != '\n')) { in get_one_line() 68 (*fsize)--; in get_one_line() 83 check_gnu(char *addr, size_t fsize) in check_gnu() argument 92 size_t size = fsize; in check_gnu() 312 (void) munmap(addr, fsize); in check_gnu() 324 (void) munmap(addr, fsize); in check_gnu()
|
H A D | msgfmt.c | 205 size_t fsize, ln_size, ll; in read_psffm() local 242 fsize = (size_t)statbuf.st_size; in read_psffm() 243 if (fsize == 0) { in read_psffm() 254 addr = mmap(NULL, fsize, PROT_READ, MAP_SHARED, fd, 0); in read_psffm() 262 check_gnu(addr, fsize); in read_psffm() 270 ln_size = _mbsntowcs(&linebufhead, &mbuf, &fsize); in read_psffm() 1025 _mbsntowcs(wchar_t **bufhead, char **mbuf, size_t *fsize) in _mbsntowcs() argument 1034 if (*fsize == 0) { in _mbsntowcs() 1046 (*fsize)--; in _mbsntowcs() 1053 while (*fsize > 0) { in _mbsntowcs() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_object_detector.c | 464 off_t fsize = 0; in dwarf_object_detector_fd() local 468 fsize = lseek(fd,0L,SEEK_END); in dwarf_object_detector_fd() 469 if(fsize < 0) { in dwarf_object_detector_fd() 473 if (fsize <= (off_t)readlen) { in dwarf_object_detector_fd() 499 *filesize = (size_t)fsize; in dwarf_object_detector_fd() 504 *filesize = (size_t)fsize; in dwarf_object_detector_fd() 509 *filesize = (size_t)fsize; in dwarf_object_detector_fd() 512 res = is_pe_object(fd,fsize,endian,offsetsize,errcode); in dwarf_object_detector_fd() 515 *filesize = (size_t)fsize; in dwarf_object_detector_fd() 520 res = elf_is_custom_format(&h,readlen,&fsize,endian,offsetsize,errcode); in dwarf_object_detector_fd() [all …]
|
/illumos-gate/usr/src/ucbcmd/ls/ |
H A D | ls.c | 51 off_t fsize; /* file size */ member 348 fp->fsize = stb.st_size; in gstat() 355 fp->ftype = 'b'; fp->fsize = (off_t)stb.st_rdev; break; in gstat() 357 fp->ftype = 'c'; fp->fsize = (off_t)stb.st_rdev; break; in gstat() 359 fp->ftype = 's'; fp->fsize = 0LL; break; in gstat() 361 fp->ftype = 'p'; fp->fsize = 0LL; break; in gstat() 411 fp->fsize = stb.st_size; in gstat() 683 char gname[32], uname[32], fsize[32], ftime[32]; in fmtlstuff() local 699 (void) sprintf(fsize, "%3ld,%4ld", in fmtlstuff() 700 major(p->fsize), minor(p->fsize)); in fmtlstuff() [all …]
|
/illumos-gate/usr/src/test/smbclient-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 47 static long fsize = FSIZE; variable 104 count = fsize / bsize; in parse_options() 117 fsize = atoi(optarg); in parse_options() 180 roffset = random() % fsize; in do_write() 227 roffset = random() % fsize; in do_trunc()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 52 static long fsize = FSIZE; variable 107 count = fsize / bsize; in parse_options() 120 fsize = atoi(optarg); in parse_options() 183 roffset = random() % fsize; in do_write() 229 roffset = random() % fsize; in do_trunc()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | write_audio.c | 78 off_t fsize; in write_audio() local 91 (void) (h_ptr[i])->bstr_size(h_ptr[i], &fsize); in write_audio() 94 blks_req += 150 + fsize/2352; /* 2 sec gap per track */ in write_audio() 95 if (fsize % 2352) in write_audio()
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_region.c | 61 size_t fsize, total; local 110 total += fsize = __db_shsizeof(bhp); 111 if (fsize >= len || total >= 3 * len) 168 total += fsize = __db_shsizeof(bhp); 169 if (fsize == len) { 186 if (fsize >= len || total >= 3 * len)
|
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/ |
H A D | newfs.c | 113 static int fsize = 0; /* fragment size */ variable 261 fsize = number("fragsize", optarg, NR_NONE, in main() 265 if (fsize < DEV_BSIZE) in main() 510 fsize = bsize; in main() 513 if (fsize == 0) in main() 514 fsize = DESFRAGSIZE; in main() 517 if (!POWEROF2(fsize)) { in main() 519 "newfs: fragment size must a power of 2, not %d\n"), fsize); in main() 520 fsize = bsize/8; in main() 522 "newfs: fragsize reset to %ld\n"), fsize); in main() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_conn.c | 304 size_t fsize; in sctp_conn_request() local 307 fsize = sizeof (in6_addr_t) * eager->sctp_nfaddrs; in sctp_conn_request() 310 flist = kmem_alloc(fsize, KM_NOSLEEP); in sctp_conn_request() 315 kmem_free(flist, fsize); in sctp_conn_request() 323 sctp_get_faddr_list(eager, flist, fsize); in sctp_conn_request() 627 size_t fsize; in sctp_connect() local 629 fsize = sizeof (in6_addr_t) * sctp->sctp_nfaddrs; in sctp_connect() 632 flist = kmem_alloc(fsize, KM_SLEEP); in sctp_connect() 635 sctp_get_faddr_list(sctp, flist, fsize); in sctp_connect()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | fastboot.c | 103 #define FASTBOOT_PTE_LIST_SIZE(fsize) \ argument 104 P2ROUNDUP((((fsize) >> PAGESHIFT) + 1) * sizeof (x86pte_t), PAGESIZE) 936 uint64_t fsize; in fastboot_load_kernel() local 953 if (kobj_get_filesize(file, &fsize) != 0) { in fastboot_load_kernel() 960 fsize_roundup = P2ROUNDUP_TYPED(fsize, PAGESIZE, size_t); in fastboot_load_kernel() 1008 dma_attr.dma_attr_sgllen = (fsize / PAGESIZE) + in fastboot_load_kernel() 1009 (((fsize % PAGESIZE) == 0) ? 0 : 1); in fastboot_load_kernel() 1011 if ((buf = contig_alloc(fsize, &dma_attr, PAGESIZE, 0)) in fastboot_load_kernel() 1013 cmn_err(CE_NOTE, fastboot_enomem_msg, fsize, "64G"); in fastboot_load_kernel() 1019 if (kobj_read_file(file, (char *)va, fsize, 0) < 0) { in fastboot_load_kernel() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 84 uint64_t fsize; in spa_config_load() local 101 if (kobj_get_filesize(file, &fsize) != 0) in spa_config_load() 104 buf = kmem_alloc(fsize, KM_SLEEP); in spa_config_load() 109 if (kobj_read_file(file, buf, fsize, 0) < 0) in spa_config_load() 115 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0) in spa_config_load() 140 kmem_free(buf, fsize); in spa_config_load()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_vmac.c | 132 uint16_t fsize; in hpi_vmac_rx_set_framesize() local 141 fsize = 1; in hpi_vmac_rx_set_framesize() 143 fsize = max_frame_length; in hpi_vmac_rx_set_framesize() 145 cfg.bits.rx_max_frame_length = fsize; in hpi_vmac_rx_set_framesize()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | arith.c | 197 static Math_f sh_mathstdfun(const char *fname, size_t fsize, short * nargs) in sh_mathstdfun() argument 205 if(tp->fname[1]==c && tp->fname[fsize+1]==0 && strncmp(&tp->fname[1],fname,fsize)==0) in sh_mathstdfun() 273 int fsize = str- (char*)(*ptr); in arith() local 278 sfprintf(shp->stk,".sh.math.%.*s%c",fsize,*ptr,0); in arith() 286 if(fsize<=(sizeof(tp->fname)-2)) in arith() 287 lvalue->fun = (Math_f)sh_mathstdfun(*ptr,fsize,&lvalue->nargs); in arith()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | fastlz_api.c | 167 unsigned long fsize = pin_buff->size; in write_compression_hdr() local 187 buffer[0] = fsize & 255; in write_compression_hdr() 188 buffer[1] = (fsize >> 8) & 255; in write_compression_hdr() 189 buffer[2] = (fsize >> 16) & 255; in write_compression_hdr() 190 buffer[3] = (fsize >> 24) & 255; in write_compression_hdr()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies.kshlib | 76 typeset -i fsize=${FILESIZE%[m|M]} 79 ((cfactor = used / fsize))
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/ |
H A D | zpool_trim_partial.ksh | 70 fsize=$(( floor(LARGESIZE * 0.80) )) 71 cnt=$((fsize / 1048576))
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_diff.c | 822 size_t fsize, rsize; in ctf_diff_init() local 832 fsize = sizeof (ctf_id_t) * ifp->ctf_typemax; in ctf_diff_init() 835 fsize += CTF_CHILD_START * sizeof (ctf_id_t); in ctf_diff_init() 839 cds->cds_forward = ctf_alloc(fsize); in ctf_diff_init() 844 cds->cds_fsize = fsize; in ctf_diff_init() 847 ctf_free(cds->cds_forward, fsize); in ctf_diff_init() 852 bzero(cds->cds_forward, fsize); in ctf_diff_init() 904 size_t fsize, rsize; in ctf_diff_fini() local 912 fsize = sizeof (ctf_id_t) * cds->cds_ifp->ctf_typemax; in ctf_diff_fini() 915 fsize += CTF_CHILD_START * sizeof (ctf_id_t); in ctf_diff_fini()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | cntrl.c | 263 char fsize[NAMESIZE]; /* holds file size/checkpoint string */ in cntrl() local 356 (void) sprintf(fsize, "0x%lx", stbuf.st_size); in cntrl() 357 W_FSIZE = fsize; /* set file size in vector */ in cntrl() 505 sprintf(fsize, "0x%lx", startp); in cntrl() 506 W_POINT = fsize; /* set start point in vector */ in cntrl() 1028 *fsize = '\0'; in cntrl() 1029 sscanf(&msg[2], "%*o %s", fsize); in cntrl() 1030 if (*fsize != '\0') { in cntrl() 1031 actualsize = strtol(fsize, (char **) 0, FLENRADIX); in cntrl()
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_fio.c | 223 prom_compinfo(ihandle_t fsih, int fd, int *iscmp, size_t *fsize, size_t *bsize) in prom_compinfo() argument 244 *fsize = p1275_cell2uint(ci[8]); /* Res3: fsize */ in prom_compinfo()
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_persist.c | 393 size_t fsize; in libvarpd_persist_restore_one() local 405 fsize = st.st_size - sizeof (varpd_persist_header_t); in libvarpd_persist_restore_one() 426 md5_calc(md5, datap, fsize); in libvarpd_persist_restore_one() 433 err = nvlist_unpack(datap, fsize, &nvl, 0); in libvarpd_persist_restore_one()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 80 int nlen, plen, slen, lineno, fsize; in da_check_logindevperm() local 98 fsize = f_stat.st_size; in da_check_logindevperm() 99 if ((fbuf = (char *)malloc(fsize)) == NULL) { in da_check_logindevperm() 131 if (slen >= fsize) { in da_check_logindevperm() 183 int fsize = 0; in _da_read_file() local 197 fsize = f_stat.st_size; in _da_read_file() 217 if ((*fbuf = malloc(fsize)) == NULL) { in _da_read_file() 222 if (read(fd, *fbuf, fsize) < fsize) { in _da_read_file() 243 fsize = f_stat.st_size; in _da_read_file() 250 return (fsize); in _da_read_file()
|