unix: remove artificial nanosecond truncation in uv_fs_futime

The uv__fs_to_timespec function in src/unix/fs.c currently truncates
nanoseconds to microseconds. This was originally implemented for
consistency with other platforms, but as noted in a TODO comment,
utimesat() supports nanosecond resolution.

This commit removes the truncation to allow full nanosecond precision
where supported by the underlying filesystem. It also improves the
double-to-timespec conversion to use rounding, fixing precision issues.
This commit is contained in:
Bitshifter-9 2025-11-27 09:20:30 +05:30
parent 8e024629fe
commit 19d7a319ba
2 changed files with 863 additions and 1355 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff