Sha256: c1b1d92ca9067ba5128d33f2545682a29a35e23e462a246bf9ce9ed66bf4c026

Contents?: true

Size: 955 Bytes

Versions: 25

Compression:

Stored size: 955 Bytes

Contents

;; WASI Command-line Arguments.
;;
;; This is a `witx` file. See [here](https://github.com/WebAssembly/WASI/tree/master/docs/witx.md)
;; for an explanation of what that means.

(use "typenames.witx")

(module $wasi_ephemeral_args
  ;;; Linear memory to be accessed by WASI functions that need it.
  (import "memory" (memory))

  ;;; Read command-line argument data.
  ;;; The size of the array should match that returned by `sizes_get`.
  ;;; Each argument is expected to be `\0` terminated.
  (@interface func (export "get")
    (param $argv (@witx pointer (@witx pointer (@witx char8))))
    (param $argv_buf (@witx pointer (@witx char8)))
    (result $error (expected (error $errno)))
  )

  ;;; Return command-line argument data sizes.
  (@interface func (export "sizes_get")
    ;;; Returns the number of arguments and the size of the argument string
    ;;; data, or an error.
    (result $error (expected (tuple $size $size) (error $errno)))
  )
)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
wasmtime-18.0.3 ./ext/cargo-vendor/wasi-common-18.0.3/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-17.0.1 ./ext/cargo-vendor/wasi-common-17.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-17.0.0 ./ext/cargo-vendor/wasi-common-17.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-16.0.0 ./ext/cargo-vendor/wasi-common-16.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-15.0.1 ./ext/cargo-vendor/wasi-common-15.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-15.0.0 ./ext/cargo-vendor/wasi-common-15.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-14.0.4 ./ext/cargo-vendor/wasi-common-14.0.4/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-14.0.3 ./ext/cargo-vendor/wasi-common-14.0.3/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-14.0.1 ./ext/cargo-vendor/wasi-common-14.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-14.0.0 ./ext/cargo-vendor/wasi-common-14.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-13.0.0 ./ext/cargo-vendor/wasi-common-13.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-12.0.1 ./ext/cargo-vendor/wasi-common-12.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-12.0.0 ./ext/cargo-vendor/wasi-common-12.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-11.0.0 ./ext/cargo-vendor/wasi-common-11.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-10.0.1 ./ext/cargo-vendor/wasi-common-10.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-10.0.0 ./ext/cargo-vendor/wasi-common-10.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-9.0.4 ./ext/cargo-vendor/wasi-common-9.0.4/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-9.0.1 ./ext/cargo-vendor/wasi-common-9.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-8.0.0 ./ext/cargo-vendor/wasi-common-8.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx
wasmtime-7.0.0 ./ext/cargo-vendor/wasi-common-7.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx