jit: Fix Darwin bootstrap after r15-1699.
[official-gcc.git] / libgo / go / syscall / export_unix_test.go
blobbd904c70f36b566cc5ab7a856a8ab82cb6218c7c
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.
5 //go:build dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
7 package syscall
9 import "unsafe"
11 func Ioctl(fd, req uintptr, arg unsafe.Pointer) (err Errno) {
12 _, err = raw_ioctl_ptr(int(fd), req, arg)
13 return err