/third_party/node/src/ |
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) \ 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/ |
D | test-wasi-start-validation.js | 14 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 …]
|
D | test-wasi-initialize-validation.js | 14 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 …]
|
D | test-return-on-exit.js | 12 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);
|
D | README.md | 3 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
|
D | test-wasi-worker-terminate.js | 37 const wasi = new WASI({ returnOnExit: true }); 38 const imports = { wasi_snapshot_preview1: wasi.wasiImport }; 42 wasi.start(instance);
|
D | test-wasi-stdio.js | 21 const wasi = new WASI({ stdin, stdout, stderr, returnOnExit: true }); constant 22 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 27 strictEqual(wasi.start(instance), 0);
|
D | test-wasi.js | 16 const wasi = new WASI({ constant 24 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 31 wasi.start(instance);
|
D | test-wasi-symlinks.js | 12 const wasi = new WASI({ constant 20 const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; 27 wasi.start(instance);
|
D | Makefile | 1 CC = /opt/wasi-sdk/bin/clang 2 TARGET = wasm32-unknown-wasi
|
D | test-wasi-not-started.js | 10 const wasi = new WASI({ constant 13 const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
|
D | wasi.status | 1 prefix wasi
|
/third_party/rust/crates/libc/ci/docker/wasm32-wasi/ |
D | Dockerfile | 17 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 \
|
D | clang.sh | 2 exec /usr/bin/clang --target=wasm32-wasi --sysroot /wasi-libc/sysroot "$@"
|
/third_party/node/doc/api/ |
D | wasi.md | 7 <!-- 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/ |
D | assumptions.rs | 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()
|
/third_party/rust/crates/libc/src/ |
D | lib.rs | 152 mod wasi; 153 pub use wasi::*;
|
/third_party/node/doc/contributing/maintaining/ |
D | maintaining-web-assembly.md | 84 [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/ |
D | index.js | 55 wasi: '>=12.16.0', property
|
/third_party/rust/crates/os_str_bytes/src/common/ |
D | mod.rs | 14 use std::os::wasi as os;
|
/third_party/rust/crates/io-lifetimes/src/ |
D | impls_fs_err.rs | 12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd};
|
D | impls_socket2.rs | 12 use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd};
|
/third_party/rust/crates/is-terminal/ |
D | Cargo.toml | 38 [target.'cfg(any(unix, target_os = "wasi"))'.dev-dependencies]
|
/third_party/rust/crates/rustix/tests/termios/ |
D | isatty.rs | 53 use std::os::wasi::io::AsRawFd; in stdio_descriptors()
|
/third_party/rust/crates/rustix/src/backend/libc/ |
D | mod.rs | 47 pub use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
|