ansible: update docker userguide for collectd_ves
[barometer.git] / src / dma / vendor / github.com / mattn / go-isatty / isatty_android.go
1 // +build android
2
3 package isatty
4
5 import (
6         "syscall"
7         "unsafe"
8 )
9
10 const ioctlReadTermios = syscall.TCGETS
11
12 // IsTerminal return true if the file descriptor is terminal.
13 func IsTerminal(fd uintptr) bool {
14         var termios syscall.Termios
15         _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
16         return err == 0
17 }
18
19 // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
20 // terminal. This is also always false on this environment.
21 func IsCygwinTerminal(fd uintptr) bool {
22         return false
23 }