mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			325 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			325 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !windows && !solaris && !aix
 | 
						|
// +build !windows,!solaris,!aix
 | 
						|
 | 
						|
package pty
 | 
						|
 | 
						|
import "syscall"
 | 
						|
 | 
						|
const (
 | 
						|
	TIOCGWINSZ = syscall.TIOCGWINSZ
 | 
						|
	TIOCSWINSZ = syscall.TIOCSWINSZ
 | 
						|
)
 | 
						|
 | 
						|
func ioctl(fd, cmd, ptr uintptr) error {
 | 
						|
	_, _, e := syscall.Syscall(syscall.SYS_IOCTL, fd, cmd, ptr)
 | 
						|
	if e != 0 {
 | 
						|
		return e
 | 
						|
	}
 | 
						|
	return nil
 | 
						|
}
 |