libgo/go/syscall/export_aix_test.go
raw| 1 | // Copyright 2019 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 aix |
| 6 | // +build aix |
| 7 | |
| 8 | package syscall |
| 9 | |
| 10 | import ( |
| 11 | "unsafe" |
| 12 | ) |
| 13 | |
| 14 | func Ioctl(fd, req uintptr, arg unsafe.Pointer) (err Errno) { |
| 15 | _, err = raw_ioctl_ptr(int(fd), req, arg) |
| 16 | return err |
| 17 | } |