Skip to content

Commit

Permalink
update zig
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Aug 24, 2023
1 parent 0d30e08 commit a702dfc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 36 additions & 36 deletions src/backend/kqueue.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,28 @@ pub const Operation = union(OperationType) {
addr: std.net.Address,
},

read: struct {
fd: std.os.fd_t,
buffer: ReadBuffer,
},

write: struct {
fd: std.os.fd_t,
buffer: WriteBuffer,
},

pread: struct {
fd: std.os.fd_t,
buffer: ReadBuffer,
offset: u64,
},

pwrite: struct {
fd: std.os.fd_t,
buffer: WriteBuffer,
offset: u64,
},

send: struct {
fd: os.fd_t,
buffer: WriteBuffer,
Expand All @@ -1486,72 +1508,50 @@ pub const Operation = union(OperationType) {
addr_size: os.socklen_t = @sizeOf(os.sockaddr),
},

write: struct {
close: struct {
fd: std.os.fd_t,
buffer: WriteBuffer,
},

pwrite: struct {
fd: std.os.fd_t,
buffer: WriteBuffer,
offset: u64,
shutdown: struct {
socket: std.os.socket_t,
how: std.os.ShutdownHow = .both,
},

read: struct {
fd: std.os.fd_t,
buffer: ReadBuffer,
},
timer: Timer,

pread: struct {
fd: std.os.fd_t,
buffer: ReadBuffer,
offset: u64,
cancel: struct {
c: *Completion,
},

machport: struct {
port: os.system.mach_port_name_t,
buffer: ReadBuffer,
},

shutdown: struct {
socket: std.os.socket_t,
how: std.os.ShutdownHow = .both,
},

close: struct {
fd: std.os.fd_t,
},

proc: struct {
pid: std.os.pid_t,
flags: u32 = os.system.NOTE_EXIT | os.system.NOTE_EXITSTATUS,
},

timer: Timer,

cancel: struct {
c: *Completion,
},
};

pub const Result = union(OperationType) {
noop: void,
accept: AcceptError!os.socket_t,
connect: ConnectError!void,
close: CloseError!void,
read: ReadError!usize,
write: WriteError!usize,
pread: ReadError!usize,
pwrite: WriteError!usize,
send: WriteError!usize,
recv: ReadError!usize,
sendto: WriteError!usize,
recvfrom: ReadError!usize,
write: WriteError!usize,
pwrite: WriteError!usize,
read: ReadError!usize,
pread: ReadError!usize,
machport: MachPortError!void,
proc: ProcError!u32,
close: CloseError!void,
shutdown: ShutdownError!void,
timer: TimerError!TimerTrigger,
cancel: CancelError!void,
machport: MachPortError!void,
proc: ProcError!u32,
};

pub const CancelError = error{
Expand Down

0 comments on commit a702dfc

Please sign in to comment.