libgo: update to Go 1.11
[official-gcc.git] / libgo / go / net / error_plan9_test.go
blobd7c7f1487fb14321e5cf1275aad7ad003155e71b
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.
5 package net
7 import "syscall"
9 var (
10 errTimedout = syscall.ETIMEDOUT
11 errOpNotSupported = syscall.EPLAN9
13 abortedConnRequestErrors []error
16 func isPlatformError(err error) bool {
17 _, ok := err.(syscall.ErrorString)
18 return ok