Skip to content

Commit 613f8ca

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 38083c8 commit 613f8ca

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/runtime/syscall_solaris.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,9 @@ func syscall_pipe() (r, w, err uintptr) {
174174
}
175175

176176
// This is syscall.RawSyscall, it exists to satisfy some build dependency,
177-
// but it doesn't work correctly.
178-
//
179-
// DO NOT USE!
180-
//
181-
// TODO(aram): make this panic once we stop calling fcntl(2) in net using it.
177+
// but it doesn't work.
182178
func syscall_rawsyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
183-
call := libcall{
184-
fn: uintptr(unsafe.Pointer(&libc_syscall)),
185-
n: 4,
186-
args: uintptr(unsafe.Pointer(&trap)),
187-
}
188-
asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call))
189-
return call.r1, call.r2, call.err
179+
panic("RawSyscall not available on Solaris")
190180
}
191181

192182
//go:nosplit

0 commit comments

Comments
 (0)