mirror of
https://github.com/ziglang/zig.git
synced 2025-02-09 06:00:40 +00:00
Add EPERM to std.os.setsockopt
This commit is contained in:
parent
83fad7d4f7
commit
ec7adeda2b
@ -5482,6 +5482,9 @@ pub const SetSockOptError = error{
|
||||
/// Insufficient resources are available in the system to complete the call.
|
||||
SystemResources,
|
||||
|
||||
// Setting the socket option requires more elevated permissions.
|
||||
PermissionDenied,
|
||||
|
||||
NetworkSubsystemFailed,
|
||||
FileDescriptorNotASocket,
|
||||
SocketNotBound,
|
||||
@ -5514,6 +5517,7 @@ pub fn setsockopt(fd: socket_t, level: u32, optname: u32, opt: []const u8) SetSo
|
||||
ENOPROTOOPT => return error.InvalidProtocolOption,
|
||||
ENOMEM => return error.SystemResources,
|
||||
ENOBUFS => return error.SystemResources,
|
||||
EPERM => return error.PermissionDenied,
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user