Added implementation for darwin,386

This commit is contained in:
Cristian Maglie
2015-01-01 03:45:27 +01:00
parent da42d3809e
commit 4b12c041b5
4 changed files with 67 additions and 47 deletions

21
syscall_darwin.go Normal file
View File

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