netpoll_nacl.go 525 B

123456789101112131415161718192021222324252627
  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.
  4. // Fake network poller for NaCl.
  5. // Should never be used, because NaCl network connections do not honor "SetNonblock".
  6. package runtime
  7. func netpollinit() {
  8. }
  9. func netpollopen(fd uintptr, pd *pollDesc) int32 {
  10. return 0
  11. }
  12. func netpollclose(fd uintptr) int32 {
  13. return 0
  14. }
  15. func netpollarm(pd *pollDesc, mode int) {
  16. }
  17. func netpoll(block bool) *g {
  18. return nil
  19. }