e884ced052
Syscall function can't be used on AIX. Therefore, Ioctl in TestForeground must call raw_ioctl. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/175080
17 lines
334 B
Go
17 lines
334 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build aix
|
|
|
|
package syscall
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
func Ioctl(fd, req, arg uintptr) (err Errno) {
|
|
_, err = raw_ioctl_ptr(int(fd), req, unsafe.Pointer(arg))
|
|
return err
|
|
}
|