Home
last modified time | relevance | path

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

123

/titanic_44/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
/titanic_44/usr/src/cmd/sgs/tools/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 …]
/titanic_44/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.c207 size_t fsize, ln_size, ll; in read_psffm() local
244 fsize = (size_t)statbuf.st_size; in read_psffm()
245 if (fsize == 0) { in read_psffm()
256 addr = mmap(NULL, fsize, PROT_READ, MAP_SHARED, fd, 0); in read_psffm()
264 check_gnu(addr, fsize); in read_psffm()
272 ln_size = _mbsntowcs(&linebufhead, &mbuf, &fsize); in read_psffm()
1027 _mbsntowcs(wchar_t **bufhead, char **mbuf, size_t *fsize) in _mbsntowcs() argument
1036 if (*fsize == 0) { in _mbsntowcs()
1048 (*fsize)--; in _mbsntowcs()
1055 while (*fsize > 0) { in _mbsntowcs()
[all …]
/titanic_44/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()
/titanic_44/usr/src/ucbcmd/ls/
H A Dls.c53 off_t fsize; /* file size */ member
350 fp->fsize = stb.st_size; in gstat()
357 fp->ftype = 'b'; fp->fsize = (off_t)stb.st_rdev; break; in gstat()
359 fp->ftype = 'c'; fp->fsize = (off_t)stb.st_rdev; break; in gstat()
361 fp->ftype = 's'; fp->fsize = 0LL; break; in gstat()
363 fp->ftype = 'p'; fp->fsize = 0LL; break; in gstat()
413 fp->fsize = stb.st_size; in gstat()
685 char gname[32], uname[32], fsize[32], ftime[32]; in fmtlstuff() local
701 (void) sprintf(fsize, "%3ld,%4ld", in fmtlstuff()
702 major(p->fsize), minor(p->fsize)); in fmtlstuff()
[all …]
/titanic_44/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()
/titanic_44/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)
/titanic_44/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 …]
/titanic_44/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()
H A Dsctp_hash.c171 size_t fsize; in cl_sctp_walk_list_stack() local
186 fsize = sizeof (in6_addr_t) * sctp->sctp_nfaddrs; in cl_sctp_walk_list_stack()
189 flist = kmem_alloc(fsize, cansleep ? KM_SLEEP : KM_NOSLEEP); in cl_sctp_walk_list_stack()
195 kmem_free(flist, fsize); in cl_sctp_walk_list_stack()
201 sctp_get_faddr_list(sctp, flist, fsize); in cl_sctp_walk_list_stack()
218 kmem_free(flist, fsize); in cl_sctp_walk_list_stack()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dspa_config.c83 uint64_t fsize; in spa_config_load() local
100 if (kobj_get_filesize(file, &fsize) != 0) in spa_config_load()
103 buf = kmem_alloc(fsize, KM_SLEEP); in spa_config_load()
108 if (kobj_read_file(file, buf, fsize, 0) < 0) in spa_config_load()
114 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0) in spa_config_load()
139 kmem_free(buf, fsize); in spa_config_load()
/titanic_44/usr/src/uts/i86pc/os/
H A Dfastboot.c103 #define FASTBOOT_PTE_LIST_SIZE(fsize) \ argument
104 P2ROUNDUP((((fsize) >> PAGESHIFT) + 1) * sizeof (x86pte_t), PAGESIZE)
948 uint64_t fsize; in fastboot_load_kernel() local
965 if (kobj_get_filesize(file, &fsize) != 0) { in fastboot_load_kernel()
972 fsize_roundup = P2ROUNDUP_TYPED(fsize, PAGESIZE, size_t); in fastboot_load_kernel()
1020 dma_attr.dma_attr_sgllen = (fsize / PAGESIZE) + in fastboot_load_kernel()
1021 (((fsize % PAGESIZE) == 0) ? 0 : 1); in fastboot_load_kernel()
1023 if ((buf = contig_alloc(fsize, &dma_attr, PAGESIZE, 0)) in fastboot_load_kernel()
1025 cmn_err(CE_NOTE, fastboot_enomem_msg, fsize, "64G"); in fastboot_load_kernel()
1031 if (kobj_read_file(file, (char *)va, fsize, 0) < 0) { in fastboot_load_kernel()
[all …]
/titanic_44/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()
/titanic_44/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DRootDialog.java115 Dimension fsize = frame.size(); in getDialogLocation() local
118 p.x += (fsize.width - dsize.width)/2; in getDialogLocation()
119 p.y += (fsize.height - dsize.height)/2; in getDialogLocation()
/titanic_44/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))
/titanic_44/usr/src/lib/libshell/common/sh/
H A Darith.c162 int fsize = str- (char*)(*ptr); in arith() local
166 if(fsize<=(sizeof(tp->fname)-2)) for(tp=shtab_math; *tp->fname; tp++) in arith()
170 if(tp->fname[1]==c && tp->fname[fsize+1]==0 && strncmp(&tp->fname[1],*ptr,fsize)==0) in arith()
/titanic_44/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()
/titanic_44/usr/src/cmd/fs.d/cachefs/common/
H A Dsubr.c414 int fsize; in cachefs_resource_size() local
416 fsize = MAXBSIZE; in cachefs_resource_size()
418 rinfop->r_ptroffset = fsize; in cachefs_resource_size()
420 fsize += MAXBSIZE * (maxinodes / CACHEFS_RLPMBS); in cachefs_resource_size()
422 fsize += MAXBSIZE; in cachefs_resource_size()
424 rinfop->r_fsize = fsize; in cachefs_resource_size()
/titanic_44/usr/src/cmd/bnu/
H A Dcntrl.c265 char fsize[NAMESIZE]; /* holds file size/checkpoint string */ in cntrl() local
358 (void) sprintf(fsize, "0x%lx", stbuf.st_size); in cntrl()
359 W_FSIZE = fsize; /* set file size in vector */ in cntrl()
507 sprintf(fsize, "0x%lx", startp); in cntrl()
508 W_POINT = fsize; /* set start point in vector */ in cntrl()
1030 *fsize = '\0'; in cntrl()
1031 sscanf(&msg[2], "%*o %s", fsize); in cntrl()
1032 if (*fsize != '\0') { in cntrl()
1033 actualsize = strtol(fsize, (char **) 0, FLENRADIX); in cntrl()
/titanic_44/usr/src/uts/common/sys/
H A Dbootstat.h75 size_t fsize; member
/titanic_44/usr/src/lib/libbsm/common/
H A Ddevalloc.c80 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()
/titanic_44/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; in main()
720 if (fsize < (1 << 12)) in main()
722 else if (fsize < (1 << 13)) in main()
724 else if (fsize < (1 << 14)) in main()
726 else if (fsize < (1 << 15)) in main()
728 else if (fsize < 47000) in main()
/titanic_44/usr/src/cmd/mailx/
H A Dsend.c425 if (fsize(mtf) == 0 && hp->h_subject == NOSTR) { in mail1()
535 puthead(hp, fp, GMASK|GCLEN, fsize(mtf) - textpos); in mail1()
625 puthead(hp, nfo, (GMASK & ~GBCC) | GCLEN, fsize(fi)); in infix()
750 puthead(hp, fo, GMASK|GCLEN, fsize(fi) - textpos); in savemail()

123