Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
16aecb8
IoUring: use typed Flags and Features for IoUring
bernardassan Sep 28, 2025
d683a3d
replace some more fn flags with Typed Flags
bernardassan Sep 29, 2025
b00afdb
move Flags that were mistakenly tagged as constants
bernardassan Sep 30, 2025
30f36b8
Replace STATX_* with StatxMask & StatxAttr
bernardassan Sep 30, 2025
5b92d56
Improve organization of fn and structs in IoUring
bernardassan Oct 1, 2025
46b428b
Replace AT,W,SHUT,SOCK with a packed struct Flag type
bernardassan Oct 1, 2025
cd8db15
update some syscall APIs to use the new flags
bernardassan Oct 2, 2025
cf74eca
Restore deprecated contants using new Flag types
bernardassan Oct 5, 2025
0b1a61d
Replace MSG with Packed Struct Flags
bernardassan Oct 6, 2025
5ea081e
Get test passing for all the newly introduced flags
bernardassan Oct 7, 2025
6f24e55
Add So and Sol typed flags
bernardassan Oct 9, 2025
5620413
Replace EPOLL struct with an EpollOp enum and Epoll packed struct type
bernardassan Oct 9, 2025
062b21d
fix error of setting some fields in Epoll to true by default
bernardassan Oct 10, 2025
c1639d9
Remove io_uring_sqe.zig from CMakeLists
bernardassan Oct 10, 2025
8169864
Use lower case identifiers for IoUring flags and enums
bernardassan Oct 10, 2025
fa8b3d0
replace direct set of some flags with link_next and set_flags calls
bernardassan Oct 10, 2025
023db3f
Remove io_uring bit and pieces from linux.zig
bernardassan Oct 11, 2025
f9bcfbe
fix use of At in rmdir syscall
bernardassan Oct 11, 2025
f1e3f43
Fix posix.W in process/Child.zig
bernardassan Oct 11, 2025
9945f7f
Add mips defination for Epoll
bernardassan Oct 12, 2025
2967988
Add and improve comments
bernardassan Oct 12, 2025
42b54e6
Remove unnecessary use of @as coercion
bernardassan Oct 12, 2025
cda441d
Implement more IoUring register functions
bernardassan Oct 12, 2025
7128884
Remove unnecessary null to optional anyopaque coercion
bernardassan Oct 12, 2025
3c25080
Move buf_ring_* functions into BufferRing type as methods
bernardassan Oct 13, 2025
fe648af
Implement some more IoUring operations
bernardassan Oct 14, 2025
0caafe3
add IoUring send_bundle, send_to, recv_multishot, sync_file_range
bernardassan Oct 15, 2025
e40e539
add msg_ring_*, setxattr and getxattr IoUring operations
bernardassan Oct 17, 2025
dba0c81
IoUring: Implement set_iowait functionality
bernardassan Oct 17, 2025
8eda458
Add XattrSource to decide how to prepare set/getxattr operations
bernardassan Oct 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ set(ZIG_STAGE2_SOURCES
lib/std/os/linux.zig
lib/std/os/linux.zig
lib/std/os/linux/IoUring.zig
lib/std/os/linux/io_uring_sqe.zig
lib/std/os/linux/x86_64.zig
lib/std/os/linux/x86_64.zig
lib/std/os/windows.zig
Expand Down
2 changes: 1 addition & 1 deletion lib/std/fs.zig
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub fn cwd() Dir {
} else if (native_os == .wasi) {
return .{ .fd = std.options.wasiCwd() };
} else {
return .{ .fd = posix.AT.FDCWD };
return .{ .fd = posix.AT.fdcwd };
}
}

Expand Down
10 changes: 8 additions & 2 deletions lib/std/fs/Dir.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2812,8 +2812,14 @@ pub fn statFile(self: Dir, sub_path: []const u8) StatFileError!Stat {
const rc = linux.statx(
self.fd,
&sub_path_c,
linux.AT.NO_AUTOMOUNT,
linux.STATX_TYPE | linux.STATX_MODE | linux.STATX_ATIME | linux.STATX_MTIME | linux.STATX_CTIME,
.{ .no_automount = true },
.{
.type = true,
.mode = true,
.atime = true,
.mtime = true,
.ctime = true,
},
&stx,
);

Expand Down
10 changes: 8 additions & 2 deletions lib/std/fs/File.zig
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,14 @@ pub fn stat(self: File) StatError!Stat {
const rc = linux.statx(
self.handle,
"",
linux.AT.EMPTY_PATH,
linux.STATX_TYPE | linux.STATX_MODE | linux.STATX_ATIME | linux.STATX_MTIME | linux.STATX_CTIME,
.{ .empty_path = true },
.{
.type = true,
.mode = true,
.atime = true,
.mtime = true,
.ctime = true,
},
&stx,
);

Expand Down
Loading