aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Davidson <colrdavidson@gmail.com>2023-03-02 06:47:05 -0800
committerColin Davidson <colrdavidson@gmail.com>2023-03-02 06:47:05 -0800
commit5b55fbff23732254dc85f9d1656730c2ff8a34fb (patch)
tree922c5c36353222902e15da54be143160f5314fe0
parent64f200dc7419a3b1b8b4ae387d5add57b680ca3e (diff)
cleanup openbsd errors more
-rw-r--r--core/net/errors_openbsd.odin19
1 files changed, 7 insertions, 12 deletions
diff --git a/core/net/errors_openbsd.odin b/core/net/errors_openbsd.odin
index 51d9cc7e8..781d7837a 100644
--- a/core/net/errors_openbsd.odin
+++ b/core/net/errors_openbsd.odin
@@ -104,22 +104,17 @@ TCP_Recv_Error :: enum c.int {
}
UDP_Recv_Error :: enum c.int {
- // The buffer is too small to fit the entire message, and the message was truncated.
- Truncated = c.int(os.EMSGSIZE),
- // The so-called socket is not an open socket.
- Not_Socket = c.int(os.ENOTSOCK),
- // The so-called socket is, in fact, not even a valid descriptor.
- Not_Descriptor = c.int(os.EBADF),
- // The buffer did not point to a valid location in memory.
- Bad_Buffer = c.int(os.EFAULT),
- // A signal occurred before any data was transmitted. See signal(7).
- Interrupted = c.int(os.EINTR),
+ Truncated = c.int(os.EMSGSIZE), // The buffer is too small to fit the entire message, and the message was truncated.
+ Not_Socket = c.int(os.ENOTSOCK), // The so-called socket is not an open socket.
+ Not_Descriptor = c.int(os.EBADF), // The so-called socket is, in fact, not even a valid descriptor.
+ Bad_Buffer = c.int(os.EFAULT), // The buffer did not point to a valid location in memory.
+ Interrupted = c.int(os.EINTR), // A signal occurred before any data was transmitted. See signal(7).
// The send timeout duration passed before all data was sent.
// See Socket_Option.Send_Timeout.
// NOTE: No, really. Presumably this means something different for nonblocking sockets...
- Timeout = c.int(os.EWOULDBLOCK),
- Socket_Not_Bound = c.int(os.EINVAL), // The socket must be bound for this operation, but isn't.
+ Timeout = c.int(os.EWOULDBLOCK),
+ Socket_Not_Bound = c.int(os.EINVAL), // The socket must be bound for this operation, but isn't.
}
// TODO