| /src/tests/sys/cddl/zfs/tests/compression/ |
| H A D | compress_004_pos.ksh | 91 typeset -i fsize=0 112 (( fsize = $RANDOM )) 113 if (( fsize > blksize )); then 114 (( fsize = fsize % blksize )) 116 if (( (fsize % 2) == 0 )); then 118 (( fsize = fsize + 1 )) 120 create_free_testing $fsize $single_blk_file 133 (( fsize = blknum * blksize )) 134 create_free_testing $fsize $multi_blk_file
|
| H A D | compress_003_pos.ksh | 68 typeset -i fsize=0 94 (( fsize = offset )) 95 log_must $MKFILE $fsize $single_blk_file 96 (( fsize = blksize + offset )) 97 log_must $MKFILE $fsize $multi_blk_file
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/compression/ |
| H A D | compress_004_pos.ksh | 91 typeset -i fsize=0 112 (( fsize = $RANDOM )) 113 if (( fsize > blksize )); then 114 (( fsize = fsize % blksize )) 116 if (( (fsize % 2) == 0 )); then 118 (( fsize = fsize + 1 )) 120 create_free_testing $fsize $single_blk_file 133 (( fsize = blknum * blksize )) 134 create_free_testing $fsize $multi_blk_file
|
| H A D | compress_003_pos.ksh | 61 typeset -i fsize=0 87 (( fsize = offset )) 88 log_must mkfile $fsize $single_blk_file 89 (( fsize = blksize + offset )) 90 log_must mkfile $fsize $multi_blk_file
|
| /src/tests/sys/fs/fusefs/ |
| H A D | lseek.cc | 60 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local 64 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 93 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local 97 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 127 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local 135 out.body.entry.attr.size = fsize; in TEST_F() 162 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local 165 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 196 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local 199 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() [all …]
|
| H A D | fallocate.cc | 180 off_t fsize = 1 << 20; in TEST_F() local 185 uint64_t off1 = fsize; in TEST_F() 187 off_t off2 = fsize / 2; in TEST_F() 191 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 225 uint64_t fsize = 1 << 20; in TEST_F() local 228 uint64_t off1 = fsize / 2; in TEST_F() 231 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F() 241 expect_fallocate(ino, fsize, len, 0, 0); in TEST_F() 260 EXPECT_EQ(0, posix_fallocate(fd, fsize, len)); in TEST_F() 270 uint64_t fsize = 2000; in TEST_F() local [all …]
|
| H A D | default_permissions.cc | 513 off_t fsize = 16; in TEST_F() local 520 FuseTest::expect_lookup(RELPATH_IN, ino_in, S_IFREG | oldmode, fsize, 1, in TEST_F() 523 FuseTest::expect_lookup(RELPATH_OUT, ino_out, S_IFREG | oldmode, fsize, in TEST_F() 527 expect_chmod(ino_out, newmode, fsize); in TEST_F() 557 off_t fsize = 16; in TEST_F() local 564 FuseTest::expect_lookup(RELPATH_IN, ino_in, S_IFREG | oldmode, fsize, 1, in TEST_F() 567 FuseTest::expect_lookup(RELPATH_OUT, ino_out, S_IFREG | oldmode, fsize, in TEST_F() 571 expect_chmod(ino_out, newmode, fsize); in TEST_F() 848 off_t fsize = 16; in TEST_F() local 854 FuseTest::expect_lookup(RELPATH, ino, S_IFREG | oldmode, fsize, in TEST_F() [all …]
|
| /src/contrib/elftoolchain/libelf/ |
| H A D | libelf_open.c | 129 size_t fsize; in _libelf_open_object() local 141 fsize = (size_t) sb.st_size; in _libelf_open_object() 179 if (fsize == 0) { in _libelf_open_object() 194 m = mmap(NULL, fsize, PROT_READ, MAP_PRIVATE, fd, (off_t) 0); in _libelf_open_object() 207 if ((m = malloc(fsize)) == NULL) { in _libelf_open_object() 212 if (read(fd, m, fsize) != (ssize_t) fsize) { in _libelf_open_object() 220 } else if ((m = _libelf_read_special_file(fd, &fsize)) != NULL) in _libelf_open_object() 225 if ((e = _libelf_memory(m, fsize, reporterror)) == NULL) { in _libelf_open_object() 232 (void) munmap(m, fsize); in _libelf_open_object()
|
| H A D | libelf_fsize.m4 | 133 struct fsize { 138 static struct fsize fsize[ELF_T_NUM] = { 153 sz = ec == ELFCLASS64 ? fsize[t].fsz64 : fsize[t].fsz32;
|
| /src/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | xattrtest.c | 357 size_t fsize; in create_files() local 359 fsize = PATH_MAX; in create_files() 360 file = malloc(fsize); in create_files() 371 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in create_files() 448 size_t fsize; in setxattrs() local 458 fsize = PATH_MAX; in setxattrs() 459 file = malloc(fsize); in setxattrs() 470 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in setxattrs() 525 size_t fsize; in getxattrs() local 546 fsize = PATH_MAX; in getxattrs() [all …]
|
| H A D | truncate_test.c | 28 static long fsize = FSIZE; variable 56 if (ftruncate(fd, fsize) < 0) { in main() 65 if (truncate(filename, fsize) < 0) { in main() 83 fsize = atoi(optarg); in parse_options()
|
| /src/tests/sys/cddl/zfs/bin/ |
| H A D | file_trunc.c | 48 static long fsize = FSIZE; variable 105 count = fsize / bsize; in parse_options() 118 fsize = atoi(optarg); in parse_options() 181 roffset = random() % fsize; in do_write() 227 roffset = random() % fsize; in do_trunc()
|
| H A D | mkfile.c | 167 unsigned long long fsize; in main() local 194 if ((fsize = getsize(*argv)) == 0) { in main() 202 if (create_file(*argv, fsize) == -1) { in main()
|
| /src/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
| H A D | file_trunc.c | 53 static long fsize = FSIZE; variable 108 count = fsize / bsize; in parse_options() 121 fsize = atoi(optarg); in parse_options() 184 roffset = random() % fsize; in do_write() 231 roffset = random() % fsize; in do_trunc()
|
| /src/usr.sbin/bsdinstall/distfetch/ |
| H A D | distfetch.c | 122 off_t fsize; in fetch_files() local 184 fsize = 0; in fetch_files() 203 fsize += chunk; in fetch_files() 210 (fsize * 100) / ustat.size : 0; in fetch_files() 216 perc = (fsize * 100) / ustat.size; in fetch_files() 228 if (ustat.size > 0 && fsize < ustat.size) { in fetch_files()
|
| /src/sbin/newfs/ |
| H A D | newfs.c | 90 int fsize = 0; /* fragment size */ variable 224 rval = expand_number_int(optarg, &fsize); in main() 225 if (rval < 0 || fsize <= 0) in main() 373 if (fsize == 0) in main() 374 fsize = pp->p_fsize; in main() 382 if (fsize <= 0) in main() 383 fsize = MAX(DFL_FRAGSIZE, sectorsize); in main() 385 bsize = MIN(DFL_BLKSIZE, 8 * fsize); in main()
|
| /src/contrib/file/src/ |
| H A D | readelf.c | 352 int num, size_t size, off_t fsize, int *flags, uint16_t *notecount) in dophn_core() argument 390 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in dophn_core() 416 ph_num, fsize); in dophn_core() 1005 off_t off, int num, off_t fsize, uint64_t virtaddr) in get_offset_from_virtaddr() argument 1026 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in get_offset_from_virtaddr() 1040 off_t fsize, uint64_t virtaddr, char *buf, ssize_t buflen) in get_string_on_virtaddr() argument 1049 fsize, virtaddr); in get_string_on_virtaddr() 1077 int fd, off_t ph_off, int ph_num, off_t fsize) in do_auxv_note() argument 1159 ph_off, ph_num, fsize, xauxv_val, buf, sizeof(buf)); in do_auxv_note() 1217 int fd, off_t ph_off, int ph_num, off_t fsize) in donote() argument [all …]
|
| H A D | elfclass.h | 46 fsize, &flags, ¬ecount) == -1) 61 fsize, shnum, &flags, ¬ecount) == -1) 71 fsize, elf_getu16(swap, elfhdr.e_machine),
|
| /src/tests/sys/cddl/zfs/tests/hotplug/ |
| H A D | hotplug.kshlib | 326 typeset -i fsize 335 fsize=$($LS -ld $FILE_EVENT_ID | $AWK '{print $5}') 339 if (( fsize != 0 )); then 344 if (( fsize == 0 )); then
|
| /src/sys/fs/udf/ |
| H A D | udf_vnops.c | 189 uint64_t fsize; in udf_open() local 191 fsize = le64toh(np->fentry->inf_len); in udf_open() 192 if (fsize > OFF_MAX) in udf_open() 194 vnode_create_vobject(ap->a_vp, fsize, ap->a_td); in udf_open() 455 off_t diff, fsize; in udf_read() local 468 fsize = le32toh(fentry->l_ad); in udf_read() 471 diff = fsize - uio->uio_offset; in udf_read() 485 fsize = len; in udf_read() 492 diff = fsize - uio->uio_offset; in udf_read() 500 if (lblktosize(udfmp, rablock) < fsize) { in udf_read() [all …]
|
| /src/crypto/openssl/crypto/ |
| H A D | getenv.c | 28 int rsize, fsize; in ossl_safe_getenv() local 48 fsize = MultiByteToWideChar(curacp, dwFlags, name, -1, namew, rsize); in ossl_safe_getenv() 50 if (fsize > 0) in ossl_safe_getenv()
|
| /src/contrib/processor-trace/libipt/src/ |
| H A D | pt_section_file.c | 112 long begin, end, fsize; in pt_sec_file_map() local 143 fsize = ftell(file); in pt_sec_file_map() 144 if (fsize < 0) in pt_sec_file_map() 147 if (fsize < end) in pt_sec_file_map()
|
| H A D | pt_section.c | 44 uint64_t fsize; in pt_mk_section() local 65 errcode = pt_section_mk_status(&status, &fsize, fname); in pt_mk_section() 70 if (fsize <= offset) { in pt_mk_section() 76 fsize -= offset; in pt_mk_section() 77 if (fsize < size) in pt_mk_section() 78 size = fsize; in pt_mk_section()
|
| /src/stand/common/ |
| H A D | install.c | 106 ssize_t fsize; in read_metatags() local 109 fsize = read(fd, buf, sizeof(buf)); in read_metatags() 110 if (fsize == -1) in read_metatags() 120 if (fsize == sizeof(buf)) in read_metatags() 123 buf[fsize] = '\0'; in read_metatags()
|
| /src/contrib/less/ |
| H A D | ch.c | 61 POSITION fsize; member 70 #define ch_fsize thisfile->fsize 626 POSITION fsize; in ch_resize() local 630 fsize = filesize(ch_file); in ch_resize() 631 if (fsize != NULL_POSITION) in ch_resize() 632 ch_fsize = fsize; in ch_resize() 869 thisfile->fsize = NULL_POSITION; in ch_init() 965 fs->fsize, fs->block, fs->offset);
|