authorgravatar for emilliken@gmail.commllken <emilliken@gmail.com> 2022-10-06 14:21:59+07:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-10-11 17:49:30+02:00
log42a3b60c331cf01d1ab80eb79e959bc86397f75b
tree208f9155046f271edefbb315edeae8e98bd71db5
parent697e22caa49716369dff6c86461b94fe10b0a009

io_uring: allow for nullable arguments


1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/os/linux/io_uring.zig+4-4
...@@ -474,8 +474,8 @@ pub const IO_Uring = struct {...@@ -474,8 +474,8 @@ pub const IO_Uring = struct {
474 self: *IO_Uring,474 self: *IO_Uring,
475 user_data: u64,475 user_data: u64,
476 fd: os.fd_t,476 fd: os.fd_t,
477 addr: *os.sockaddr,477 addr: ?*os.sockaddr,
478 addrlen: *os.socklen_t,478 addrlen: ?*os.socklen_t,
479 flags: u32,479 flags: u32,
480 ) !*linux.io_uring_sqe {480 ) !*linux.io_uring_sqe {
481 const sqe = try self.get_sqe();481 const sqe = try self.get_sqe();
...@@ -1292,8 +1292,8 @@ pub inline fn __io_uring_prep_poll_mask(poll_mask: u32) u32 {...@@ -1292,8 +1292,8 @@ pub inline fn __io_uring_prep_poll_mask(poll_mask: u32) u32 {
1292pub fn io_uring_prep_accept(1292pub fn io_uring_prep_accept(
1293 sqe: *linux.io_uring_sqe,1293 sqe: *linux.io_uring_sqe,
1294 fd: os.fd_t,1294 fd: os.fd_t,
1295 addr: *os.sockaddr,1295 addr: ?*os.sockaddr,
1296 addrlen: *os.socklen_t,1296 addrlen: ?*os.socklen_t,
1297 flags: u32,1297 flags: u32,
1298) void {1298) void {
1299 // `addr` holds a pointer to `sockaddr`, and `addr2` holds a pointer to socklen_t`.1299 // `addr` holds a pointer to `sockaddr`, and `addr2` holds a pointer to socklen_t`.