[PATCH 1/3] touch: implement nanosecond precision times
Xabier Oneca -- xOneca
xoneca at gmail.com
Mon Apr 12 21:39:00 UTC 2021
Hi Peter,
> Using utimensat(2) allows us to set times in nanosecond precision. Also logic is
> simplified and code shrinked.
>
> function old new delta
> touch_main 513 479 -34
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-34) Total: -34 bytes
>
> Signed-off-by: Xabier Oneca <xoneca at gmail.com>
> ---
> coreutils/touch.c | 65 +++++++++++++++++++++--------------------------
> 1 file changed, 29 insertions(+), 36 deletions(-)
Sorry if I trampled down your patch, but I had this patch prepared a
while ago and didn't feel like rebasing my other patches. Indeed,
yours gave me +10 bytes, so I decided to send my version too. They are
very similar, tho.
Yours,
Xabier Oneca_,,_
More information about the busybox
mailing list