Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 } | |
LEFT | RIGHT |