syscall: reduce the set of architecture-dependent files on Plan 9

Change-Id: I98b172181c2fd85aa385341e28bc661dbc274252
Reviewed-on: https://go-review.googlesource.com/2167
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Anthony Martin 2014-12-30 06:14:55 -08:00 committed by Brad Fitzpatrick
parent 39377013cb
commit b9ba4ed22b
11 changed files with 63 additions and 366 deletions

View file

@ -140,12 +140,12 @@ func Fd2path(fd int) (path string, err error) {
return cstring(buf[:]), nil
}
//sys pipe(p *[2]_C_int) (err error)
//sys pipe(p *[2]int32) (err error)
func Pipe(p []int) (err error) {
if len(p) != 2 {
return NewError("bad arg in system call")
}
var pp [2]_C_int
var pp [2]int32
err = pipe(&pp)
p[0] = int(pp[0])
p[1] = int(pp[1])