libgo/go/syscall/export_unix_test.go
raw| 1 | // Copyright 2015 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris |
| 6 | |
| 7 | package syscall |
| 8 | |
| 9 | import "unsafe" |
| 10 | |
| 11 | func Ioctl(fd, req uintptr, arg unsafe.Pointer) (err Errno) { |
| 12 | _, err = raw_ioctl_ptr(int(fd), req, arg) |
| 13 | return err |
| 14 | } |