zig/lib/std/os/linux
Pat Tullmann 298b1886b2 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.
2025-04-30 20:32:04 -07:00
..
bpf linux/bpf: add alignment for helper functions to make compiler happy 2024-11-18 16:19:44 +01:00
aarch64.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
arm.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
bpf.zig lib/std: PermissionDenied/AccessDenied cleanup and fallout 2025-03-24 16:20:45 +01:00
hexagon.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
io_uring_sqe.zig io_uring: add setsockopt/getsockopt 2025-03-05 13:35:52 +01:00
ioctl.zig std.Target: Remove sparcel architecture tag. 2024-07-30 06:30:25 +02:00
IoUring.zig io_uring: refactor buf_reg flags 2025-03-05 13:35:52 +01:00
loongarch64.zig std.os.linux: Add some missing arch bits for loongarch64. 2025-04-07 16:03:22 +02:00
m68k.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
mips.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
mips64.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
pie.zig std.os.linux.pie: Fix a relocation error for s390x. 2024-11-24 22:11:17 +01:00
powerpc.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
powerpc64.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
riscv32.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
riscv64.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
s390x.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
seccomp.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
sparc64.zig std.os.linux: Add missing time_t definition for sparc64. 2025-04-28 12:05:19 +02:00
syscalls.zig generate_linux_syscalls: Generate syscalls for x32. 2024-11-02 10:42:53 +01:00
test.zig std.os.linux: export kernel-sized sigset_t and operations 2025-04-30 20:32:04 -07:00
thumb.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
tls.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
vdso.zig std.dynamic_library: update to new elf API 2024-10-12 10:44:17 -07:00
x86.zig std.os.linux: use heap.pageSize() instead of MMAP2_UNIT 2025-04-07 13:37:01 +02:00
x86_64.zig std.os.linux: export kernel-sized sigset_t and operations 2025-04-30 20:32:04 -07:00