Merge branch 'v0' into v1

This commit is contained in:
Cristian Maglie
2016-09-17 19:38:51 +02:00
4 changed files with 80 additions and 2 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.v1"
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
}