src/net/error_plan9_test.go
raw| 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 | errOpNotSupported = syscall.EPLAN9 |
| 11 | |
| 12 | abortedConnRequestErrors []error |
| 13 | ) |
| 14 | |
| 15 | func isPlatformError(err error) bool { |
| 16 | _, ok := err.(syscall.ErrorString) |
| 17 | return ok |
| 18 | } |
| 19 | |
| 20 | func isENOBUFS(err error) bool { |
| 21 | return false // ENOBUFS is Unix-specific |
| 22 | } |