Tentative support for OpenBSD

See #27
This commit is contained in:
Cristian Maglie
2017-03-04 22:40:50 +01:00
parent 4cc831e192
commit 4366d1c449
11 changed files with 116 additions and 5 deletions

21
zsyscall_openbsd.go Normal file
View File

@@ -0,0 +1,21 @@
//
// 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_openbsd.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
}