diff options
author | Clément Chigot <clement.chigot@atos.net> | 2019-05-03 16:53:13 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-09-22 20:07:34 -0700 |
commit | e884ced05231a04b1a3c70ece7237d0b1eeebf19 (patch) | |
tree | 41a6e063c9b386623c962f31aaec47bdf78542ab /libgo/go/syscall | |
parent | 1260f69aeb96f98ebefdbb852a4e868b8926eb0a (diff) | |
download | gcc-e884ced05231a04b1a3c70ece7237d0b1eeebf19.tar.gz |
syscall: fix TestForeground for AIX
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
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r-- | libgo/go/syscall/export_aix_test.go | 16 | ||||
-rw-r--r-- | libgo/go/syscall/export_unix_test.go | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/libgo/go/syscall/export_aix_test.go b/libgo/go/syscall/export_aix_test.go new file mode 100644 index 00000000000..044337b9993 --- /dev/null +++ b/libgo/go/syscall/export_aix_test.go @@ -0,0 +1,16 @@ +// 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 +} diff --git a/libgo/go/syscall/export_unix_test.go b/libgo/go/syscall/export_unix_test.go index dc11f455de0..4d67be9ac2d 100644 --- a/libgo/go/syscall/export_unix_test.go +++ b/libgo/go/syscall/export_unix_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris +// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris package syscall |