diff options
author | Russ Cox <rsc@golang.org> | 2009-06-04 13:33:40 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-04 13:33:40 -0700 |
commit | 68a11cec6b22179f386e40ef7523aab454ef6221 (patch) | |
tree | b3c9b45f06ca0ddb4d50abb4b0bee43fb53da65f /src/lib/syscall/syscall_linux_amd64.go | |
parent | beac834b71cf2b59136afedcb7a9cb71d9581b65 (diff) | |
download | golang-68a11cec6b22179f386e40ef7523aab454ef6221.tar.gz |
linux 386 support; now in same state as darwin 386
(stuck on 8l bug).
R=r
DELTA=349 (342 added, 1 deleted, 6 changed)
OCL=29882
CL=29886
Diffstat (limited to 'src/lib/syscall/syscall_linux_amd64.go')
-rw-r--r-- | src/lib/syscall/syscall_linux_amd64.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/syscall/syscall_linux_amd64.go b/src/lib/syscall/syscall_linux_amd64.go index 24426405b..a2a58c35b 100644 --- a/src/lib/syscall/syscall_linux_amd64.go +++ b/src/lib/syscall/syscall_linux_amd64.go @@ -6,6 +6,14 @@ package syscall import "syscall" +//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, errno int) +//sys bind(s int, addr uintptr, addrlen _Socklen) (errno int) +//sys connect(s int, addr uintptr, addrlen _Socklen) (errno int) +//sys socket(domain int, typ int, proto int) (fd int, errno int) +//sys setsockopt(s int, level int, name int, val uintptr, vallen int) (errno int) +//sys Listen(s int, n int) (errno int) +//sys Shutdown(fd int, how int) (errno int) + func Getpagesize() int { return 4096 } |