Skip to content

std.posix: Rewriting enums to seperate clock IDs for clock_gettime() and timerfd_create() - Follow-up#22627

Merged
alexrp merged 8 commits into
ziglang:masterfrom
chrboesch:pr21347
Feb 1, 2025
Merged

std.posix: Rewriting enums to seperate clock IDs for clock_gettime() and timerfd_create() - Follow-up#22627
alexrp merged 8 commits into
ziglang:masterfrom
chrboesch:pr21347

Conversation

@chrboesch
Copy link
Copy Markdown
Contributor

Follow-up PR of #21347, as it was accidentally deleted.
Incorporated the latest suggestions from @alexrp to better distinguish CLOCK for clock_gettime() and TIMERFD_CLOCK for timerfd_create().

fixes #20334

Comment thread lib/std/c/freebsd.zig Outdated
Comment thread lib/std/os/linux.zig Outdated
Comment thread lib/std/os/linux.zig Outdated
Comment thread lib/std/os/linux/test.zig Outdated
Comment thread lib/std/posix.zig Outdated
Comment thread lib/std/posix.zig Outdated
Comment thread lib/std/posix.zig Outdated
Comment thread lib/std/posix.zig Outdated
@alexrp
Copy link
Copy Markdown
Member

alexrp commented Jan 27, 2025

Looks ok to me now. Let's see what CI says.

Comment thread lib/std/c/freebsd.zig Outdated
Comment thread lib/std/posix.zig Outdated
Copy link
Copy Markdown
Member

@alexrp alexrp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; LGTM.

A cleanup opportunity here is to remove the CLOCK/TIMERFD_CLOCK aliases since I'm not convinced they add any value over just using the clockid_t/timerfd_clockid_t enums directly. But since CLOCK was already here, such a change can be a future PR.

@alexrp alexrp enabled auto-merge (squash) January 29, 2025 10:27
@chrboesch
Copy link
Copy Markdown
Contributor Author

..such a change can be a future PR.

agree

@chrboesch
Copy link
Copy Markdown
Contributor Author

Looks like aarch64-windows ci doesn't work?

@alexrp
Copy link
Copy Markdown
Member

alexrp commented Jan 30, 2025

It's just catching up. It's by far our slowest CI machine and it's been very busy over the past few days due to merging a lot of PRs.

@chrboesch
Copy link
Copy Markdown
Contributor Author

Didn't work, no runner were available within 1 day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

std.posix.timerfd_create can reach unreachable code

2 participants