Home
last modified time | relevance | path

Searched refs:fd_write (Results 1 – 25 of 44) sorted by relevance

12

/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp1_file_unbuffered_write.rs24 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 Dp1_file_read_write.rs28 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 Dp1_fd_flags_set.rs23 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 Dp1_path_open_read_write.rs39 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 Dp1_file_write.rs28 let nwritten = wasip1::fd_write( in test_file_long_write()
101 let res = wasip1::fd_write( in test_file_long_write()
H A Dp1_cli_hostcall_fuel.rs49 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 Dp1_file_seek_tell.rs33 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 Dp1_unicode_output.rs9 let written = unsafe { wasip1::fd_write(STDOUT_FD, &ciovecs) }.expect("write succeeds"); in main()
H A Dp1_poll_oneoff_files.rs155 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 Dp1_cli_much_stdout.rs14 let amt = unsafe { wasip1::fd_write(1, &[iovec]).unwrap() }; in main()
H A Dp2_adapter_badfd.rs37 wasip1::fd_write( in main()
H A Dp1_file_truncation.rs23 let nwritten = wasip1::fd_write( in test_file_truncation()
/wasmtime-44.0.1/examples/
H A Dlinking2.wat3 (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 Dprint-arguments.wat2 (import "wasi_snapshot_preview1" "fd_write"
3 (func $fd_write (param i32 i32 i32 i32) (result i32)))
48 (call $fd_write
H A Dprint_env.wat2 (import "wasi_snapshot_preview1" "fd_write"
3 (func $fd_write (param i32 i32 i32 i32) (result i32)))
48 (call $fd_write
H A Dwasi_misaligned_pointer.wat2 (import "wasi_snapshot_preview1" "fd_write" (func $write (param i32 i32 i32 i32) (result i32)))
H A Dhello_wasi_snapshot0.wat4 (import "wasi_unstable" "fd_write"
H A Dhello_wasi_snapshot1.wat4 (import "wasi_snapshot_preview1" "fd_write"
H A Dgreeter_reactor.wat2 (import "wasi_snapshot_preview1" "fd_write"
H A Dgreeter_command.wat2 (import "wasi_snapshot_preview1" "fd_write"
H A Dgreeter_callable_command.wat3 (import "wasi_snapshot_preview1" "fd_write"
/wasmtime-44.0.1/docs/
H A Dcli-logging.md15 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 DWASI-tutorial.md264 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 Dtypenames.witx222 ;;; 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 Dtypenames.witx222 ;;; 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`.

12