All //sys instructions moved to separate syscall_* files

Generated `syscall_*` files ranamed to `zsyscall_*` ones
like it done in `golang.org/x/sys` package.
This commit is contained in:
Veniamin Albaev
2017-02-01 09:23:20 +03:00
parent 51237629e6
commit b55fdf163b
13 changed files with 220 additions and 188 deletions

21
zsyscall_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
}