mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	full diff: https://github.com/creack/pty/compare/v1.1.18...v1.1.21 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			21 lines
		
	
	
		
			361 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			361 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !windows && !solaris && !aix
 | 
						|
// +build !windows,!solaris,!aix
 | 
						|
 | 
						|
package pty
 | 
						|
 | 
						|
import "syscall"
 | 
						|
 | 
						|
// Local syscall const values.
 | 
						|
const (
 | 
						|
	TIOCGWINSZ = syscall.TIOCGWINSZ
 | 
						|
	TIOCSWINSZ = syscall.TIOCSWINSZ
 | 
						|
)
 | 
						|
 | 
						|
func ioctlInner(fd, cmd, ptr uintptr) error {
 | 
						|
	_, _, e := syscall.Syscall(syscall.SYS_IOCTL, fd, cmd, ptr)
 | 
						|
	if e != 0 {
 | 
						|
		return e
 | 
						|
	}
 | 
						|
	return nil
 | 
						|
}
 |