mirror of
https://github.com/restic/restic.git
synced 2025-10-19 23:53:21 +00:00
9 lines
168 B
Go
9 lines
168 B
Go
//go:build unix && !linux
|
|
|
|
package terminal
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func tcgetpgrp(ttyfd int) (int, error) {
|
|
return unix.IoctlGetInt(ttyfd, unix.TIOCGPGRP)
|
|
}
|