mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.posix.setsockopt: EOPNOTSUPP can be returned
On Linux, set REUSEPORT option on an unix socket returns a EOPNOTSUPP
error.
See 5b0af621c3
This commit is contained in:
parent
530335b572
commit
f3c29dcb24
@ -6752,6 +6752,7 @@ pub const SetSockOptError = error{
|
||||
// Setting the socket option requires more elevated permissions.
|
||||
PermissionDenied,
|
||||
|
||||
OperationNotSupported,
|
||||
NetworkSubsystemFailed,
|
||||
FileDescriptorNotASocket,
|
||||
SocketNotBound,
|
||||
@ -6787,6 +6788,7 @@ pub fn setsockopt(fd: socket_t, level: i32, optname: u32, opt: []const u8) SetSo
|
||||
.NOBUFS => return error.SystemResources,
|
||||
.PERM => return error.PermissionDenied,
|
||||
.NODEV => return error.NoDevice,
|
||||
.OPNOTSUPP => return error.OperationNotSupported,
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user