Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Add a badf error code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 8, 2022
1 parent c903016 commit 3f2ea63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,7 @@ impl From<wasi_filesystem::Errno> for Errno {
wasi_filesystem::Errno::Again => ERRNO_AGAIN,
wasi_filesystem::Errno::Already => ERRNO_ALREADY,
wasi_filesystem::Errno::Badmsg => ERRNO_BADMSG,
wasi_filesystem::Errno::Badf => ERRNO_BADF,
wasi_filesystem::Errno::Busy => ERRNO_BUSY,
wasi_filesystem::Errno::Canceled => ERRNO_CANCELED,
wasi_filesystem::Errno::Child => ERRNO_CHILD,
Expand Down
2 changes: 2 additions & 0 deletions wit/wasi.wit
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ interface wasi-filesystem {
already,
/// Bad message.
badmsg,
/// Bad descriptor.
badf,
/// Device or resource busy.
busy,
/// Operation canceled.
Expand Down

0 comments on commit 3f2ea63

Please sign in to comment.