]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: make RawSyscall panic on Solaris
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 7 Dec 2017 21:14:34 +0000 (21:14 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Dec 2017 00:11:19 +0000 (00:11 +0000)
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>
src/runtime/syscall_solaris.go

index 6c9dbe21d3a7ab02a27b7ae203e464f2e98feab4..ee227eaf241b819f7282b8c08b70f602c8816dec 100644 (file)
@@ -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