Works on FreeBSD (even on armv6 and armv7 when cross compiled).

This commit is contained in:
Franz Bettag
2016-09-15 17:46:31 +02:00
parent e90aca32c8
commit a0fe3b8b02
3 changed files with 80 additions and 1 deletions

21
syscall_freebsd.go Normal file
View File

@@ -0,0 +1,21 @@
//
// Copyright 2014-2016 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_darwin.go
// The generated stub is modified to make it compile under the "serial" package
package serial // import "go.bug.st/serial"
import "syscall"
func ioctl(fd int, req uint64, data uintptr) (err error) {
_, _, e1 := syscall.Syscall(syscall.SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(data))
if e1 != 0 {
err = e1
}
return
}