mirror of
https://github.com/golang/go
synced 2024-11-19 14:04:46 -07:00
runtime: make RawSyscall panic on Solaris
It's unused and doesn't work. Fixes #20833 Change-Id: I09335e84c60f88dd1771f7353b0097f36a5e7660 Reviewed-on: https://go-review.googlesource.com/82636 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
38083c83a6
commit
613f8cad90
@ -174,19 +174,9 @@ func syscall_pipe() (r, w, err uintptr) {
|
||||
}
|
||||
|
||||
// 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.
|
||||
// but it doesn't work.
|
||||
func syscall_rawsyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
|
||||
call := libcall{
|
||||
fn: uintptr(unsafe.Pointer(&libc_syscall)),
|
||||
n: 4,
|
||||
args: uintptr(unsafe.Pointer(&trap)),
|
||||
}
|
||||
asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call))
|
||||
return call.r1, call.r2, call.err
|
||||
panic("RawSyscall not available on Solaris")
|
||||
}
|
||||
|
||||
//go:nosplit
|
||||
|
Loading…
Reference in New Issue
Block a user