[PATCH] touch: add config option to set microsecond timestamps
Rasmus Villemoes
rasmus.villemoes at prevas.dk
Thu Apr 8 08:24:35 UTC 2021
On 08/04/2021 06.07, Peter D wrote:
> This patch adds a config option which makes touch set timestamps to the
> current microsecond, instead of the current second.
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
More information about the busybox
mailing list