Searched refs:fsize (Results 1 - 25 of 70) sorted by relevance

123

/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
109 #make sure fsize is non-power-of-2
110 (( fsize = fsize + 1 ))
112 create_free_testing $fsize
[all...]
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/tools/common/
H A Dleb128.c215 uint_t fsize; local
233 fsize = wordsize;
237 fsize = 8;
241 fsize = 4;
245 fsize = 2;
263 for (cnt = 0; cnt < fsize;
278 for (cnt = 0; cnt < fsize;
285 result |= val << ((fsize - cnt - 1) * 8);
292 (fsize < sizeof (uint64_t))) {
296 bitshift = (sizeof (uint64_t) - fsize) *
[all...]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dcheck_header.c52 get_one_line(char **bufhead, char **mbuf, size_t *fsize) argument
63 if (*fsize == 0) {
69 while (((*fsize) != 0) && (*p++ != '\n')) {
70 (*fsize)--;
85 check_gnu(char *addr, size_t fsize) argument
94 size_t size = fsize;
314 (void) munmap(addr, fsize);
326 (void) munmap(addr, fsize);
H A Dmsgfmt.c207 size_t fsize, ln_size, ll; local
244 fsize = (size_t)statbuf.st_size;
245 if (fsize == 0) {
256 addr = mmap(NULL, fsize, PROT_READ, MAP_SHARED, fd, 0);
264 check_gnu(addr, fsize);
272 ln_size = _mbsntowcs(&linebufhead, &mbuf, &fsize);
1014 * **fsize - address of a size_t variable that contains
1023 * **fsize - *fsize will be set to the size of the unread
1027 _mbsntowcs(wchar_t **bufhead, char **mbuf, size_t *fsize) argument
[all...]
/illumos-gate/usr/src/cmd/cdrw/
H A Dwrite_audio.c80 off_t fsize; local
93 (void) (h_ptr[i])->bstr_size(h_ptr[i], &fsize);
96 blks_req += 150 + fsize/2352; /* 2 sec gap per track */
97 if (fsize % 2352)
/illumos-gate/usr/src/uts/common/sys/
H A Dbootstat.h75 size_t fsize; member in struct:compinfo
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c52 static long fsize = FSIZE; variable
107 count = fsize / bsize;
120 fsize = atoi(optarg);
183 roffset = random() % fsize;
229 roffset = random() % fsize;
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c53 off_t fsize; /* file size */ member in struct:afile
350 fp->fsize = stb.st_size;
357 fp->ftype = 'b'; fp->fsize = (off_t)stb.st_rdev; break;
359 fp->ftype = 'c'; fp->fsize = (off_t)stb.st_rdev; break;
361 fp->ftype = 's'; fp->fsize = 0LL; break;
363 fp->ftype = 'p'; fp->fsize = 0LL; break;
413 fp->fsize = stb.st_size;
685 char gname[32], uname[32], fsize[32], ftime[32]; local
688 /* type mode uname gname fsize ftime */
699 /* get fsize */
[all...]
/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/sys/boot/common/
H A Dinstall.c109 ssize_t fsize; local
112 fsize = read(fd, buf, sizeof(buf));
113 if (fsize == -1)
123 if (fsize == sizeof(buf))
126 buf[fsize] = '\0';
/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))
H A Dzfs_copies_002_pos.ksh77 fsize=${FILESIZE%[m|M]}
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_vmac.c132 uint16_t fsize; local
141 fsize = 1;
143 fsize = max_frame_length;
145 cfg.bits.rx_max_frame_length = fsize;
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_conn.c304 size_t fsize; local
307 fsize = sizeof (in6_addr_t) * eager->sctp_nfaddrs;
310 flist = kmem_alloc(fsize, KM_NOSLEEP);
315 kmem_free(flist, fsize);
323 sctp_get_faddr_list(eager, flist, fsize);
627 size_t fsize; local
629 fsize = sizeof (in6_addr_t) * sctp->sctp_nfaddrs;
632 flist = kmem_alloc(fsize, KM_SLEEP);
635 sctp_get_faddr_list(sctp, flist, fsize);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c83 uint64_t fsize; local
100 if (kobj_get_filesize(file, &fsize) != 0)
103 buf = kmem_alloc(fsize, KM_SLEEP);
108 if (kobj_read_file(file, buf, fsize, 0) < 0)
114 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0)
139 kmem_free(buf, fsize);
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfastboot.c103 #define FASTBOOT_PTE_LIST_SIZE(fsize) \
104 P2ROUNDUP((((fsize) >> PAGESHIFT) + 1) * sizeof (x86pte_t), PAGESIZE)
948 uint64_t fsize; local
965 if (kobj_get_filesize(file, &fsize) != 0) {
972 fsize_roundup = P2ROUNDUP_TYPED(fsize, PAGESIZE, size_t);
1020 dma_attr.dma_attr_sgllen = (fsize / PAGESIZE) +
1021 (((fsize % PAGESIZE) == 0) ? 0 : 1);
1023 if ((buf = contig_alloc(fsize, &dma_attr, PAGESIZE, 0))
1025 cmn_err(CE_NOTE, fastboot_enomem_msg, fsize, "64G");
1031 if (kobj_read_file(file, (char *)va, fsize,
[all...]
/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) argument
244 *fsize = p1275_cell2uint(ci[8]); /* Res3: fsize */
/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,
265 if (fsize < DEV_BSIZE)
300 /* xxx ought to test against fsize */
510 fsize = bsize;
513 if (fsize == 0)
514 fsize = DESFRAGSIZE;
517 if (!POWEROF2(fsize)) {
519 "newfs: fragment size must a power of 2, not %d\n"), fsize);
520 fsize
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Darith.c162 int fsize = str- (char*)(*ptr); local
166 if(fsize<=(sizeof(tp->fname)-2)) for(tp=shtab_math; *tp->fname; tp++)
170 if(tp->fname[1]==c && tp->fname[fsize+1]==0 && strncmp(&tp->fname[1],*ptr,fsize)==0)
/illumos-gate/usr/src/cmd/compress/
H A Dcompress.c146 static off_t fsize; /* file size of input file */ variable
710 fsize = (off_t)statbuf.st_size;
720 if (fsize < (1 << 12))
722 else if (fsize < (1 << 13))
724 else if (fsize < (1 << 14))
726 else if (fsize < (1 << 15))
728 else if (fsize < 47000)
/illumos-gate/usr/src/cmd/bnu/
H A Dcntrl.c265 char fsize[NAMESIZE]; /* holds file size/checkpoint string */ local
358 (void) sprintf(fsize, "0x%lx", stbuf.st_size);
359 W_FSIZE = fsize; /* set file size in vector */
507 sprintf(fsize, "0x%lx", startp);
508 W_POINT = fsize; /* set start point in vector */
1030 *fsize = '\0';
1031 sscanf(&msg[2], "%*o %s", fsize);
1032 if (*fsize != '\0') {
1033 actualsize = strtol(fsize, (char **) 0, FLENRADIX);
/illumos-gate/usr/src/cmd/mailx/
H A Dedit.c220 size = fsize(otf);
H A Dsend.c425 if (fsize(mtf) == 0 && hp->h_subject == NOSTR) {
535 puthead(hp, fp, GMASK|GCLEN, fsize(mtf) - textpos);
625 puthead(hp, nfo, (GMASK & ~GBCC) | GCLEN, fsize(fi));
750 puthead(hp, fo, GMASK|GCLEN, fsize(fi) - textpos);
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dgettext.h98 size_t fsize; /* size of the GNU mo file */ member in struct:__anon124

Completed in 157 milliseconds

123