[PATCH] touch: add config option to set microsecond timestamps
Peter D
urmum69 at snopyta.org
Thu Apr 8 10:39:22 UTC 2021
On Thu Apr 8, 2021 at 9:24 AM BST, Rasmus Villemoes wrote:
> Why not go all the way and start using utimensat() and do nanoseconds?
> That's the resolution presented in struct stat, and what most file
> systems store - without that, it's not possible to accurately replicate
> one file's timestamps on another. Also, POSIX nowadays specifies touch
> in terms of utimensat()
> <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/touch.html>.
>
> Rasmus
I wasn't sure if it was OK to change the function used - but seeing as
that works with nanoseconds directly, I think that's a good idea
I will implement this in v2
Thanks,
Peter D.
More information about the busybox
mailing list