]> Cypherpunks repositories - gostls13.git/commit
syscall: simplify execve handling on libc platforms
authorJoel Sing <joel@sing.id.au>
Sat, 9 Aug 2025 14:40:07 +0000 (00:40 +1000)
committerGopher Robot <gobot@golang.org>
Thu, 21 Aug 2025 18:19:31 +0000 (11:19 -0700)
commit8dcab6f4505d198b5609182b4b5928bd190b21a8
tree8fa5048adcb5c4c3b24d70545faf4c82bf501999
parentba840c1bf9be0c3b133f2efd638ec6d32dbedaff
syscall: simplify execve handling on libc platforms

Rather than providing three different execve variables for different
platforms, use a single variable. Provide a small wrapper that handles
conversion to uintptr for the AIX/Solaris case.

Note that this removes special handling for openbsd/mips64, which is
now a dead port.

Updates #61546

Change-Id: I3d6387c31669f64bfb61639536803e595f478647
Reviewed-on: https://go-review.googlesource.com/c/go/+/693880
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/syscall/exec_libc.go
src/syscall/exec_unix.go
src/syscall/syscall_darwin.go
src/syscall/syscall_openbsd_libc.go