Skip to content

std.os.linux: Retranslate and port some ioctl-related types and values. #21000

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

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Aug 8, 2024

Wanted to make sure that these types/values are correct for the architectures we currently have std.os.linux arch bits for (arm, mips, powerpc, riscv, sparc, x86). Decided it would be easier to just retranslate them all, especially since some seemed to have been manually expanded rather than using our ioctl construction helpers.

For some of these, I deliberately chose not to try to merge multiple architectures. This is especially important for T; it quickly becomes an unmaintainable mess that way. Better to reflect what the actual UAPI headers do in this case.

Also added a few missing types (termios2, serial_rs485, etc).

@andrewrk andrewrk merged commit ae5bf2f into ziglang:master Aug 9, 2024
10 checks passed
@alexrp alexrp deleted the linux-ioctls branch August 9, 2024 20:11
linusg added a commit to linusg/zig that referenced this pull request Aug 11, 2024
andrewrk pushed a commit that referenced this pull request Aug 12, 2024
SammyJames pushed a commit to SammyJames/zig that referenced this pull request Aug 13, 2024
richerfu pushed a commit to richerfu/zig that referenced this pull request Oct 28, 2024
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.

2 participants