diff options
Diffstat (limited to 'src/syscall/syscall.go')
-rw-r--r-- | src/syscall/syscall.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/syscall/syscall.go b/src/syscall/syscall.go index a834e2998..927536074 100644 --- a/src/syscall/syscall.go +++ b/src/syscall/syscall.go @@ -8,12 +8,13 @@ package syscall * These calls have signatures that are independent of operating system. * * For simplicity of addressing in assembler, all integers are 64 bits - * in these calling sequences. + * in these calling sequences (although it complicates some, such as pipe) */ -func open(name *byte, mode int64) (ret int64, errno int64); -func close(fd int64) (ret int64, errno int64); -func read(fd int64, buf *byte, nbytes int64) (ret int64, errno int64); -func write(fd int64, buf *byte, nbytes int64) (ret int64, errno int64); +func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64); +func AddrToInt(b *byte) int64; + +export Syscall +export AddrToInt + -export open, close, read, write |