(fd uintptr, termios *Termios)
| 65 | } |
| 66 | |
| 67 | func TcSetAttr(fd uintptr, termios *Termios) error { |
| 68 | _, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, syscall.TCSETS, uintptr(unsafe.Pointer(termios))) |
| 69 | if err != 0 { |
| 70 | return err |
| 71 | } |
| 72 | return nil |
| 73 | } |
| 74 | |
| 75 | func TcGetAttr(fd uintptr) (*Termios, error) { |
| 76 | termios := &Termios{} |
no outgoing calls
no test coverage detected