1
0
mirror of https://github.com/golang/go synced 2024-11-19 16:04:48 -07:00

Add Shutdown to 32-bit GNU/Linux build.

Submitting as a TBR to fix the build.

R=dho, rsc
https://golang.org/cl/164078
This commit is contained in:
Ian Lance Taylor 2009-12-02 08:24:14 -08:00 committed by Russ Cox
parent e9a8ab031d
commit 952b91e4ad

View File

@ -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) }