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

Delta Between Two Patch Sets: src/pkg/os/error_posix.go

Issue 5011046: code review 5011046: build: add build comments to core packages (Closed)
Left Patch Set: Created 12 years, 6 months ago
Right Patch Set: diff -r a12d99eb48bb https://go.googlecode.com/hg Created 12 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/os/env_unix.go ('k') | src/pkg/os/exec_posix.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4
5 // +build darwin freebsd linux openbsd windows
4 6
5 package os 7 package os
6 8
7 import syscall "syscall" 9 import syscall "syscall"
8 10
9 // Errno is the Unix error number. Names such as EINVAL are simple 11 // Errno is the Unix error number. Names such as EINVAL are simple
10 // wrappers to convert the error number into an Error. 12 // wrappers to convert the error number into an Error.
11 type Errno int64 13 type Errno int64
12 14
13 func (e Errno) String() string { return syscall.Errstr(int(e)) } 15 func (e Errno) String() string { return syscall.Errstr(int(e)) }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 func NewSyscallError(syscall string, errno int) Error { 83 func NewSyscallError(syscall string, errno int) Error {
82 if errno == 0 { 84 if errno == 0 {
83 return nil 85 return nil
84 } 86 }
85 return &SyscallError{syscall, Errno(errno)} 87 return &SyscallError{syscall, Errno(errno)}
86 } 88 }
87 89
88 func iserror(errno int) bool { 90 func iserror(errno int) bool {
89 return errno != 0 91 return errno != 0
90 } 92 }
LEFTRIGHT

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