diff options
| author | jacob gw <jacoblevgw@gmail.com> | 2021-03-16 17:14:00 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-16 14:48:31 -0700 |
| commit | 83d0c2ed67622ba30a56da0356f4dcd23c126273 (patch) | |
| tree | b46e2de618775e859a541b5533eb83782621d0bf /lib/std | |
| parent | 6787f163eb6db2b8b89c2ea6cb51d63606487e12 (diff) | |
| download | zig-83d0c2ed67622ba30a56da0356f4dcd23c126273.tar.gz zig-83d0c2ed67622ba30a56da0356f4dcd23c126273.zip | |
std: make all errors in os.zig public
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index 362a58f7fb..8b552d05a7 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -2879,7 +2879,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi unreachable; } -const ListenError = error{ +pub const ListenError = error{ /// Another socket is already listening on the same port. /// For Internet domain sockets, the socket referred to by sockfd had not previously /// been bound to an address and, upon attempting to bind it to an ephemeral port, it @@ -5827,7 +5827,7 @@ pub fn tcsetattr(handle: fd_t, optional_action: TCSA, termios_p: termios) Termio } } -const IoCtl_SIOCGIFINDEX_Error = error{ +pub const IoCtl_SIOCGIFINDEX_Error = error{ FileSystem, InterfaceNotFound, } || UnexpectedError; |
