mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
cleanup openbsd errors more
This commit is contained in:
@@ -104,22 +104,17 @@ TCP_Recv_Error :: enum c.int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UDP_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 buffer is too small to fit the entire message, and the message was truncated.
|
||||||
Truncated = c.int(os.EMSGSIZE),
|
Not_Socket = c.int(os.ENOTSOCK), // The so-called socket is not an open socket.
|
||||||
// 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.
|
||||||
Not_Socket = c.int(os.ENOTSOCK),
|
Bad_Buffer = c.int(os.EFAULT), // The buffer did not point to a valid location in memory.
|
||||||
// The so-called socket is, in fact, not even a valid descriptor.
|
Interrupted = c.int(os.EINTR), // A signal occurred before any data was transmitted. See signal(7).
|
||||||
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),
|
|
||||||
|
|
||||||
// The send timeout duration passed before all data was sent.
|
// The send timeout duration passed before all data was sent.
|
||||||
// See Socket_Option.Send_Timeout.
|
// See Socket_Option.Send_Timeout.
|
||||||
// NOTE: No, really. Presumably this means something different for nonblocking sockets...
|
// NOTE: No, really. Presumably this means something different for nonblocking sockets...
|
||||||
Timeout = c.int(os.EWOULDBLOCK),
|
Timeout = c.int(os.EWOULDBLOCK),
|
||||||
Socket_Not_Bound = c.int(os.EINVAL), // The socket must be bound for this operation, but isn't.
|
Socket_Not_Bound = c.int(os.EINVAL), // The socket must be bound for this operation, but isn't.
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
Reference in New Issue
Block a user