2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-08-04 00:15:21 +01:00
|
|
|
|
2023-09-06 08:59:18 +01:00
|
|
|
//go:build wasm || plan9 || tamago
|
2023-08-24 23:02:42 +01:00
|
|
|
|
2022-08-04 00:15:21 +01:00
|
|
|
package filch
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
func saveStderr() (*os.File, error) {
|
|
|
|
return os.Stderr, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func unsaveStderr(f *os.File) error {
|
|
|
|
os.Stderr = f
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func dup2Stderr(f *os.File) error {
|
|
|
|
return nil
|
|
|
|
}
|