1
0
mirror of https://github.com/golang/go synced 2024-11-22 12:24:47 -07:00
go/misc/cgo/stdio/stdio.go
Joel Sing b945b741e1 misc/cgo/stdio: split stdout/stderr into a separate file
Split stdout/stderr into a separate file so that can be handled
differently on some platforms. Both NetBSD and OpenBSD have defines
for stdout/stderr that require some coercion in order for cgo to
handle them correctly.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6247062
2012-06-05 01:38:55 +10:00

16 lines
294 B
Go

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !netbsd
package stdio
/*
#include <stdio.h>
*/
import "C"
var Stdout = (*File)(C.stdout)
var Stderr = (*File)(C.stderr)