mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
39377013cb
commit
b9ba4ed22b
11 changed files with 63 additions and 366 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue