Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 374 Bytes
// +build !windows,!plan9
package sys
import (
func Tcgetpgrp(fd int) (int, error) {
var pid int
errno := Ioctl(fd, unix.TIOCGPGRP, uintptr(unsafe.Pointer(&pid)))
if errno == nil {
return pid, nil
return -1, errno
func Tcsetpgrp(fd int, pid int) error {
return Ioctl(fd, unix.TIOCSPGRP, uintptr(unsafe.Pointer(&pid)))
You can’t perform that action at this time.