mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
11 lines
307 B
Go
11 lines
307 B
Go
package terminal
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func tcsetpgrp(fd int, pid int) error {
|
|
// The second argument to IoctlSetPointerInt has type int on AIX,
|
|
// but the constant overflows 64-bit int, hence the two-step cast.
|
|
req := uint(unix.TIOCSPGRP)
|
|
return unix.IoctlSetPointerInt(fd, int(req), pid)
|
|
}
|