diff options
author | Ian Lance Taylor <iant@golang.org> | 2009-12-02 08:24:14 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2009-12-02 08:24:14 -0800 |
commit | 32bc2213dc59d3682548acc4d8751c50a85d1789 (patch) | |
tree | a40aca7ed5c9085fae8efcec5bdcf2fb2fd414d0 | |
parent | dff91dee9ab009fdb4d05321958b29ef34582ec4 (diff) | |
download | golang-32bc2213dc59d3682548acc4d8751c50a85d1789.tar.gz |
Add Shutdown to 32-bit GNU/Linux build.
Submitting as a TBR to fix the build.
R=dho, rsc
http://codereview.appspot.com/164078
Committer: Russ Cox <rsc@golang.org>
-rw-r--r-- | src/pkg/syscall/syscall_linux_386.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/syscall/syscall_linux_386.go b/src/pkg/syscall/syscall_linux_386.go index 1e6fa75a3..f2130f986 100644 --- a/src/pkg/syscall/syscall_linux_386.go +++ b/src/pkg/syscall/syscall_linux_386.go @@ -145,6 +145,11 @@ func Listen(s int, n int) (errno int) { return; } +func Shutdown(s, how int) (errno int) { + _, errno = socketcall(_SHUTDOWN, uintptr(s), uintptr(how), 0, 0, 0, 0); + return; +} + func (r *PtraceRegs) PC() uint64 { return uint64(uint32(r.Eip)) } func (r *PtraceRegs) SetPC(pc uint64) { r.Eip = int32(pc) } |