github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/experimental/testdata/fs.wat (about)

     1  (module
     2    (type $tp (func (param $fd i32) (param $path i32) (param $path_len i32) (result (;errno;) i32)))
     3    (import "wasi_snapshot_preview1" "fd_prestat_dir_name" (func $fd_prestat_dir_name (type $tp)))
     4    (func (export "fd_prestat_dir_name") (type $tp)
     5      (call $fd_prestat_dir_name (local.get 0) (local.get 1) (local.get 2))
     6    )
     7    (memory (export "memory") 1 1) ;; memory is required for WASI
     8  )