mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-09 15:19:07 +00:00
* Truncate user and group ids
Calls to `getuid`, `getgid` and their `eid` variants fail to compile on
64bit Linux systems because the return value of the syscall is of
`usize` and needs to be truncated to fit the size of `uid_t` that is 32
bit.
Thanks to @FireFox317 for figuring this out in Zig's Discord channel!
* Add a regression test for user and group ids
* Replace @truncate with @intCast
This should be safe because `uid_t` will be 32-bit.
* Add missing import for getauxval
* Add missing package names
* Revert "Add missing import for getauxval"
This reverts commit
|
||
|---|---|---|
| .. | ||
| bpf | ||
| arm-eabi.zig | ||
| arm64.zig | ||
| bpf.zig | ||
| i386.zig | ||
| io_uring.zig | ||
| mips.zig | ||
| powerpc64.zig | ||
| riscv64.zig | ||
| sparc64.zig | ||
| start_pie.zig | ||
| test.zig | ||
| tls.zig | ||
| vdso.zig | ||
| x86_64.zig | ||