FAQ

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.
I like the idea of syscall.UtimesNano falling back to syscall.Utimes
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/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedDec 10, '12 at 9:01p
activeDec 10, '12 at 9:01p
posts1
users1
websitegolang.org

1 user in discussion

Nickcw: 1 post

People

Translate

site design / logo © 2022 Grokbase