mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
feat(zfs-localpv): vendor packages for zfs-localpv
Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
8d81b8b9c6
commit
8a4ed4e7b8
2246 changed files with 950001 additions and 0 deletions
13
vendor/github.com/Sirupsen/logrus/terminal_check_bsd.go
generated
vendored
Normal file
13
vendor/github.com/Sirupsen/logrus/terminal_check_bsd.go
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// +build darwin dragonfly freebsd netbsd openbsd
|
||||
|
||||
package logrus
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
const ioctlReadTermios = unix.TIOCGETA
|
||||
|
||||
func isTerminal(fd int) bool {
|
||||
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue