diff --git a/wasi-filesystem.abi.md b/wasi-filesystem.abi.md index 13ac8dd..e09fb67 100644 --- a/wasi-filesystem.abi.md +++ b/wasi-filesystem.abi.md @@ -130,7 +130,7 @@ Bit: 6 Note: This was called `filestat` in earlier versions of WASI. -Size: 88, Alignment: 8 +Size: 72, Alignment: 8 ### Record Fields @@ -1101,9 +1101,9 @@ Size: 16, Alignment: 8 ---- -#### `descriptor::is-same-file` +#### `descriptor::is-same-object` - Test whether two descriptors refer to the same file or directory. + Test whether two descriptors refer to the same filesystem object. In POSIX, this corresponds to testing whether the two descriptors have the same device (`st_dev`) and inode (`st_ino` or `d_ino`) numbers. @@ -1111,30 +1111,8 @@ Size: 16, Alignment: 8 may be used instead. ##### Params -- `self`: handle -- `other`: handle -##### Results - -- `bool` - ----- - -#### `descriptor::is-same-mountpoint` - - Test whether two descriptors refer to files or directories on the same - mountpoint. - - `rename-at` only works when source and destination are on the same mount - point. This function provides a way of testing whether two files or - directories are on the same mount point. - - In POSIX, this corresponds to testing whether the two descriptors have the - same device (`st_dev`) number. wasi-filesystem does not expose device - numbers, so this function may be used instead. -##### Params - -- `self`: handle -- `other`: handle +- `self`: handle +- `other`: handle ##### Results - `bool`