mirror of
https://github.com/golang/go
synced 2024-11-19 01:24:39 -07:00
go.tools/ssa/interp: fix Plan 9 build for Brad
R=golang-codereviews, rsc, 0intro CC=golang-codereviews https://golang.org/cl/26500043
This commit is contained in:
parent
d4da60d38f
commit
a1406b40c5
@ -333,10 +333,6 @@ func ext۰syscall۰Getpid(fn *ssa.Function, args []value) value {
|
||||
return syscall.Getpid()
|
||||
}
|
||||
|
||||
func ext۰syscall۰RawSyscall(fn *ssa.Function, args []value) value {
|
||||
return tuple{uintptr(0), uintptr(0), uintptr(syscall.ENOSYS)}
|
||||
}
|
||||
|
||||
func valueToBytes(v value) []byte {
|
||||
in := v.([]value)
|
||||
b := make([]byte, len(in))
|
||||
|
@ -5,8 +5,6 @@
|
||||
package interp
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"code.google.com/p/go.tools/ssa"
|
||||
)
|
||||
|
||||
@ -42,3 +40,6 @@ func ext۰syscall۰Write(fn *ssa.Function, args []value) value {
|
||||
n, err := write(args[0].(int), valueToBytes(args[1]))
|
||||
return tuple{n, wrapError(err)}
|
||||
}
|
||||
func ext۰syscall۰RawSyscall(fn *ssa.Function, args []value) value {
|
||||
return tuple{^uintptr(0), uintptr(0), uintptr(0)}
|
||||
}
|
||||
|
@ -126,3 +126,7 @@ func ext۰syscall۰Write(fn *ssa.Function, args []value) value {
|
||||
n, err := write(args[0].(int), valueToBytes(args[1]))
|
||||
return tuple{n, wrapError(err)}
|
||||
}
|
||||
|
||||
func ext۰syscall۰RawSyscall(fn *ssa.Function, args []value) value {
|
||||
return tuple{uintptr(0), uintptr(0), uintptr(syscall.ENOSYS)}
|
||||
}
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build windows plan9
|
||||
|
||||
package interp
|
||||
|
||||
import (
|
||||
@ -40,3 +38,6 @@ func ext۰syscall۰Stat(fn *ssa.Function, args []value) value {
|
||||
func ext۰syscall۰Write(fn *ssa.Function, args []value) value {
|
||||
panic("syscall.Write not yet implemented")
|
||||
}
|
||||
func ext۰syscall۰RawSyscall(fn *ssa.Function, args []value) value {
|
||||
return tuple{uintptr(0), uintptr(0), uintptr(syscall.ENOSYS)}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user