1 //go:build !linux && !darwin && !windows 2 3 package sysfs 4 5 import ( 6 "net" 7 8 "github.com/tetratelabs/wazero/experimental/sys" 9 socketapi "github.com/tetratelabs/wazero/internal/sock" 10 ) 11 12 // MSG_PEEK is a filler value. 13 const MSG_PEEK = 0x2 14 15 func newTCPListenerFile(tl *net.TCPListener) socketapi.TCPSock { 16 return &unsupportedSockFile{} 17 } 18 19 type unsupportedSockFile struct { 20 baseSockFile 21 } 22 23 // Accept implements the same method as documented on socketapi.TCPSock 24 func (f *unsupportedSockFile) Accept() (socketapi.TCPConn, sys.Errno) { 25 return nil, sys.ENOSYS 26 } 27