mirror of
https://github.com/golang/go
synced 2024-11-22 12:04:46 -07:00
5131deeeb2
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6261056
17 lines
349 B
Go
17 lines
349 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.
|
|
|
|
package stdio
|
|
|
|
/*
|
|
#include <stdio.h>
|
|
|
|
extern FILE __sF[3];
|
|
*/
|
|
import "C"
|
|
import "unsafe"
|
|
|
|
var Stdout = (*File)(unsafe.Pointer(&C.__sF[1]))
|
|
var Stderr = (*File)(unsafe.Pointer(&C.__sF[2]))
|