Skip to content

Commit 05b6515

Browse files
std.c: Unify largefile and time64 support on Linux
This commit follows the work done in `std.os.linux`, in that the `Stat`, `time_t` and `timespec` types have been audited against the libc definitions and fixed appropriately. Targeting the `largefile` and `time64` functions require linking to specific symbols. In order not to over-complicate `std.posix`, which already uses `lfs64_abi`, the logic for selecting the right function has been moved into `std.c`. These functions are imported from the new file `vlfts.zig` along with the two options `largefile_abi` and `time64_abi`. This allows `std.c` to select the proper symbol for e.g. fstatat, which could be one of the following: - `fstatat`. - `fstatat64`. - `__fstatat64_time64`. - `fstatat_time64`. Simple, isn't it...
1 parent c11471c commit 05b6515

File tree

3 files changed

+1064
-253
lines changed

3 files changed

+1064
-253
lines changed

0 commit comments

Comments
 (0)