Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Feb 1, 2025

Conversation

chrboesch
Copy link
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

lib/std/c/freebsd.zig Outdated Show resolved Hide resolved
lib/std/os/linux.zig Outdated Show resolved Hide resolved
lib/std/os/linux.zig Outdated Show resolved Hide resolved
lib/std/os/linux/test.zig Outdated Show resolved Hide resolved
lib/std/posix.zig Outdated Show resolved Hide resolved
lib/std/posix.zig Outdated Show resolved Hide resolved
lib/std/posix.zig Outdated Show resolved Hide resolved
lib/std/posix.zig Outdated Show resolved Hide resolved
@alexrp
Copy link
Member

alexrp commented Jan 27, 2025

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

lib/std/c/freebsd.zig Outdated Show resolved Hide resolved
lib/std/posix.zig Outdated Show resolved Hide resolved
Copy link
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
Contributor Author

..such a change can be a future PR.

agree

@chrboesch
Copy link
Contributor Author

Looks like aarch64-windows ci doesn't work?

@alexrp
Copy link
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
Contributor Author

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

@alexrp alexrp merged commit 58c00a8 into ziglang:master Feb 1, 2025
10 checks passed
@chrboesch chrboesch deleted the pr21347 branch February 1, 2025 12:33
trilowy added a commit to trilowy/http.zig that referenced this pull request Feb 2, 2025
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