| ... | ... | @@ -5482,6 +5482,9 @@ pub const SetSockOptError = error{ |
| 5482 | 5482 | /// Insufficient resources are available in the system to complete the call. |
| 5483 | 5483 | SystemResources, |
| 5484 | 5484 | |
| 5485 | // Setting the socket option requires more elevated permissions. |
| 5486 | PermissionDenied, |
| 5487 | |
| 5485 | 5488 | NetworkSubsystemFailed, |
| 5486 | 5489 | FileDescriptorNotASocket, |
| 5487 | 5490 | SocketNotBound, |
| ... | ... | @@ -5514,6 +5517,7 @@ pub fn setsockopt(fd: socket_t, level: u32, optname: u32, opt: []const u8) SetSo |
| 5514 | 5517 | ENOPROTOOPT => return error.InvalidProtocolOption, |
| 5515 | 5518 | ENOMEM => return error.SystemResources, |
| 5516 | 5519 | ENOBUFS => return error.SystemResources, |
| 5520 | EPERM => return error.PermissionDenied, |
| 5517 | 5521 | else => |err| return unexpectedErrno(err), |
| 5518 | 5522 | } |
| 5519 | 5523 | } |