Added implementation for darwin x86_64
This commit is contained in:
23
syscall_darwin_amd64.go
Normal file
23
syscall_darwin_amd64.go
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// 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_amd64.go
|
||||
// The generated stub is modified to make it compile under the "serial" package
|
||||
|
||||
package serial // import "go.bug.st/serial"
|
||||
|
||||
import "syscall"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user