]> Cypherpunks repositories - gostls13.git/commit
syscall: reroute SYS_IOCTL and SYS_SYSCTL on openbsd
authorJoel Sing <joel@sing.id.au>
Sun, 12 Nov 2023 11:56:49 +0000 (22:56 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 4 May 2024 07:50:55 +0000 (07:50 +0000)
commit8841f50d98b224ecf5ee27d9b7e6f18ad2c98e46
tree7a9e58661203b89647fc4a19f5a783f385f4eb95
parent17fce6323988d20d104b92c110b8be0ceb526051
syscall: reroute SYS_IOCTL and SYS_SYSCTL on openbsd

OpenBSD 7.5 no longer supports indirect syscalls. A number of Go
packages make use of syscall.Syscall with SYS_IOCTL or SYS_SYSCTL,
since neither is well supported by golang.org/x/sys/unix. Reroute
calls with either of these system call numbers to the respective
libc stub so that they continue to work.

Updates #63900

Change-Id: I3323a3fa311ee9227e6220417834253763866881
Reviewed-on: https://go-review.googlesource.com/c/go/+/582256
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/syscall/syscall_openbsd_libc.go