[PATCH] touch: add config option to set microsecond timestamps

Peter D urmum69 at snopyta.org
Thu Apr 8 22:27:46 UTC 2021


On Thu Apr 8, 2021 at 10:20 PM BST, Peter D wrote:
> That approach sounds good - I think if that was the case, then there
> wouldn't really be have to be a need for a seperate option to use
> nanoseconds, it can just be part of the fancy options.
After reading the manpages for utimensat() and futimens(), I understand
how those work better.
If the times[2] argument is NULL, then the timestamp on the files is
simply set to the current time - it would actually be more hassle
excluding the nanoseconds.
If times[x].tv_nsec is UTIME_OMIT, then the specific field is simply not
updated. This would make the implementation of -a and -m much easier.


More information about the busybox mailing list