libgo: update to Go 1.11
[official-gcc.git] / libgo / go / runtime / netpoll_fake.go
blobaab18dc8468cd5e4345f3e5be5d3e5a781617672
1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Fake network poller for NaCl and wasm/js.
6 // Should never be used, because NaCl and wasm/js network connections do not honor "SetNonblock".
8 // +build nacl js,wasm
10 package runtime
12 func netpollinit() {
15 func netpolldescriptor() uintptr {
16 return ^uintptr(0)
19 func netpollopen(fd uintptr, pd *pollDesc) int32 {
20 return 0
23 func netpollclose(fd uintptr) int32 {
24 return 0
27 func netpollarm(pd *pollDesc, mode int) {
30 func netpoll(block bool) *g {
31 return nil