Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(304)

Issue 179130043: [dev.cc] code review 179130043: runtime: fix error handling in file operations on darwin

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by dvyukov
Modified:
11 years ago
Reviewers:
CC:
golang-codereviews, bradfitz, minux
Visibility:
Public.

Description

runtime: 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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M src/runtime/sys_darwin_amd64.s View 1 2 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dvyukov
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to the dev.cc branch of https://dvyukov%40google.com@code.google.com/p/go/
11 years, 1 month ago (2014-11-21 17:45:25 UTC) #1
bradfitz
After Go 1.4, of course. But you might want to file a bug so this ...
11 years, 1 month ago (2014-11-21 18:38:23 UTC) #2
dvyukov
This change is for dev.cc branch, the branch is not frozen for release. On Fri, ...
11 years, 1 month ago (2014-11-22 07:02:54 UTC) #3
minux
In general, all the functions in sys_$GOOS_$GOARCH.s only checks for error if their callers need ...
11 years, 1 month ago (2014-11-22 07:24:07 UTC) #4
bradfitz
Oh, I missed that before, and I was even looking for it. I guess I'm ...
11 years, 1 month ago (2014-11-22 08:13:25 UTC) #5
gobot
11 years ago (2014-12-19 05:16:42 UTC) #6
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/179130043 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b