| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p1_file_unbuffered_write.rs | 24 let fd_write = wasip1::path_open(dir_fd, 0, "file", 0, wasip1::RIGHTS_FD_WRITE, 0, 0) in test_file_unbuffered_write() localVariable 27 fd_write > libc::STDERR_FILENO as wasip1::Fd, in test_file_unbuffered_write() 37 let nwritten = wasip1::fd_write(fd_write, &[ciovec]).expect("writing byte to file"); in test_file_unbuffered_write() 51 wasip1::fd_close(fd_write).expect("closing a file"); in test_file_unbuffered_write()
|
| H A D | p1_file_read_write.rs | 28 let mut nwritten = wasip1::fd_write(file_fd, &[ciovec]).expect("writing bytes at offset 0"); in test_file_read_write() 65 wasip1::fd_write(file_fd, ciovecs.as_slice()).expect("writing bytes at offset 0"); in test_file_read_write() 120 nwritten = wasip1::fd_write(file_fd, &[ciovec]).expect("writing bytes at offset 2"); in test_file_read_write() 163 let n = wasip1::fd_write(file_fd, &[ciovec]).expect("writing bytes at offset 2"); in test_file_write_and_file_pos() 177 let n = wasip1::fd_write(file_fd, &[ciovec]).expect("writing bytes at offset 50"); in test_file_write_and_file_pos()
|
| H A D | p1_fd_flags_set.rs | 23 wasip1::fd_write( in test_fd_fdstat_set_flags() 62 wasip1::fd_write( in test_fd_fdstat_set_flags() 101 wasip1::fd_write( in test_fd_fdstat_set_flags()
|
| H A D | p1_path_open_read_write.rs | 39 wasip1::fd_write(f_readonly, &[ciovec]) in test_path_open_read_write() 74 let bytes_written = wasip1::fd_write(f_writeonly, &[ciovec]).expect("write to writeonly"); in test_path_open_read_write() 113 let bytes_written = wasip1::fd_write(f_readwrite, &[ciovec]).expect("write to readwrite"); in test_path_open_read_write()
|
| H A D | p1_file_write.rs | 28 let nwritten = wasip1::fd_write( in test_file_long_write() 101 let res = wasip1::fd_write( in test_file_long_write()
|
| H A D | p1_cli_hostcall_fuel.rs | 49 assert_eq!(wasip1::fd_write(fd, &ciovs), Err(wasip1::ERRNO_NOMEM)); in big_iovecs() 66 assert_eq!(wasip1::fd_write(fd, &ciovs), Err(wasip1::ERRNO_NOMEM)); in big_iovecs()
|
| H A D | p1_file_seek_tell.rs | 33 let nwritten = wasip1::fd_write(file_fd, &[iov]).expect("writing to a file"); in test_file_seek_tell() 114 let nwritten = wasip1::fd_write(file_fd, &[iov]).unwrap(); in seek_and_o_append()
|
| H A D | p1_unicode_output.rs | 9 let written = unsafe { wasip1::fd_write(STDOUT_FD, &ciovecs) }.expect("write succeeds"); in main()
|
| H A D | p1_poll_oneoff_files.rs | 155 fd_write: wasip1::SubscriptionFdReadwrite { in test_fd_readwrite() 210 wasip1::fd_write(nonempty_file, &[ciovec]).expect("write"); in test_fd_readwrite_valid_fd() 265 fd_write: fd_readwrite, in test_fd_readwrite_invalid_fd()
|
| H A D | p1_cli_much_stdout.rs | 14 let amt = unsafe { wasip1::fd_write(1, &[iovec]).unwrap() }; in main()
|
| H A D | p2_adapter_badfd.rs | 37 wasip1::fd_write( in main()
|
| H A D | p1_file_truncation.rs | 23 let nwritten = wasip1::fd_write( in test_file_truncation()
|
| /wasmtime-44.0.1/examples/ |
| H A D | linking2.wat | 3 (import "wasi_snapshot_preview1" "fd_write" (func $fd_write (type $fd_write_ty))) 22 ;; call the `fd_write` import 27 call $fd_write
|
| /wasmtime-44.0.1/tests/all/cli_tests/ |
| H A D | print-arguments.wat | 2 (import "wasi_snapshot_preview1" "fd_write" 3 (func $fd_write (param i32 i32 i32 i32) (result i32))) 48 (call $fd_write
|
| H A D | print_env.wat | 2 (import "wasi_snapshot_preview1" "fd_write" 3 (func $fd_write (param i32 i32 i32 i32) (result i32))) 48 (call $fd_write
|
| H A D | wasi_misaligned_pointer.wat | 2 (import "wasi_snapshot_preview1" "fd_write" (func $write (param i32 i32 i32 i32) (result i32)))
|
| H A D | hello_wasi_snapshot0.wat | 4 (import "wasi_unstable" "fd_write"
|
| H A D | hello_wasi_snapshot1.wat | 4 (import "wasi_snapshot_preview1" "fd_write"
|
| H A D | greeter_reactor.wat | 2 (import "wasi_snapshot_preview1" "fd_write"
|
| H A D | greeter_command.wat | 2 (import "wasi_snapshot_preview1" "fd_write"
|
| H A D | greeter_callable_command.wat | 3 (import "wasi_snapshot_preview1" "fd_write"
|
| /wasmtime-44.0.1/docs/ |
| H A D | cli-logging.md | 15 TRACE wiggle abi{module="wasi_snapshot_preview1" function="fd_write"} wasmtime_wasi::preview1::wasi… 17 TRACE wiggle abi{module="wasi_snapshot_preview1" function="fd_write"}: wasmtime_wasi::preview1::was…
|
| H A D | WASI-tutorial.md | 264 makes use of WASI's `fd_write` implementation to write `hello world` to stdout. 270 ;; Import the required fd_write WASI function which will write the given io vectors to stdout 271 ;; The function signature for fd_write is: 273 … (import "wasi_snapshot_preview1" "fd_write" (func $fd_write (param i32 i32 i32 i32) (result i32))) 287 (call $fd_write
|
| /wasmtime-44.0.1/crates/wiggle/tests/ |
| H A D | typenames.witx | 222 ;;; The right to invoke `fd_write` and `sock_send`. 224 $fd_write 269 …;;; If `rights::fd_write` is set, includes the right to invoke `poll_oneoff` to subscribe to `even… 495 $fd_write 500 ;;; `eventtype::fd_read` or `eventtype::fd_write`. 509 ;;; `eventtype::fd_write`. 529 ;;; `eventtype::fd_write`. `eventtype::clock` events ignore this field. 563 ;;; `eventtype::fd_read` or `eventtype::fd_write`.
|
| /wasmtime-44.0.1/crates/wasi/witx/p0/ |
| H A D | typenames.witx | 222 ;;; The right to invoke `fd_write` and `sock_send`. 224 $fd_write 269 …;;; If `rights::fd_write` is set, includes the right to invoke `poll_oneoff` to subscribe to `even… 493 $fd_write 498 ;;; `eventtype::fd_read` or `eventtype::fd_write`. 507 ;;; `eventtype::fd_write` variants 527 ;;; `eventtype::fd_write`. `eventtype::clock` events ignore this field. 563 ;;; `eventtype::fd_read` or `eventtype::fd_write`.
|