Files
go-serial/zsyscall_linux.go
Veniamin Albaev 4d886c1028 Unix: move from syscall to golang.org/x/sys/unix
Prepare to using `unix.TCFLSH`/`unix.TIOCFLUSH`
which is missing in `syscall` package
2017-03-09 11:04:37 +03:00

22 lines
598 B
Go

//
// Copyright 2014-2017 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// This file is machine generated by the command:
// mksyscall.pl serial_linux.go
// The generated stub is modified to make it compile under the "serial" package
package serial // import "go.bug.st/serial.v1"
import "golang.org/x/sys/unix"
func ioctl(fd int, req uint64, data uintptr) (err error) {
_, _, e1 := unix.Syscall(unix.SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(data))
if e1 != 0 {
err = e1
}
return
}