-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove errno codes that aren't used by filesystem APIs. (#80)
* Remove errno codes that aren't used by filesystem APIs. Instead of WASI having a single errno space, each WASI interface defines its own error types. POSIX compatibility is provided by the libc layer. Codes used in filesystem APIs but not relevant to WASI: - nfile - This may be reported by libc, but wasi-filesystem itself doesn't because it will let the handle mechanism take care of everything. - mfile - WASI programs should not be able to observe "the system" having an open-file limit. - fault - This is used in POSIX to report invalid pointers, however in WASI that's handled in the bindings layer instead of in individual interfaces. Codes only used in network APIs (these will be defined in wasi-sockets): - afnosupport - addrinuse - addrnotavail - noprotoopt - destaddrreq - hostunreach - isconn - connaborted - connrefused - connreset - netdown - netreset - netunreach - timedout - multihop - nobufs Codes only used in other non-filesystem APIs: - toobig - badmsg - canceled - idrm - noexec - nolink - nomsg - ownerdead - range - srch - stale * Update wasi-filesystem.abi.md.
- Loading branch information
1 parent
8cdff9c
commit 633c628
Showing
2 changed files
with
0 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters