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:
parent
8e024629fe
commit
19d7a319ba
904
src/unix/fs.c
904
src/unix/fs.c
File diff suppressed because it is too large
Load Diff
1314
test/test-fs.c
1314
test/test-fs.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user