/third_party/node/src/ |
H A D | node_wasi.cc | 14 namespace wasi { namespace 17 inline void Debug(WASI* wasi, Args&&... args) { in Debug() argument 18 Debug(wasi->env(), DebugCategory::WASI, std::forward<Args>(args)...); in Debug() 58 #define GET_BACKING_STORE_OR_RETURN(wasi, args, mem_ptr, mem_size) \ 60 uvwasi_errno_t err = (wasi)->backingStore((mem_ptr), (mem_size)); \ 252 WASI* wasi; in ArgsGet() local 260 ASSIGN_INITIALIZED_OR_RETURN_UNWRAP(&wasi, args.This()); in ArgsGet() 261 Debug(wasi, "args_get(%d, %d)\n", argv_offset, argv_buf_offset); in ArgsGet() 262 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsGet() 266 wasi in ArgsGet() 291 WASI* wasi; ArgsSizesGet() local 325 WASI* wasi; ClockResGet() local 352 WASI* wasi; ClockTimeGet() local 382 WASI* wasi; EnvironGet() local 424 WASI* wasi; EnvironSizesGet() local 458 WASI* wasi; FdAdvise() local 476 WASI* wasi; FdAllocate() local 492 WASI* wasi; FdClose() local 504 WASI* wasi; FdDatasync() local 516 WASI* wasi; FdFdstatGet() local 539 WASI* wasi; FdFdstatSetFlags() local 553 WASI* wasi; FdFdstatSetRights() local 576 WASI* wasi; FdFilestatGet() local 599 WASI* wasi; FdFilestatSetSize() local 613 WASI* wasi; FdFilestatSetTimes() local 640 WASI* wasi; FdPread() local 691 WASI* wasi; FdPrestatGet() local 714 WASI* wasi; FdPrestatDirName() local 737 WASI* wasi; FdPwrite() local 796 WASI* wasi; FdRead() local 839 WASI* wasi; FdReaddir() local 882 WASI* wasi; FdRenumber() local 896 WASI* wasi; FdSeek() local 929 WASI* wasi; FdSync() local 941 WASI* wasi; FdTell() local 967 WASI* wasi; FdWrite() local 1018 WASI* wasi; PathCreateDirectory() local 1041 WASI* wasi; PathFilestatGet() local 1082 WASI* wasi; PathFilestatSetTimes() local 1125 WASI* wasi; PathLink() local 1169 WASI* wasi; PathOpen() local 1225 WASI* wasi; PathReadlink() local 1273 WASI* wasi; PathRemoveDirectory() local 1296 WASI* wasi; PathRename() local 1336 WASI* wasi; PathSymlink() local 1372 WASI* wasi; PathUnlinkFile() local 1395 WASI* wasi; PollOneoff() local 1455 WASI* wasi; ProcExit() local 1466 WASI* wasi; ProcRaise() local 1478 WASI* wasi; RandomGet() local 1498 WASI* wasi; SchedYield() local 1507 WASI* wasi; SockAccept() local 1539 WASI* wasi; SockRecv() local 1601 WASI* wasi; SockSend() local 1658 WASI* wasi; SockShutdown() local 1672 WASI* wasi; _SetMemory() local [all...] |
H A D | node_wasi.h | 11 namespace wasi { namespace 104 } // namespace wasi
|
/third_party/node/test/wasi/ |
H A D | test-return-on-exit.js | 6 const { WASI } = require('wasi'); 12 const wasi = new WASI({ returnOnExit: true }); 13 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 16 assert.strictEqual(wasi.start(instance), 120); 22 const wasi = new WASI({ returnOnExit: true }); 24 wasi.wasiImport.proc_exit = patchedExit.bind(wasi.wasiImport); 25 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 29 wasi.start(instance);
|
H A D | test-wasi-stdio.js | 7 const { WASI } = require('wasi'); 21 const wasi = new WASI({ stdin, stdout, stderr, returnOnExit: true }); 22 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 27 strictEqual(wasi.start(instance), 0);
|
H A D | Makefile | 1 CC = /opt/wasi-sdk/bin/clang 2 TARGET = wasm32-unknown-wasi
|
H A D | test-wasi-not-started.js | 4 if (process.argv[2] === 'wasi-child') { 9 const { WASI } = require('wasi'); 10 const wasi = new WASI({ 13 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 24 message: 'wasi.start() has not been called', 32 'wasi-child', 34 env: { ...process.env, NODE_DEBUG_NATIVE: 'wasi' },
|
H A D | test-wasi-symlinks.js | 6 if (process.argv[2] === 'wasi-child') { 10 const { WASI } = require('wasi'); 12 const wasi = new WASI({ 20 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 27 wasi.start(instance); 64 const opts = { env: { ...process.env, NODE_DEBUG_NATIVE: 'wasi' } }; 67 'wasi-child',
|
H A D | test-wasi.js | 4 if (process.argv[2] === 'wasi-child') { 13 const { WASI } = require('wasi'); 16 const wasi = new WASI({ 20 '/sandbox': fixtures.path('wasi'), 24 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 31 wasi.start(instance); 43 NODE_DEBUG_NATIVE: 'wasi', 53 'wasi-child',
|
H A D | test-wasi-worker-terminate.js | 5 const { WASI } = require('wasi'); 37 const wasi = new WASI({ returnOnExit: true }); 38 const imports = { wasi_snapshot_preview1: wasi.wasiImport }; 42 wasi.start(instance);
|
/third_party/rust/crates/io-lifetimes/tests/ |
H A D | assumptions.rs | 1 #![cfg_attr(target_os = "wasi", feature(wasi_ext))] 16 #[cfg(target_os = "wasi")] 19 assert_eq!(size_of::<std::os::wasi::io::RawFd>(), size_of::<i32>()); in test_assumptions() 21 size_of::<std::os::wasi::io::RawFd>(), in test_assumptions()
|
H A D | niche-optimizations.rs | 2 #![cfg_attr(target_os = "wasi", feature(wasi_ext))] 6 #[cfg(any(unix, target_os = "wasi"))] 13 #[cfg(target_os = "wasi")] 14 use std::os::wasi::io::{FromRawFd, IntoRawFd, RawFd}; 18 #[cfg(all(io_safety_is_in_std, any(unix, target_os = "wasi")))]
|
/third_party/rust/crates/libc/src/ |
H A D | lib.rs | 148 } else if #[cfg(any(target_env = "wasi", target_os = "wasi"))] { 152 mod wasi; modules 153 pub use wasi::*;
|
/third_party/node/deps/npm/node_modules/builtins/ |
H A D | index.js | 55 wasi: '>=12.16.0',
|
/third_party/rust/crates/io-lifetimes/src/ |
H A D | impls_fs_err.rs | 5 #[cfg(any(unix, target_os = "wasi"))] 11 #[cfg(target_os = "wasi")] 12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd}; 16 #[cfg(any(unix, target_os = "wasi"))] 32 #[cfg(any(unix, target_os = "wasi"))] 40 #[cfg(any(unix, target_os = "wasi"))]
|
H A D | impls_socket2.rs | 5 #[cfg(any(unix, target_os = "wasi"))] 11 #[cfg(target_os = "wasi")] 12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd}; 16 #[cfg(any(unix, target_os = "wasi"))] 32 #[cfg(any(unix, target_os = "wasi"))] 40 #[cfg(any(unix, target_os = "wasi"))] 64 #[cfg(any(unix, target_os = "wasi"))] 72 #[cfg(any(unix, target_os = "wasi"))]
|
H A D | impls_tokio.rs | 5 #[cfg(any(unix, target_os = "wasi"))] 11 #[cfg(target_os = "wasi")] 12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd}; 16 #[cfg(any(unix, target_os = "wasi"))] 32 #[cfg(any(unix, target_os = "wasi"))] 40 #[cfg(any(unix, target_os = "wasi"))] 64 #[cfg(any(unix, target_os = "wasi"))] 80 #[cfg(any(unix, target_os = "wasi"))] 96 #[cfg(any(unix, target_os = "wasi"))] 112 #[cfg(any(unix, target_os = "wasi"))] [all...] |
H A D | impls_os_pipe.rs | 5 #[cfg(any(unix, target_os = "wasi"))] 11 #[cfg(target_os = "wasi")] 12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd}; 16 #[cfg(any(unix, target_os = "wasi"))] 32 #[cfg(any(unix, target_os = "wasi"))] 40 #[cfg(any(unix, target_os = "wasi"))] 64 #[cfg(any(unix, target_os = "wasi"))] 72 #[cfg(any(unix, target_os = "wasi"))] 96 #[cfg(any(unix, target_os = "wasi"))] 112 #[cfg(any(unix, target_os = "wasi"))] [all...] |
H A D | lib.rs | 32 #![cfg_attr(all(wasi_ext, target_os = "wasi"), feature(wasi_ext))] 34 #![cfg(any(unix, windows, target_os = "wasi"))] 45 #[cfg(any(unix, target_os = "wasi"))] 50 #[cfg(any(unix, target_os = "wasi"))] 58 #[cfg(any(unix, target_os = "wasi"))] 71 #[cfg(target_os = "wasi")] 72 pub use std::os::wasi::io::{AsFd, BorrowedFd, OwnedFd}; 92 #[cfg(any(unix, target_os = "wasi"))] 101 #[cfg(any(unix, target_os = "wasi"))] 178 #[cfg(not(target_os = "wasi"))] [all...] |
H A D | raw.rs | 9 #[cfg(target_os = "wasi")] 10 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 21 #[cfg(any(unix, target_os = "wasi"))] 35 #[cfg(any(unix, target_os = "wasi"))] 49 #[cfg(any(unix, target_os = "wasi"))] 55 #[cfg(any(unix, target_os = "wasi"))] 81 #[cfg(any(unix, target_os = "wasi"))] 87 #[cfg(any(unix, target_os = "wasi"))] 113 #[cfg(any(unix, target_os = "wasi"))] 119 #[cfg(any(unix, target_os = "wasi"))] [all...] |
/third_party/rust/crates/os_str_bytes/src/common/ |
H A D | mod.rs | 13 #[cfg(target_os = "wasi")] 14 use std::os::wasi as os;
|
/third_party/rust/crates/rustix/tests/termios/ |
H A D | isatty.rs | 52 #[cfg(target_os = "wasi")] in stdio_descriptors() 53 use std::os::wasi::io::AsRawFd; in stdio_descriptors()
|
/third_party/rust/crates/rustix/src/path/ |
H A D | dec_int.rs | 21 #[cfg(target_os = "wasi")] 22 use std::os::wasi::ffi::OsStrExt;
|
/third_party/rust/crates/rustix/src/backend/libc/ |
H A D | mod.rs | 14 #[cfg(not(any(windows, target_os = "wasi")))] 38 #[cfg(target_os = "wasi")] 46 #[cfg(target_os = "wasi")] 47 pub use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 65 #[cfg(not(any(windows, target_os = "wasi")))] 68 #[cfg(not(any(target_os = "redox", target_os = "wasi")))]
|
/third_party/rust/crates/rustix/src/ |
H A D | lib.rs | 25 //! # #[cfg(target_os = "wasi")] 26 //! # use std::os::wasi::io::AsRawFd; 33 //! #[cfg(any(unix, target_os = "wasi"))] 101 #![cfg_attr(all(target_os = "wasi", feature = "std"), feature(wasi_ext))] 141 #[cfg_attr(wasi, path = "backend/wasi/mod.rs")] 167 #[cfg(not(any(windows, target_os = "wasi")))] 171 #[cfg(not(any(target_os = "redox", target_os = "wasi")))]
|
/third_party/rust/crates/rustix/src/fs/ |
H A D | mod.rs | 45 target_os = "wasi", 67 target_os = "wasi", 75 target_os = "wasi", 86 target_os = "wasi", 91 #[cfg(not(any(target_os = "redox", target_os = "wasi")))] 126 #[cfg(not(target_os = "wasi"))] 161 #[cfg(not(target_os = "wasi"))] 163 #[cfg(not(any(target_os = "solaris", target_os = "wasi")))] 172 target_os = "wasi", 180 target_os = "wasi", [all...] |