Home
last modified time | relevance | path

Searched refs:fsize (Results 1 – 25 of 77) sorted by relevance

1234

/illumos-gate/usr/src/test/zfs-tests/tests/functional/compression/
H A Dcompress_004_pos.ksh83 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 Dcompress_003_pos.ksh60 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 Dleb128.c215 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 Dcheck_header.c52 get_one_line(char **bufhead, char **mbuf, size_t *fsize) in get_one_line() argument
63 if (*fsize == 0) { in get_one_line()
69 while (((*fsize) != 0) && (*p++ != '\n')) { in get_one_line()
70 (*fsize)--; in get_one_line()
85 check_gnu(char *addr, size_t fsize) in check_gnu() argument
94 size_t size = fsize; in check_gnu()
314 (void) munmap(addr, fsize); in check_gnu()
326 (void) munmap(addr, fsize); in check_gnu()
H A Dmsgfmt.c205 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()
1034 if (*fsize == 0) { in _mbsntowcs()
1046 (*fsize)--; in _mbsntowcs()
1053 while (*fsize > 0) { in _mbsntowcs()
1076 *fsize -= nb; in _mbsntowcs()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_object_detector.c464 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/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c52 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/test/smbclient-tests/cmd/file_trunc/
H A Dfile_trunc.c47 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/ucbcmd/ls/
H A Dls.c51 off_t fsize; /* file size */ member
348 fp->fsize = stb.st_size; 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()
702 (void) sprintf(fsize, "%8d", 0); in fmtlstuff()
704 (void) sprintf(fsize, p->fsize < 100000000 ? "%8lld" : \ in fmtlstuff()
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Dwrite_audio.c80 off_t fsize; in write_audio() local
93 (void) (h_ptr[i])->bstr_size(h_ptr[i], &fsize); in write_audio()
96 blks_req += 150 + fsize/2352; /* 2 sec gap per track */ in write_audio()
97 if (fsize % 2352) in write_audio()
/illumos-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_region.c61 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/boot/common/
H A Dinstall.c109 ssize_t fsize; in read_metatags() local
112 fsize = read(fd, buf, sizeof(buf)); in read_metatags()
113 if (fsize == -1) in read_metatags()
123 if (fsize == sizeof(buf)) in read_metatags()
126 buf[fsize] = '\0'; in read_metatags()
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c113 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 Dsctp_conn.c304 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 Dfastboot.c103 #define FASTBOOT_PTE_LIST_SIZE(fsize) \ argument
936 uint64_t fsize; in fastboot_load_kernel() local
953 if (kobj_get_filesize(file, &fsize) != 0) { 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()
1027 fb->fb_size = fsize; in fastboot_load_kernel()
1105 fsize, &fb->fb_sections[0], in fastboot_load_kernel()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c84 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 Dhpi_vmac.c132 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 Darith.c197 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 Dfastlz_api.c167 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 Dzfs_copies.kshlib80 typeset -i fsize=${FILESIZE%[m|M]}
83 ((cfactor = used / fsize))
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_partial.ksh70 fsize=$(( floor(LARGESIZE * 0.80) ))
71 cnt=$((fsize / 1048576))
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_diff.c822 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 Dcntrl.c263 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 Dprom_fio.c223 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 Dlibvarpd_persist.c393 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()

1234