Descriptionruntime: fix error handling in file operations on darwin
Currently it's impossible to understand whether a file operation
succeeds or not, because functions always return positive values.
Discovered while working on the tracing functionality.
The traced ended up not needing it, but I think it's still worth fixing.
Patch Set 1 #Patch Set 2 : diff -r d053a9fe2d0153e961e3767dcc6896eeec658af7 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r d053a9fe2d0153e961e3767dcc6896eeec658af7 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r d053a9fe2d0153e961e3767dcc6896eeec658af7 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r d053a9fe2d0153e961e3767dcc6896eeec658af7 https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 6
|