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