Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change whence_t constant values to match pre-existing agreed-upon values. #106

Merged
merged 3 commits into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions phases/ephemeral/docs/wasi_ephemeral_preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,10 @@ Used by [`__wasi_fd_seek()`](#fd_seek).

Possible values:

- <a href="#whence.set" name="whence.set"></a>**`__WASI_WHENCE_SET`**

Seek relative to start-of-file.

- <a href="#whence.cur" name="whence.cur"></a>**`__WASI_WHENCE_CUR`**

Seek relative to current position.
Expand All @@ -2313,7 +2317,3 @@ Possible values:

Seek relative to end-of-file.

- <a href="#whence.set" name="whence.set"></a>**`__WASI_WHENCE_SET`**

Seek relative to start-of-file.

4 changes: 2 additions & 2 deletions phases/ephemeral/witx/typenames.witx
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,12 @@
;; The position relative to which to set the offset of the file descriptor.
(typename $whence_t
(enum u8
;; Seek relative to start-of-file.
$WHENCE_SET
;; Seek relative to current position.
$WHENCE_CUR
;; Seek relative to end-of-file.
$WHENCE_END
;; Seek relative to start-of-file.
$WHENCE_SET
)
)

Expand Down