From c2bed92bed3fc8c20679759218d3e4ca9a7ae61b Mon Sep 17 00:00:00 2001 From: Dave Bakker Date: Wed, 7 Aug 2024 09:10:50 +0200 Subject: [PATCH 1/2] Remove `bad-descriptor` error code. This is a relic of Preview 1 and the prototype period of Preview 2 before resource types were implemented. In a correct Component Model implementation, this is not possible to reach. --- wit/types.wit | 2 -- 1 file changed, 2 deletions(-) diff --git a/wit/types.wit b/wit/types.wit index db3d968..a4da664 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -188,8 +188,6 @@ interface types { would-block, /// Connection already in progress, similar to `EALREADY` in POSIX. already, - /// Bad descriptor, similar to `EBADF` in POSIX. - bad-descriptor, /// Device or resource busy, similar to `EBUSY` in POSIX. busy, /// Resource deadlock would occur, similar to `EDEADLK` in POSIX. From beb2a807b560c780107e87ceb5c189ebf2231024 Mon Sep 17 00:00:00 2001 From: Dave Bakker Date: Wed, 7 Aug 2024 09:15:22 +0200 Subject: [PATCH 2/2] Remove `already`, `in-progress` & `message-size` error codes, as those relate to sockets and not filesystems. --- wit/types.wit | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wit/types.wit b/wit/types.wit index a4da664..a27f77e 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -186,8 +186,6 @@ interface types { access, /// Resource unavailable, or operation would block, similar to `EAGAIN` and `EWOULDBLOCK` in POSIX. would-block, - /// Connection already in progress, similar to `EALREADY` in POSIX. - already, /// Device or resource busy, similar to `EBUSY` in POSIX. busy, /// Resource deadlock would occur, similar to `EDEADLK` in POSIX. @@ -200,8 +198,6 @@ interface types { file-too-large, /// Illegal byte sequence, similar to `EILSEQ` in POSIX. illegal-byte-sequence, - /// Operation in progress, similar to `EINPROGRESS` in POSIX. - in-progress, /// Interrupted function, similar to `EINTR` in POSIX. interrupted, /// Invalid argument, similar to `EINVAL` in POSIX. @@ -214,8 +210,6 @@ interface types { loop, /// Too many links, similar to `EMLINK` in POSIX. too-many-links, - /// Message too large, similar to `EMSGSIZE` in POSIX. - message-size, /// Filename too long, similar to `ENAMETOOLONG` in POSIX. name-too-long, /// No such device, similar to `ENODEV` in POSIX.