Skip to content

Unexpected error codes #155

@badeend

Description

@badeend

The error-code enum contains a few cases that seem odd to me.

First and foremost:

/// Bad descriptor, similar to `EBADF` in POSIX.
bad-descriptor,

Assuming the WASI host is implemented correctly, the WASI guest should never be able to observe this, right?


Additionally, AFAIK, the following error codes are specific to sockets and do not apply to filesystem operations:

/// Connection already in progress, similar to `EALREADY` in POSIX.
already,
/// Operation in progress, similar to `EINPROGRESS` in POSIX.
in-progress,
/// Message too large, similar to `EMSGSIZE` in POSIX.
message-size,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions