Home
last modified time | relevance | path

Searched refs:wasi (Results 1 – 25 of 56) sorted by relevance

123

/third_party/node/src/
Dnode_wasi.cc14 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) \ argument
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->uvw_.argv_buf_size); in ArgsGet()
[all …]
/third_party/node/test/wasi/
Dtest-wasi-start-validation.js14 const wasi = new WASI(); constant
17 () => { wasi.start(); },
27 const wasi = new WASI({}); constant
33 () => { wasi.start(instance); },
43 const wasi = new WASI({}); constant
53 () => { wasi.start(instance); },
63 const wasi = new WASI({}); constant
77 () => { wasi.start(instance); },
88 const wasi = new WASI({}); constant
96 () => { wasi.start(instance); },
[all …]
Dtest-wasi-initialize-validation.js14 const wasi = new WASI(); constant
17 () => { wasi.initialize(); },
27 const wasi = new WASI({}); constant
33 () => { wasi.initialize(instance); },
43 const wasi = new WASI({}); constant
56 () => { wasi.initialize(instance); },
66 const wasi = new WASI({}); constant
80 () => { wasi.initialize(instance); },
91 const wasi = new WASI({}); constant
99 () => { wasi.initialize(instance); },
[all …]
Dtest-return-on-exit.js12 const wasi = new WASI({ returnOnExit: true }); constant
13 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
16 assert.strictEqual(wasi.start(instance), 120);
22 const wasi = new WASI({ returnOnExit: true }); constant
24 wasi.wasiImport.proc_exit = patchedExit.bind(wasi.wasiImport);
25 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
29 wasi.start(instance);
DREADME.md3 Compile with clang and `wasm32-wasi` target. The clang version used must be
4 built with wasi-libc. You can specify the location for clang and the sysroot
8 $ make CC=/usr/local/opt/llvm/bin/clang SYSROOT=/path/to/wasi-libc/sysroot
Dtest-wasi-worker-terminate.js37 const wasi = new WASI({ returnOnExit: true });
38 const imports = { wasi_snapshot_preview1: wasi.wasiImport };
42 wasi.start(instance);
Dtest-wasi-stdio.js21 const wasi = new WASI({ stdin, stdout, stderr, returnOnExit: true }); constant
22 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
27 strictEqual(wasi.start(instance), 0);
Dtest-wasi.js16 const wasi = new WASI({ constant
24 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
31 wasi.start(instance);
Dtest-wasi-symlinks.js12 const wasi = new WASI({ constant
20 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
27 wasi.start(instance);
DMakefile1 CC = /opt/wasi-sdk/bin/clang
2 TARGET = wasm32-unknown-wasi
Dtest-wasi-not-started.js10 const wasi = new WASI({ constant
13 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
Dwasi.status1 prefix wasi
/third_party/rust/crates/libc/ci/docker/wasm32-wasi/
DDockerfile17 RUN git clone https://github.com/WebAssembly/wasi-libc && \
18 cd wasi-libc && \
21 RUN make -C wasi-libc install -j $(nproc) INSTALL_DIR=/wasi-libc
26 COPY docker/wasm32-wasi/clang.sh /wasi-libc/bin/clang
37 CARGO_TARGET_WASM32_WASI_LINKER=/wasi-libc/bin/clang \
38 CC_wasm32_wasi=/wasi-libc/bin/clang \
Dclang.sh2 exec /usr/bin/clang --target=wasm32-wasi --sysroot /wasi-libc/sysroot "$@"
/third_party/node/doc/api/
Dwasi.md7 <!-- source_link=lib/wasi.js -->
15 import { WASI } from 'wasi';
18 const wasi = new WASI({
27 // const importObject = { wasi_unstable: wasi.wasiImport };
28 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
35 wasi.start(instance);
41 const { WASI } = require('wasi');
45 const wasi = new WASI({
54 // const importObject = { wasi_unstable: wasi.wasiImport };
55 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
[all …]
/third_party/rust/crates/io-lifetimes/tests/
Dassumptions.rs19 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()
/third_party/rust/crates/libc/src/
Dlib.rs152 mod wasi;
153 pub use wasi::*;
/third_party/node/doc/contributing/maintaining/
Dmaintaining-web-assembly.md84 [WebAssembly System Interface (WASI)](https://nodejs.org/api/wasi.html).
90 * [lib/wasi.js](https://github.com/nodejs/node/blob/main/lib/wasi.js)
/third_party/node/deps/npm/node_modules/builtins/
Dindex.js55 wasi: '>=12.16.0', property
/third_party/rust/crates/os_str_bytes/src/common/
Dmod.rs14 use std::os::wasi as os;
/third_party/rust/crates/io-lifetimes/src/
Dimpls_fs_err.rs12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd};
Dimpls_socket2.rs12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd};
/third_party/rust/crates/is-terminal/
DCargo.toml38 [target.'cfg(any(unix, target_os = "wasi"))'.dev-dependencies]
/third_party/rust/crates/rustix/tests/termios/
Disatty.rs53 use std::os::wasi::io::AsRawFd; in stdio_descriptors()
/third_party/rust/crates/rustix/src/backend/libc/
Dmod.rs47 pub use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};

123