mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Return error.UnsupportedKernel for ENOSYS
This commit is contained in:
parent
0d8c6a960f
commit
9fabae2a28
@ -623,7 +623,10 @@ pub const CompletionQueue = struct {
|
||||
|
||||
inline fn check_errno(res: usize) !void {
|
||||
const errno = linux.getErrno(res);
|
||||
if (errno != 0) return os.unexpectedErrno(errno);
|
||||
if (errno != 0) {
|
||||
if (errno == linux.ENOSYS) return error.UnsupportedKernel;
|
||||
return os.unexpectedErrno(errno);
|
||||
}
|
||||
}
|
||||
|
||||
test "queue_nop" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user