diff --git a/wasi-filesystem.abi.md b/wasi-filesystem.abi.md index 34d1ec0..3dc7f0c 100644 --- a/wasi-filesystem.abi.md +++ b/wasi-filesystem.abi.md @@ -26,7 +26,7 @@ Size: 8, Alignment: 8 Size: 8, Alignment: 8 -## `info`: record +## `fd-info`: record Information associated with a descriptor. @@ -36,11 +36,11 @@ Size: 2, Alignment: 1 ### Record Fields -- [`type`](#info.type): [`type`](#type) +- [`type`](#fd_info.type): [`type`](#type) The type of filesystem object referenced by a descriptor. -- [`flags`](#info.flags): [`flags`](#flags) +- [`flags`](#fd_info.flags): [`flags`](#flags) Flags associated with a descriptor. @@ -657,8 +657,8 @@ Size: 16, Alignment: 8 ##### Params - `self`: handle -- `offset`: `u64` -- `len`: `u64` +- `offset`: [`filesize`](#filesize) +- `len`: [`size`](#size) - `advice`: [`advice`](#advice) ##### Results @@ -693,7 +693,7 @@ Size: 16, Alignment: 8 - `self`: handle ##### Results -- result<[`info`](#info), [`errno`](#errno)> +- result<[`fd-info`](#fd_info), [`errno`](#errno)> ---- diff --git a/wasi-filesystem.wit.md b/wasi-filesystem.wit.md index 5a06498..cedcd5d 100644 --- a/wasi-filesystem.wit.md +++ b/wasi-filesystem.wit.md @@ -40,12 +40,12 @@ type filedelta = s64 type timestamp = u64 ``` -## `info` +## `fd-info` ```wit /// Information associated with a descriptor. /// /// Note: This was called `fdstat` in earlier versions of WASI. -record info { +record fd-info { /// The type of filesystem object referenced by a descriptor. %type: %type, /// Flags associated with a descriptor. @@ -413,15 +413,15 @@ resource descriptor { /// This is similar to `posix_fadvise` in POSIX. fadvise: func( /// The offset within the file to which the advisory applies. - offset: u64, + offset: filesize, /// The length of the region to which the advisory applies. - len: u64, + len: size, /// The advice. advice: advice ) -> result<_, errno> ``` -## `fdatasync` +## `datasync` ```wit /// Synchronize the data of a file to disk. /// @@ -437,7 +437,7 @@ datasync: func() -> result<_, errno> /// as additional fields. /// /// Note: This was called `fdstat_get` in earlier versions of WASI. -info: func() -> result +info: func() -> result ``` ## `set-size`