Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 59) sorted by relevance

123

/f-stack/dpdk/drivers/common/dpaax/
H A Ddpaax_iova_table.c102 DPAAX_DEBUG("Size of device-tree mem node: %" PRIu64, statbuf.st_size); in read_memory_node()
103 if (statbuf.st_size > MEM_NODE_FILE_LEN) { in read_memory_node()
108 ret = read(fd, file_data, statbuf.st_size > MEM_NODE_FILE_LEN ? in read_memory_node()
109 MEM_NODE_FILE_LEN : statbuf.st_size); in read_memory_node()
119 *count = (statbuf.st_size / 16); in read_memory_node()
120 if ((*count) <= 0 || (statbuf.st_size % 16 != 0)) { in read_memory_node()
122 statbuf.st_size); in read_memory_node()
134 for (i = 0, j = 0; i < (statbuf.st_size) && j < (*count); i += 16, j++) { in read_memory_node()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dstat.h50 (void) ioctl(fd, DIOCGMEDIASIZE, &sb->st_size); in fstat64()
67 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0) in fstat64_blk()
/f-stack/freebsd/sys/
H A Dstat.h113 __int32_t st_size; /* file size, in bytes */ member
136 off_t st_size; /* file size, in bytes */ member
186 off_t st_size; /* file size, in bytes */ member
206 off_t st_size; /* file size, in bytes */ member
H A Delf32.h200 Elf32_Word st_size; /* Size of associated object. */ member
H A Delf64.h210 Elf64_Xword st_size; /* Size of associated object. */ member
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_files.h187 #define ngx_file_size(sb) (sb)->st_size
188 #define ngx_file_fs_size(sb) ngx_max((sb)->st_size, (sb)->st_blocks * 512)
280 #define ngx_de_size(dir) (dir)->info.st_size
282 ngx_max((dir)->info.st_size, (dir)->info.st_blocks * 512)
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dstat.h44 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0) in fstat64_blk()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/mmap_exec/
H A Dmmap_exec.c64 if (mmap(0, statbuf.st_size, in main()
/f-stack/app/redis-5.0.5/utils/
H A Dcorrupt_rdb.c35 unsigned long offset = rand()%stat.st_size; in main()
/f-stack/freebsd/i386/linux/
H A Dlinux.h155 l_ulong st_size; member
173 l_long st_size; member
193 l_longlong st_size; member
/f-stack/dpdk/buildtools/pmdinfogen/
H A Dpmdinfogen.c72 *size = st.st_size; in grab_file()
258 sym->st_size = TO_NATIVE(endian, ADDR_SIZE, sym->st_size); in parse_elf()
/f-stack/freebsd/contrib/cloudabi/
H A Dcloudabi_types_common.h403 _Alignas(8) cloudabi_filesize_t st_size;
412 _Static_assert(offsetof(cloudabi_filestat_t, st_size) == 24, "Incorrect layout");
/f-stack/freebsd/amd64/linux32/
H A Dlinux.h184 l_ulong st_size; member
202 l_long st_size; member
222 l_longlong st_size; member
/f-stack/dpdk/drivers/net/qede/
H A Dqede_main.c151 edev->firmware = rte_zmalloc("qede_fw", st.st_size, in qed_load_firmware_data()
159 if (read(fd, edev->firmware, st.st_size) != st.st_size) { in qed_load_firmware_data()
165 edev->fw_len = st.st_size; in qed_load_firmware_data()
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_import_os.c140 if (statbuf.st_size < SPA_MINDEVSIZE) { in zpool_open_func()
/f-stack/freebsd/contrib/zstd/examples/
H A Dcommon.h80 off_t const fileSize = st.st_size; in fsize_orDie()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/randwritecomp/
H A Drandwritecomp.c169 nblocks = ss.st_size / BLOCKSZ; in main()
/f-stack/app/redis-5.0.5/src/
H A Dredis-check-aof.c177 off_t size = sb.st_size; in redis_check_aof_main()
/f-stack/freebsd/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c900 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_read_label()
1406 if ((buf = zutil_alloc(hdl, statbuf.st_size)) == NULL) { in zpool_find_import_cached()
1411 if (read(fd, buf, statbuf.st_size) != statbuf.st_size) { in zpool_find_import_cached()
1422 if (nvlist_unpack(buf, statbuf.st_size, &raw, 0) != 0) { in zpool_find_import_cached()
/f-stack/freebsd/arm64/linux/
H A Dlinux.h131 l_off_t st_size; member
/f-stack/tools/libutil/
H A Dquotafile.c270 maxid = st.st_size / sizeof(struct dqblk32) - 1; in quota_maxid()
273 maxid = st.st_size / sizeof(struct dqblk64) - 2; in quota_maxid()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c213 zfattr->zfa_size = sb.st_size; in zfs_file_getattr()
/f-stack/freebsd/amd64/linux/
H A Dlinux.h140 l_off_t st_size; member
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_import.c157 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_clear_label()
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c646 statbuf.st_size == 0 || in get_replication()
647 statbuf.st_size == MAXOFFSET_T) in get_replication()
650 size = statbuf.st_size; in get_replication()

123