On 2012/12/10 18:38:15, rsc wrote:
Oh, I missed the syscall.NsecToTimeval.
It seems fine to write a syscall.UtimesNano that just wraps
syscall.Utimes on the unimplemented systems.
syscall can do a little to be more regular across systems.
Oh, I missed the syscall.NsecToTimeval.
It seems fine to write a syscall.UtimesNano that just wraps
syscall.Utimes on the unimplemented systems.
syscall can do a little to be more regular across systems.
instead of returning not implemented. That then guarantees best
accuracy and avoids the pain for the users of making different builds
for different OSes.
As far as I can see the whole `utimes` syscall was a mistake in POSIX
which was corrected later with the `utimensat` syscall. We can do
better in Go :-)
I'll have a go with Russ' suggestion.
https://codereview.appspot.com/6905057/