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

Delta Between Two Patch Sets: src/pkg/syscall/syscall_unix.go

Issue 770041: code review 770041: syscall: implementing some mingw syscalls required by o... (Closed)
Left Patch Set: code review 770041: syscall: implementing some mingw syscalls required by o... Created 14 years ago
Right Patch Set: code review 770041: syscall: implementing some mingw syscalls required by o... Created 14 years 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/syscall/syscall_mingw_386.go ('k') | src/pkg/syscall/zerrors_mingw_386.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
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 4
5 package syscall 5 package syscall
6
7 var (
8 Stdin = 0
9 Stdout = 1
10 Stderr = 2
11 )
6 12
7 func Errstr(errno int) string { 13 func Errstr(errno int) string {
8 if errno < 0 || errno >= int(len(errors)) { 14 if errno < 0 || errno >= int(len(errors)) {
9 return "error " + str(errno) 15 return "error " + str(errno)
10 } 16 }
11 return errors[errno] 17 return errors[errno]
12 } 18 }
13
14 func StdHandleToFD(stdhandle int) (fd int) {
15 return stdhandle
rsc1 2010/04/01 00:45:53 Is this the correct implementation of StdHandleToF
brainman 2010/04/01 05:03:40 Done.
16 }
LEFTRIGHT

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