Source file src/net/error_plan9_test.go

     1  // Copyright 2015 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  package net
     6  
     7  import "syscall"
     8  
     9  var (
    10  	errTimedout       = syscall.ETIMEDOUT
    11  	errOpNotSupported = syscall.EPLAN9
    12  
    13  	abortedConnRequestErrors []error
    14  )
    15  
    16  func isPlatformError(err error) bool {
    17  	_, ok := err.(syscall.ErrorString)
    18  	return ok
    19  }
    20  
    21  func isENOBUFS(err error) bool {
    22  	return false // ENOBUFS is Unix-specific
    23  }
    24  

View as plain text