Commit f3c29dcb24
Changed files (1)
lib
std
lib/std/posix.zig
@@ -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),
}
}