mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
11 lines
309 B
Go
11 lines
309 B
Go
|
|
package termstatus
|
||
|
|
|
||
|
|
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)
|
||
|
|
}
|