3
// Copyright 2009 The Go Authors. All rights reserved.
4
// Use of this source code is governed by a BSD-style
5
// license that can be found in the LICENSE file.
12
// on mingw, stderr and stdout are defined as &_iob[FILENO]
13
// on netbsd, they are defined as &__sF[FILENO]
14
// and cgo doesn't recognize them, so write a function to get them,
15
// instead of depending on internals of libc implementation.
16
FILE *getStdout(void) { return stdout; }
17
FILE *getStderr(void) { return stderr; }
21
var Stdout = (*File)(C.getStdout())
22
var Stderr = (*File)(C.getStderr())