1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-26 00:00:29 +00:00

vendor: switch to go modules and update deps

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-11-12 09:28:03 -05:00
parent 8b6de6073c
commit 7ce6c9c696
47 changed files with 39 additions and 5586 deletions

View file

@ -1,16 +0,0 @@
// +build solaris
// +build !appengine
package isatty
import (
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
// see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c
func IsTerminal(fd uintptr) bool {
var termio unix.Termio
err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
return err == nil
}