Unix: move from syscall to golang.org/x/sys/unix

Prepare to using `unix.TCFLSH`/`unix.TIOCFLUSH`
which is missing in `syscall` package
This commit is contained in:
Veniamin Albaev
2017-03-09 11:04:34 +03:00
parent ccc846995c
commit 4d886c1028
9 changed files with 203 additions and 202 deletions

View File

@@ -10,10 +10,10 @@
package serial // import "go.bug.st/serial.v1"
import "syscall"
import "golang.org/x/sys/unix"
func ioctl(fd int, req uint64, data uintptr) (err error) {
_, _, e1 := syscall.Syscall(syscall.SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(data))
_, _, e1 := unix.Syscall(unix.SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(data))
if e1 != 0 {
err = e1
}