/dports/misc/ytree/ytree-2.03/ |
H A D | view.c | 27 static struct stat fdstat; variable 544 fstat(fd,&fdstat); in move_right() 617 fstat(fd,&fdstat); in hex_edit() 700 fstat(fd,&fdstat); in hex_edit() 706 if(fdstat.st_size % BYTES) { in hex_edit() 731 fstat(fd,&fdstat); in hex_edit() 790 if (!(S_ISREG(fdstat.st_mode)) || S_ISBLK(fdstat.st_mode)) in InternalView() 823 fstat(fd,&fdstat); in InternalView() 857 fstat(fd,&fdstat); in InternalView() 863 if(fdstat.st_size % BYTES) { in InternalView() [all …]
|
/dports/sysutils/syslinux/syslinux-6.03/com32/rosh/ |
H A D | rosh.c | 557 struct stat fdstat; in rosh_ls_de_size() local 568 fstat(fd2, &fdstat); in rosh_ls_de_size() 583 struct stat fdstat; in rosh_ls_de_size_mode() local 588 memset(&fdstat, 0, sizeof fdstat); in rosh_ls_de_size_mode() 622 if (fdstat) in rosh_ls_d_ino() 627 de_ino = fdstat->st_ino; in rosh_ls_d_ino() 819 struct stat fdstat; in rosh_ls_arg() local 829 fdstat.st_mode = 0; in rosh_ls_arg() 830 fdstat.st_size = 0; in rosh_ls_arg() 989 struct stat fdstat; in rosh_more_fd() local [all …]
|
/dports/sysutils/vector/lucet-d4fc14a03bdb99ac83173d27fddf1aca48412a86/wasmtime/crates/test-programs/wasi-tests/src/bin/ |
H A D | path_filestat.rs | 6 let mut fdstat = wasi::fd_fdstat_get(dir_fd).expect("fd_fdstat_get"); in test_path_filestat() localVariable 8 fdstat.fs_rights_base & wasi::RIGHTS_PATH_FILESTAT_GET, in test_path_filestat() 13 fdstat.fs_rights_inheriting & wasi::RIGHTS_PATH_FILESTAT_GET, in test_path_filestat() 36 fdstat = wasi::fd_fdstat_get(file_fd).expect("fd_fdstat_get"); in test_path_filestat() 38 fdstat.fs_rights_base & wasi::RIGHTS_PATH_FILESTAT_GET, in test_path_filestat() 43 fdstat.fs_rights_inheriting & wasi::RIGHTS_PATH_FILESTAT_GET, in test_path_filestat() 48 fdstat.fs_flags & (wasi::FDFLAGS_APPEND | wasi::FDFLAGS_SYNC), in test_path_filestat()
|
H A D | directory_seek.rs | 28 let fdstat = wasi::fd_fdstat_get(fd).expect("failed to fdstat"); in test_directory_seek() localVariable 30 fdstat.fs_filetype, in test_directory_seek() 35 (fdstat.fs_rights_base & wasi::RIGHTS_FD_SEEK), in test_directory_seek()
|
/dports/devel/avr-gdb/gdb-7.3.1/gdb/testsuite/gdb.arch/ |
H A D | spu-info.c | 135 struct stat fdstat; in do_dma_test() local 148 if (fstat (fd, &fdstat) != 0 in do_dma_test() 149 || !fdstat.st_size) in do_dma_test() 152 src = mmap_ea(0ULL, fdstat.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in do_dma_test() 184 struct stat fdstat; in do_signal_test() local 191 if (fstat (fd, &fdstat) != 0) in do_signal_test() 198 if (fstat (fd, &fdstat) != 0) in do_signal_test()
|
/dports/devel/gdb761/gdb-7.6.1/gdb/testsuite/gdb.arch/ |
H A D | spu-info.c | 135 struct stat fdstat; in do_dma_test() local 148 if (fstat (fd, &fdstat) != 0 in do_dma_test() 149 || !fdstat.st_size) in do_dma_test() 152 src = mmap_ea(0ULL, fdstat.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in do_dma_test() 184 struct stat fdstat; in do_signal_test() local 191 if (fstat (fd, &fdstat) != 0) in do_signal_test() 198 if (fstat (fd, &fdstat) != 0) in do_signal_test()
|
/dports/www/netsurf/netsurf-3.10/content/fetchers/ |
H A D | file.c | 273 struct stat *fdstat) in fetch_file_process_plain() argument 299 buf_size = fdstat->st_size; in fetch_file_process_plain() 329 fdstat->st_size)) { in fetch_file_process_plain() 335 (int64_t) fdstat->st_mtime)) { in fetch_file_process_plain() 381 buf_size = fdstat->st_size; in fetch_file_process_plain() 412 fdstat->st_size)) { in fetch_file_process_plain() 418 (int64_t) fdstat->st_mtime)) { in fetch_file_process_plain() 423 while (tot_read < fdstat->st_size) { in fetch_file_process_plain() 656 struct stat *fdstat) in fetch_file_process_dir() argument 767 if (stat(ctx->path, &fdstat) != 0) { in fetch_file_process() [all …]
|
/dports/comms/scmxx/scmxx-0.9.0/src/scmxx/ |
H A D | pinfile.c | 26 struct stat fdstat; in pinfile_get_data() local 36 if (fstat(fd,&fdstat) == -1) { in pinfile_get_data() 41 if ((fdstat.st_mode&S_IFMT) != S_IFREG) { in pinfile_get_data() 47 if ((fdstat.st_mode&(S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) != 0) { in pinfile_get_data() 53 if (fdstat.st_size > SSIZE_MAX) fdstat.st_size = SSIZE_MAX; in pinfile_get_data() 56 data = mem_alloc(fdstat.st_size+1,1); in pinfile_get_data() 58 status = read(fd,data,fdstat.st_size-total); in pinfile_get_data() 60 } while (status > 0 && total < fdstat.st_size); in pinfile_get_data()
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/lucet-wasi-wasmsbx/src/ |
H A D | memory.rs | 315 pub fn dec_fdstat(fdstat: wasm32::__wasi_fdstat_t) -> host::__wasi_fdstat_t { in dec_fdstat() 317 fs_filetype: dec_filetype(fdstat.fs_filetype), in dec_fdstat() 318 fs_flags: dec_fdflags(fdstat.fs_flags), in dec_fdstat() 319 fs_rights_base: dec_rights(fdstat.fs_rights_base), in dec_fdstat() 320 fs_rights_inheriting: dec_rights(fdstat.fs_rights_inheriting), in dec_fdstat() 333 fs_filetype: enc_filetype(fdstat.fs_filetype), in enc_fdstat() 334 fs_flags: enc_fdflags(fdstat.fs_flags), in enc_fdstat() 336 fs_rights_base: enc_rights(fdstat.fs_rights_base), in enc_fdstat() 337 fs_rights_inheriting: enc_rights(fdstat.fs_rights_inheriting), in enc_fdstat() 346 let fdstat = enc_fdstat(host_fdstat); in enc_fdstat_byref() localVariable [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/lucet-wasi-wasmsbx/src/ |
H A D | memory.rs | 315 pub fn dec_fdstat(fdstat: wasm32::__wasi_fdstat_t) -> host::__wasi_fdstat_t { in dec_fdstat() 317 fs_filetype: dec_filetype(fdstat.fs_filetype), in dec_fdstat() 318 fs_flags: dec_fdflags(fdstat.fs_flags), in dec_fdstat() 319 fs_rights_base: dec_rights(fdstat.fs_rights_base), in dec_fdstat() 320 fs_rights_inheriting: dec_rights(fdstat.fs_rights_inheriting), in dec_fdstat() 333 fs_filetype: enc_filetype(fdstat.fs_filetype), in enc_fdstat() 334 fs_flags: enc_fdflags(fdstat.fs_flags), in enc_fdstat() 336 fs_rights_base: enc_rights(fdstat.fs_rights_base), in enc_fdstat() 337 fs_rights_inheriting: enc_rights(fdstat.fs_rights_inheriting), in enc_fdstat() 346 let fdstat = enc_fdstat(host_fdstat); in enc_fdstat_byref() localVariable [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/lucet-wasi/src/ |
H A D | memory.rs | 315 pub fn dec_fdstat(fdstat: wasm32::__wasi_fdstat_t) -> host::__wasi_fdstat_t { in dec_fdstat() 317 fs_filetype: dec_filetype(fdstat.fs_filetype), in dec_fdstat() 318 fs_flags: dec_fdflags(fdstat.fs_flags), in dec_fdstat() 319 fs_rights_base: dec_rights(fdstat.fs_rights_base), in dec_fdstat() 320 fs_rights_inheriting: dec_rights(fdstat.fs_rights_inheriting), in dec_fdstat() 333 fs_filetype: enc_filetype(fdstat.fs_filetype), in enc_fdstat() 334 fs_flags: enc_fdflags(fdstat.fs_flags), in enc_fdstat() 336 fs_rights_base: enc_rights(fdstat.fs_rights_base), in enc_fdstat() 337 fs_rights_inheriting: enc_rights(fdstat.fs_rights_inheriting), in enc_fdstat() 346 let fdstat = enc_fdstat(host_fdstat); in enc_fdstat_byref() localVariable [all …]
|
/dports/sysutils/vector/lucet-d4fc14a03bdb99ac83173d27fddf1aca48412a86/wasmtime/crates/test-programs/wasi-tests/src/ |
H A D | lib.rs | 52 let fdstat = wasi::fd_fdstat_get(fd).expect("fd_fdstat_get failed"); in fd_get_rights() localVariable 53 (fdstat.fs_rights_base, fdstat.fs_rights_inheriting) in fd_get_rights()
|
/dports/devel/wasm3/wasm3-0.5.0/source/ |
H A D | m3_api_wasi.c | 319 m3ApiGetArgMem (__wasi_fdstat_t * , fdstat) in m3ApiRawFunction() 321 m3ApiCheckMem(fdstat, sizeof(__wasi_fdstat_t)); in m3ApiRawFunction() 327 fdstat->fs_filetype= __WASI_FILETYPE_DIRECTORY; in m3ApiRawFunction() 329 fdstat->fs_filetype= __WASI_FILETYPE_REGULAR_FILE; in m3ApiRawFunction() 332 fdstat->fs_flags = 0; in m3ApiRawFunction() 333 fdstat->fs_rights_base = (uint64_t)-1; // all rights in m3ApiRawFunction() 334 fdstat->fs_rights_inheriting = (uint64_t)-1; // all rights in m3ApiRawFunction() 353 m3ApiWriteMem16(&fdstat->fs_flags, in m3ApiRawFunction() 361 fdstat->fs_rights_base = (uint64_t)-1; // all rights in m3ApiRawFunction() 365 fdstat->fs_rights_base &= ~(__WASI_RIGHTS_FD_SEEK | __WASI_RIGHTS_FD_TELL); in m3ApiRawFunction() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/devtools/sci/ |
H A D | scipack.cpp | 146 struct stat fdstat; in write_files() local 158 fstat(fd, &fdstat); in write_files() 159 fdsize = fdstat.st_size; in write_files()
|
/dports/games/scummvm-tools/scummvm-tools-2.5.0/sci/ |
H A D | scipack.cpp | 143 struct stat fdstat; in write_files() local 157 fstat(fd, &fdstat); in write_files() 158 fdsize = fdstat.st_size; in write_files()
|
/dports/games/scummvm/scummvm-2.5.1/devtools/sci/ |
H A D | scipack.cpp | 146 struct stat fdstat; in write_files() local 158 fstat(fd, &fdstat); in write_files() 159 fdsize = fdstat.st_size; in write_files()
|
/dports/net/fspclient/fspclient-0.93.1/client/ |
H A D | redirect.c | 69 struct stat fdstat; 71 if (fstat(fd, &fdstat) < 0)
|
/dports/devel/wasm3/wasm3-0.5.0/platforms/embedded/esp32-idf-wasi/main/ |
H A D | m3_api_esp_wasi.c | 210 m3ApiGetArgMem (__wasi_fdstat_t * , fdstat) in m3ApiRawFunction() 212 if (runtime == NULL || fdstat == NULL) { m3ApiReturn(__WASI_EINVAL); } in m3ApiRawFunction() 219 fdstat->fs_filetype = (S_ISBLK(mode) ? __WASI_FILETYPE_BLOCK_DEVICE : 0) | in m3ApiRawFunction() 225 m3ApiWriteMem16(&fdstat->fs_flags, in m3ApiRawFunction() 231 fdstat->fs_rights_base = (uint64_t)-1; // all rights in m3ApiRawFunction() 232 fdstat->fs_rights_inheriting = (uint64_t)-1; // all rights in m3ApiRawFunction()
|
/dports/audio/tosha/tosha-0.6/ |
H A D | pcmfade.c | 84 struct stat fdstat; in get_filesize() local 86 if (fstat(fd, &fdstat)) in get_filesize() 88 return (fdstat.st_size); in get_filesize()
|
/dports/security/pidgin-encryption/pidgin-encryption-3.1/ |
H A D | keys.c | 445 struct stat fdstat; in PE_add_key_to_file() local 476 fstat(fd, &fdstat); in PE_add_key_to_file() 479 if (fdstat.st_mode & (S_IRWXG | S_IRWXO)) { in PE_add_key_to_file() 480 fchmod(fd, fdstat.st_mode & S_IRWXU); /* zero out non-owner permissions */ in PE_add_key_to_file() 737 struct stat fdstat; in PE_load_keys() local 740 fstat(fd, &fdstat); in PE_load_keys() 741 if (fdstat.st_mode & (S_IRWXG | S_IRWXO)) { in PE_load_keys() 742 fchmod(fd, fdstat.st_mode & S_IRWXU); /* zero out non-owner permissions */ in PE_load_keys()
|
/dports/sysutils/vector/lucet-d4fc14a03bdb99ac83173d27fddf1aca48412a86/wasmtime/crates/wasi-common/src/old/snapshot_0/ |
H A D | memory.rs | 324 fdstat: wasi::__wasi_fdstat_t, in enc_fdstat_byref() 327 fs_filetype: fdstat.fs_filetype.to_le(), in enc_fdstat_byref() 328 fs_flags: fdstat.fs_flags.to_le(), in enc_fdstat_byref() 329 fs_rights_base: fdstat.fs_rights_base.to_le(), in enc_fdstat_byref() 330 fs_rights_inheriting: fdstat.fs_rights_inheriting.to_le(), in enc_fdstat_byref()
|
/dports/devel/valgrind-lts/valgrind-dragonfly-dragonfly/coregrind/ |
H A D | vgdb.c | 153 struct stat fdstat; in map_vgdbshared() local 161 if (fstat(shared_mem_fd, &fdstat) != 0) in map_vgdbshared() 164 if (fdstat.st_size == sizeof(VgdbShared64)) in map_vgdbshared() 166 else if (fdstat.st_size == sizeof(VgdbShared32)) in map_vgdbshared() 175 (long int)fdstat.st_size); in map_vgdbshared() 182 fdstat.st_size); in map_vgdbshared() 193 *s = (void*) mmap(NULL, fdstat.st_size, in map_vgdbshared()
|
/dports/devel/valgrind/valgrind-dragonfly-dragonfly/coregrind/ |
H A D | vgdb.c | 153 struct stat fdstat; in map_vgdbshared() local 161 if (fstat(shared_mem_fd, &fdstat) != 0) in map_vgdbshared() 164 if (fdstat.st_size == sizeof(VgdbShared64)) in map_vgdbshared() 166 else if (fdstat.st_size == sizeof(VgdbShared32)) in map_vgdbshared() 175 (long int)fdstat.st_size); in map_vgdbshared() 182 fdstat.st_size); in map_vgdbshared() 193 *s = (void*) mmap(NULL, fdstat.st_size, in map_vgdbshared()
|
/dports/sysutils/vector/lucet-d4fc14a03bdb99ac83173d27fddf1aca48412a86/wasmtime/crates/wasi-common/src/old/snapshot_0/hostcalls_impl/ |
H A D | fs.rs | 283 let mut fdstat = dec_fdstat_byref(memory, fdstat_ptr)?; in fd_fdstat_get() localVariable 289 fdstat.fs_filetype = fe.file_type; in fd_fdstat_get() 290 fdstat.fs_rights_base = fe.rights_base; in fd_fdstat_get() 291 fdstat.fs_rights_inheriting = fe.rights_inheriting; in fd_fdstat_get() 292 fdstat.fs_flags = fs_flags; in fd_fdstat_get() 294 trace!(" | *buf={:?}", fdstat); in fd_fdstat_get() 296 enc_fdstat_byref(memory, fdstat_ptr, fdstat) in fd_fdstat_get()
|
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/cloudabi-0.0.3/ |
H A D | cloudabi.rs | 1251 pub struct fdstat { struct 1265 assert_eq!(::core::mem::size_of::<fdstat>(), 24); in fdstat_layout_test() argument 1266 assert_eq!(::core::mem::align_of::<fdstat>(), 8); in fdstat_layout_test() 1268 let obj: fdstat = ::core::mem::uninitialized(); in fdstat_layout_test() 1820 fn cloudabi_sys_fd_stat_get(_: fd, _: *mut fdstat) -> errno; in cloudabi_sys_fd_stat_get() 1821 fn cloudabi_sys_fd_stat_put(_: fd, _: *const fdstat, _: fdsflags) -> errno; in cloudabi_sys_fd_stat_put() argument 1828 …fn cloudabi_sys_file_open(_: lookup, _: *const u8, _: usize, _: oflags, _: *const fdstat, _: *mut … in cloudabi_sys_file_open() argument 2127 pub unsafe fn fd_stat_get(fd_: fd, buf_: *mut fdstat) -> errno { in fd_stat_get() 2147 pub unsafe fn fd_stat_put(fd_: fd, buf_: *const fdstat, flags_: fdsflags) -> errno { in fd_stat_put() argument 2301 pub unsafe fn file_open(dirfd_: lookup, path_: &[u8], oflags_: oflags, fds_: *const fdstat, fd_: &m… in file_open() argument
|