-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: wrong TCGETS value on ppc64le #22000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
And I get same result when I use gccgo
|
@ianlancetaylor thanks for the reference issue. I didn't find it since I forgot to search on the closed issues. |
My understanding is that x/sys should be used wherever possible, but there are still cases where std syscall has to be used because not everything has been migrated over. We opened #19697 for this question. The documentation in the file syscall/syscall.go was updated to indicate what is missing from the migration. I think at the time we had hit this problem, x/sys was undergoing major changes and @bradfitz asked us to wait for that to be finished before making any changes. I think Signal and Errno could be migrated, but I don't think SysProcAttr could be for compatibility reasons. |
Change https://golang.org/cl/66510 mentions this issue: |
What version of Go are you using (
go version
)?go version go1.9 linux/ppc64le
Does this issue reproduce with the latest release?
yes, with go1.9
What operating system and processor architecture are you using (
go env
)?What did you do?
I meet strange output when I use
github.com/mattn/go-isatty
, the following snippet explains.run
strace
to see the real syscall.The syscall.TCGETS is wrong and should be 0x402c7413(the one in sys/unix)
The text was updated successfully, but these errors were encountered: