mirror of
https://github.com/golang/go
synced 2024-11-19 13:14:42 -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:
parent
e9a8ab031d
commit
952b91e4ad
@ -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) }
|
||||
|
Loading…
Reference in New Issue
Block a user