mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
Return error.UnsupportedKernel for ENOSYS
This commit is contained in:
1 parent
0d8c6a960f
commit
9fabae2a28
1 file changed
+4
-1
@@ -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" {
|
||||
|
||||
Reference in new issue
Block a user