1
0
mirror of https://github.com/golang/go synced 2024-11-18 22:55:23 -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:
Anthony Martin 2013-12-20 15:20:51 -08:00
parent d4da60d38f
commit a1406b40c5
4 changed files with 10 additions and 8 deletions

View File

@ -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))

View File

@ -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)}
}

View File

@ -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)}
}

View File

@ -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)}
}