As noted in #20832, RawSyscall should panic on solaris as raw system calls are never actually possible on Solaris.
From syscall_solaris.go:
// This is syscall.RawSyscall, it exists to satisfy some build dependency,// but it doesn't work correctly.//// DO NOT USE!//// TODO(aram): make this panic once we stop calling fcntl(2) in net using it.funcsyscall_rawsyscall(trap, a1, a2, a3uintptr) (r1, r2, erruintptr) {
From syscall/exec_solaris.go:
// We call hand-crafted syscalls, implemented in// ../runtime/syscall_solaris.go, rather than generated libc wrappers// because we need to avoid lazy-loading the functions (might malloc,// split the stack, or acquire mutexes). We can't call RawSyscall// because it's not safe even for BSD-subsystem calls.
Any existing use of RawSyscall should be excised first, and then it should be changed to panic on Solaris.
This is definitely for 1.10+
The text was updated successfully, but these errors were encountered:
As noted in #20832, RawSyscall should panic on solaris as raw system calls are never actually possible on Solaris.
From syscall_solaris.go:
From syscall/exec_solaris.go:
Any existing use of RawSyscall should be excised first, and then it should be changed to panic on Solaris.
This is definitely for 1.10+
The text was updated successfully, but these errors were encountered: