std.posix: Use separate clock ID enums for clock_gettime() and timerfd_create() (#22627)

This commit is contained in:
Chris Boesch
2025-02-01 07:53:57 +01:00
committed by GitHub
parent c44be99f1a
commit 58c00a829e
6 changed files with 63 additions and 23 deletions

View File

@@ -41,7 +41,7 @@ test "timer" {
var err: linux.E = linux.E.init(epoll_fd);
try expect(err == .SUCCESS);
const timer_fd = linux.timerfd_create(linux.CLOCK.MONOTONIC, .{});
const timer_fd = linux.timerfd_create(linux.TIMERFD_CLOCK.MONOTONIC, .{});
try expect(linux.E.init(timer_fd) == .SUCCESS);
const time_interval = linux.timespec{