aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorPat Tullmann <pat.github@tullmann.org>2025-04-13 16:14:25 -0700
committerPat Tullmann <pat.github@tullmann.org>2025-04-30 20:32:04 -0700
commit298b1886b2b35b168589026d075d14206d6e3430 (patch)
tree20316f3fc1a112b577dbc5ab825baffa574db2c0 /src/codegen
parent51654aea877d1da92f7f2ad2c6c781c73e08d7f0 (diff)
downloadzig-298b1886b2b35b168589026d075d14206d6e3430.tar.gz
zig-298b1886b2b35b168589026d075d14206d6e3430.zip
std.os.linux: export kernel-sized sigset_t and operations
The kernel ABI sigset_t is smaller than the glibc one. Define the right-sized sigset_t and fixup the sigaction() wrapper to leverage it. The Sigaction wrapper here is not an ABI, so relax it (drop the "extern" and the "restorer" fields), the existing `k_sigaction` is the ABI sigaction struct. Linux defines `sigset_t` with a c_ulong, so it can be 32-bit or 64-bit, depending on the platform. This can make a difference on big-endian systems. Patch up `ucontext_t` so that this change doesn't impact its layout. AFAICT, its currently the glibc layout.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions