9 const syscallEBADE = syscall.EBADE
11 func fcntl(fd uintptr, cmd int, arg int) (val int, err error) {
12 r, _, e := syscall.Syscall(syscall.SYS_FCNTL, fd, uintptr(cmd),
21 func tcsetattr(fd uintptr, termios *syscall.Termios) error {
22 r, _, e := syscall.Syscall(syscall.SYS_IOCTL,
23 fd, uintptr(syscall.TCSETS), uintptr(unsafe.Pointer(termios)))
25 return os.NewSyscallError("SYS_IOCTL", e)
30 func tcgetattr(fd uintptr, termios *syscall.Termios) error {
31 r, _, e := syscall.Syscall(syscall.SYS_IOCTL,
32 fd, uintptr(syscall.TCGETS), uintptr(unsafe.Pointer(termios)))
34 return os.NewSyscallError("SYS_IOCTL", e)