github.com/jrperritt/terraform@v0.1.1-0.20170525065507-96f391dafc38/helper/wrappedstreams/streams_other.go (about)

     1  // +build !windows
     2  
     3  package wrappedstreams
     4  
     5  import (
     6  	"os"
     7  )
     8  
     9  func initPlatform() {
    10  	// The standard streams are passed in via extra file descriptors.
    11  	wrappedStdin = os.NewFile(uintptr(3), "stdin")
    12  	wrappedStdout = os.NewFile(uintptr(4), "stdout")
    13  	wrappedStderr = os.NewFile(uintptr(5), "stderr")
    14  }