Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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...
- Loading branch information