|author||Jason A. Donenfeld <Jason@zx2c4.com>||Wed Mar 15 17:52:25 2023 +0100|
|committer||Jason Donenfeld <Jason@zx2c4.com>||Fri Mar 17 00:07:53 2023 +0000|
unix: match ioctl req argument type to libc type On Solaris, AIX, and zOS, the req argument of ioctl() is a signed int, not an unsigned long like on other platforms, which means many constants are negative, causing friction when passing them to a uint argument. Correct the signature of these functions to pass the req argument as signed, just like libc. Fixes golang/go#59030. Change-Id: Ia14e92a150f4b5fb9488c5032ca296cb786e9811 Reviewed-on: https://go-review.googlesource.com/c/sys/+/476515 Reviewed-by: Ian Lance Taylor <firstname.lastname@example.org> Reviewed-by: Bryan Mills <email@example.com> Run-TryBot: Jason Donenfeld <Jason@zx2c4.com> TryBot-Result: Gopher Robot <firstname.lastname@example.org> Reviewed-by: Nahum Shalman <email@example.com>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run
go get -u golang.org/x/sys. You can also manually git clone the repository to
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.