Skip to content

Commit

Permalink
Update wasi-filesystem.abi.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jan 18, 2023
1 parent 3e69639 commit 54ade91
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions wasi-filesystem.abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -1101,40 +1101,18 @@ Size: 16, Alignment: 8

----

#### <a href="#descriptor_is_same_file" name="descriptor_is_same_file"></a> `descriptor::is-same-file`
#### <a href="#descriptor_is_same_object" name="descriptor_is_same_object"></a> `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.
wasi-filesystem does not expose device and inode numbers, so this function
may be used instead.
##### Params

- <a href="#descriptor_is_same_file.self" name="descriptor_is_same_file.self"></a> `self`: handle<descriptor>
- <a href="#descriptor_is_same_file.other" name="descriptor_is_same_file.other"></a> `other`: handle<descriptor>
##### Results

- `bool`

----

#### <a href="#descriptor_is_same_mountpoint" name="descriptor_is_same_mountpoint"></a> `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

- <a href="#descriptor_is_same_mountpoint.self" name="descriptor_is_same_mountpoint.self"></a> `self`: handle<descriptor>
- <a href="#descriptor_is_same_mountpoint.other" name="descriptor_is_same_mountpoint.other"></a> `other`: handle<descriptor>
- <a href="#descriptor_is_same_object.self" name="descriptor_is_same_object.self"></a> `self`: handle<descriptor>
- <a href="#descriptor_is_same_object.other" name="descriptor_is_same_object.other"></a> `other`: handle<descriptor>
##### Results

- `bool`
Expand Down

0 comments on commit 54ade91

Please sign in to comment.