summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_linux_amd64.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-01 11:13:27 -0800
committerRuss Cox <rsc@golang.org>2009-11-01 11:13:27 -0800
commite553412f7d28715525607dcd86f48723bc28423b (patch)
tree865762db2f724d6fdba1bb99fd65b02ca56edd8b /src/pkg/syscall/syscall_linux_amd64.go
parent70e1eeffd9a4848d9c31ce9945226cafd9273c60 (diff)
downloadgolang-e553412f7d28715525607dcd86f48723bc28423b.tar.gz
syscall cleanup.
* rename PORT.sh -> mkall.sh (hopefully more obvious), change behavior: run commands by default. * pull more constants out of #defines automatically, instead of editing large lists by hand. * add Recvfrom, Sendto add os.O_EXCL. R=r http://go/go-review/1017009
Diffstat (limited to 'src/pkg/syscall/syscall_linux_amd64.go')
-rw-r--r--src/pkg/syscall/syscall_linux_amd64.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/syscall/syscall_linux_amd64.go b/src/pkg/syscall/syscall_linux_amd64.go
index 5827d3600..babaf9e41 100644
--- a/src/pkg/syscall/syscall_linux_amd64.go
+++ b/src/pkg/syscall/syscall_linux_amd64.go
@@ -39,6 +39,8 @@ package syscall
//sys socket(domain int, typ int, proto int) (fd int, errno int)
//sys getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int)
//sys getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int)
+//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, errno int)
+//sys sendto(s int, buf []byte, flags int, to uintptr, addrlen _Socklen) (errno int)
func Getpagesize() int {
return 4096