@@ -28,7 +28,9 @@ pub fn available() bool {
2828}
2929
3030pub const NOTE_EXIT_FLAGS = switch (builtin .os .tag ) {
31- .ios , .macos , = > std .c .NOTE .EXIT | std .c .NOTE .EXITSTATUS ,
31+ .ios ,
32+ .macos ,
33+ = > std .c .NOTE .EXIT | std .c .NOTE .EXITSTATUS ,
3234 .freebsd = > std .c .NOTE .EXIT ,
3335 else = > @compileError ("kqueue not supported yet for target OS" ),
3436};
@@ -972,7 +974,7 @@ pub const Loop = struct {
972974 ///// Sends an empty message to this loop's mach port so that it wakes
973975 ///// up if it is blocking on kevent().
974976 //fn wakeup(self: *Loop) !void {
975- //try self.mach_port.notify();
977+ //try self.mach_port.notify();
976978 //}
977979};
978980
@@ -1088,18 +1090,18 @@ pub const Completion = struct {
10881090 // .array => |*arr| arr,
10891091 // };
10901092
1091- // The kevent below waits for a machport to have a message
1092- // available AND automatically reads the message into the
1093- // buffer since MACH_RCV_MSG is set.
1094- //break :kevent .{
1095- // .ident = @intCast(v.port),
1096- // .filter = std.c.EVFILT.MACHPORT,
1097- // .flags = std.c.EV.ADD | std.c.EV.ENABLE,
1098- // .fflags = darwin.MACH_RCV_MSG,
1099- // .data = 0,
1100- // .udata = @intFromPtr(self),
1101- // .ext = .{ @intFromPtr(slice.ptr), slice.len },
1102- //};
1093+ // The kevent below waits for a machport to have a message
1094+ // available AND automatically reads the message into the
1095+ // buffer since MACH_RCV_MSG is set.
1096+ //break :kevent .{
1097+ // .ident = @intCast(v.port),
1098+ // .filter = std.c.EVFILT.MACHPORT,
1099+ // .flags = std.c.EV.ADD | std.c.EV.ENABLE,
1100+ // .fflags = darwin.MACH_RCV_MSG,
1101+ // .data = 0,
1102+ // .udata = @intFromPtr(self),
1103+ // .ext = .{ @intFromPtr(slice.ptr), slice.len },
1104+ //};
11031105 //},
11041106
11051107 .proc = > | v | kevent_init (.{
@@ -1596,12 +1598,12 @@ pub const ReadError = posix.KEventError ||
15961598 posix .PReadError ||
15971599 posix .RecvFromError ||
15981600 error {
1599- EOF ,
1600- Canceled ,
1601- MissingKevent ,
1602- PermissionDenied ,
1603- Unexpected ,
1604- };
1601+ EOF ,
1602+ Canceled ,
1603+ MissingKevent ,
1604+ PermissionDenied ,
1605+ Unexpected ,
1606+ };
16051607
16061608pub const WriteError = posix .KEventError ||
16071609 posix .WriteError ||
@@ -1610,10 +1612,10 @@ pub const WriteError = posix.KEventError ||
16101612 posix .SendMsgError ||
16111613 posix .SendToError ||
16121614 error {
1613- Canceled ,
1614- PermissionDenied ,
1615- Unexpected ,
1616- };
1615+ Canceled ,
1616+ PermissionDenied ,
1617+ Unexpected ,
1618+ };
16171619
16181620// pub const MachPortError = posix.KEventError || error{
16191621// Canceled,
0 commit comments