-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
std.os.linux: Fix bunch of compilation errors #21138
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
Conversation
e85bb51 to
febfd18
Compare
lib/std/os/linux.zig
Outdated
|
|
||
| /// Wait on a futex. | ||
| /// Identical to `FUTEX.FUTEX_WAIT_BITSET`, except it is part of the futex2 family of calls. | ||
| /// Identical to the traditional FUTEX_WAIT_BITSET op, except it is part of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Please keep the backticks (futex2 below should really use them as well).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've restored them. Is it just a stylistic choice or do they serve some kind of purpose? I'm asking out of curiosity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc comments currently use a subset of Markdown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, that makes sense. Thanks
c11c542 to
a5bd5b2
Compare
| pub const IntInfo = packed struct(u32) { | ||
| bits: u8, | ||
| unused: u8, | ||
| reserved_1: u8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| reserved_1: u8, | |
| reserved_1: u8 = 0, |
| char = 1 << 1, | ||
| boolean = 1 << 2, | ||
| }, | ||
| reserved_2: u4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| reserved_2: u4, | |
| reserved_2: u4 = 0, |
* Correct layout of IntInfo according to https://www.kernel.org/doc/html/latest/bpf/btf.html#btf-kind-int * Fix VFS errors * Fix std.os.linux.sendmmsg * Fix std.os.linux.sigismember. Add tests * Fix futex2 functions
Fixes for the
std.os.linuxcompilation errors reported in #21094