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

Issue 812044: code review 812044: syscall package: document that errno will be zero on success (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by giles
Modified:
14 years, 11 months ago
Reviewers:
CC:
r, rsc1, rsc, golang-dev
Visibility:
Public.

Description

syscall package: document that errno is zero on success This is a documentation enhancement only, without any code change. The rationale for documenting this precisely is that Unix programmers who "know" that errno's value is undefined after a successful system call may be surprised otherwise and search to be sure that a zero errno may be relied upon after successful calls.

Patch Set 1 #

Patch Set 2 : code review 812044: syscall package: document that errno is zeroed on success #

Patch Set 3 : code review 812044: syscall package: document that errno is zeroed on success #

Patch Set 4 : code review 812044: syscall package: document that errno is zeroed on success #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M src/pkg/syscall/syscall.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11
giles
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-04-01 04:16:14 UTC) #1
rsc
This is an odd sentence, because you're not talking about the underlying system; you're talking ...
15 years ago (2010-04-01 04:55:10 UTC) #2
r2
I don't understand. There is no global errno in package syscall. Each system call returns ...
15 years ago (2010-04-01 04:58:32 UTC) #3
giles
Russ Cox <rsc@golang.org> wrote: > This is an odd sentence, ... Yeah, it felt ugly, ...
15 years ago (2010-04-01 06:15:03 UTC) #4
giles
Hello r (cc: golang-dev@googlegroups.com), Please take another look.
15 years ago (2010-04-01 06:30:17 UTC) #5
rsc1
LGTM but remove the year change - we don't bother updating the copyright year as ...
14 years, 12 months ago (2010-04-06 06:40:13 UTC) #6
giles
Russ Cox <rsc@google.com> wrote: > LGTM > > but remove the year change - we ...
14 years, 11 months ago (2010-04-06 16:03:02 UTC) #7
giles
Hello r, rsc@google.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-04-06 16:03:13 UTC) #8
rsc1
LGTM
14 years, 11 months ago (2010-04-06 17:28:56 UTC) #9
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=0a46c83477db *** syscall package: document that errno is zeroed on success This ...
14 years, 11 months ago (2010-04-06 17:28:58 UTC) #10
r2
14 years, 11 months ago (2010-04-06 17:31:20 UTC) #11
On Apr 6, 2010, at 10:28 AM, rsc@golang.org wrote:

> *** Submitted as
> http://code.google.com/p/go/source/detail?r=0a46c83477db ***
>
> syscall package: document that errno is zeroed on success

another inaccurate CL description. please let's try to keep the  
descriptions up to date as the review evolves. the descriptions are  
what we see on dashboards, logs, and so on.

-rob

Sign in to reply to this message.

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