diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-06-26 02:48:03 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-29 09:50:41 +0200 |
| commit | 890433e292da449e79c5a8c2efb91f65555da775 (patch) | |
| tree | 458ce0f353eaee091e8ea35c0fc8450dcb336629 /lib/std/math | |
| parent | cafce8c7670e90969b1bedae0efab3df583b11dd (diff) | |
| download | zig-890433e292da449e79c5a8c2efb91f65555da775.tar.gz zig-890433e292da449e79c5a8c2efb91f65555da775.zip | |
std.os.linux: Define timespec as kernel_timespec (64-bit) for riscv32.
This is kind of a hack because the timespec in UAPI headers is actually still
32-bit while __kernel_timespec is 64-bit. But, importantly, all the syscalls
take __kernel_timespec from the get-go (because riscv32 support is so recent).
Defining our timespec this way will allow all the syscall wrappers in
std.os.linux to do the right thing for riscv32. For other 32-bit architectures,
we have to use the 64-bit time syscalls explicitly to solve the Y2038 problem.
Diffstat (limited to 'lib/std/math')
0 files changed, 0 insertions, 0 deletions
