//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || aix
// +build darwin dragonfly freebsd linux netbsd openbsd solaris aix

package uv

import (
	
	
	
	

	
)

func () (,  *os.File,  error) {
	,  := os.OpenFile("/dev/tty", os.O_RDWR, 0)
	if  != nil {
		return nil, nil,  //nolint:wrapcheck
	}
	return , , nil
}

func () ( error) {
	// Send SIGTSTP to the entire process group.
	 := make(chan os.Signal, 1)
	signal.Notify(, syscall.SIGCONT)
	 = syscall.Kill(0, syscall.SIGTSTP)
	// blocks until a CONT happens...
	<-
	return
}

func ( chan os.Signal,  ...os.Signal) {
	signal.Notify(, append(, unix.SIGWINCH)...)
}

func ( context.Context,  ...os.Signal) (context.Context, context.CancelFunc) {
	return signal.NotifyContext(, append(, unix.SIGWINCH)...)
}