Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
4759b5a
IoUring: use typed Flags and Features for IoUring
bernardassan Sep 28, 2025
fe3d361
replace some more fn flags with Typed Flags
bernardassan Sep 29, 2025
1ff6c45
move Flags that were mistakenly tagged as constants
bernardassan Sep 30, 2025
1fffd9b
Replace STATX_* with StatxMask & StatxAttr
bernardassan Sep 30, 2025
16c563a
Improve organization of fn and structs in IoUring
bernardassan Oct 1, 2025
6bb090c
Replace AT,W,SHUT,SOCK with a packed struct Flag type
bernardassan Oct 1, 2025
cacda43
update some syscall APIs to use the new flags
bernardassan Oct 2, 2025
4f5efb7
Restore deprecated contants using new Flag types
bernardassan Oct 5, 2025
a77d281
Replace MSG with Packed Struct Flags
bernardassan Oct 6, 2025
145fee8
Get test passing for all the newly introduced flags
bernardassan Oct 7, 2025
ccd8fd8
Add So and Sol typed flags
bernardassan Oct 9, 2025
cf884f4
Replace EPOLL struct with an EpollOp enum and Epoll packed struct type
bernardassan Oct 9, 2025
2238aa0
fix error of setting some fields in Epoll to true by default
bernardassan Oct 10, 2025
6c87998
Remove io_uring_sqe.zig from CMakeLists
bernardassan Oct 10, 2025
9853643
Use lower case identifiers for IoUring flags and enums
bernardassan Oct 10, 2025
c10a713
replace direct set of some flags with link_next and set_flags calls
bernardassan Oct 10, 2025
82f9d8c
Remove io_uring bit and pieces from linux.zig
bernardassan Oct 11, 2025
7abc39a
fix use of At in rmdir syscall
bernardassan Oct 11, 2025
dbd89a6
Fix posix.W in process/Child.zig
bernardassan Oct 11, 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