goscript 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cmd/goscript/cmd-test.go +104 -11
- package/cmd/goscript/cmd-test_test.go +1 -1
- package/cmd/goscript/cmd_compile.go +9 -0
- package/compiler/compile-request.go +31 -0
- package/compiler/compiler.go +1 -1
- package/compiler/compliance_test.go +0 -2
- package/compiler/config.go +2 -0
- package/compiler/gotest/package-result.go +2 -0
- package/compiler/gotest/request.go +85 -20
- package/compiler/gotest/runner.go +733 -96
- package/compiler/gotest/runner_test.go +647 -3
- package/compiler/lowered-program.go +9 -2
- package/compiler/lowering.go +2001 -345
- package/compiler/override-facts.go +77 -27
- package/compiler/override-registry.go +5 -4
- package/compiler/override-registry_test.go +135 -0
- package/compiler/package-graph_test.go +62 -7
- package/compiler/package-test-graph-variant.go +40 -16
- package/compiler/package-test-graph.go +0 -5
- package/compiler/package-test-graph_test.go +61 -3
- package/compiler/runtime-contract.go +40 -0
- package/compiler/semantic-model-types.go +16 -0
- package/compiler/semantic-model.go +336 -91
- package/compiler/semantic-model_test.go +50 -1
- package/compiler/service.go +9 -3
- package/compiler/skeleton_test.go +1921 -298
- package/compiler/tsworkspace/owner-process-unix_test.go +72 -0
- package/compiler/tsworkspace/owner.go +8 -0
- package/compiler/tsworkspace/tool-process-other.go +14 -0
- package/compiler/tsworkspace/tool-process-unix.go +19 -0
- package/compiler/typescript-emitter.go +122 -9
- package/dist/gs/builtin/builtin.d.ts +20 -1
- package/dist/gs/builtin/builtin.js +246 -26
- package/dist/gs/builtin/builtin.js.map +1 -1
- package/dist/gs/builtin/channel.d.ts +24 -10
- package/dist/gs/builtin/channel.js +107 -25
- package/dist/gs/builtin/channel.js.map +1 -1
- package/dist/gs/builtin/defer.d.ts +1 -0
- package/dist/gs/builtin/defer.js +12 -2
- package/dist/gs/builtin/defer.js.map +1 -1
- package/dist/gs/builtin/hostio.d.ts +9 -0
- package/dist/gs/builtin/hostio.js +25 -0
- package/dist/gs/builtin/hostio.js.map +1 -1
- package/dist/gs/builtin/map.js +40 -6
- package/dist/gs/builtin/map.js.map +1 -1
- package/dist/gs/builtin/print.js.map +1 -1
- package/dist/gs/builtin/slice.d.ts +43 -9
- package/dist/gs/builtin/slice.js +437 -234
- package/dist/gs/builtin/slice.js.map +1 -1
- package/dist/gs/builtin/type.d.ts +2 -0
- package/dist/gs/builtin/type.js +47 -7
- package/dist/gs/builtin/type.js.map +1 -1
- package/dist/gs/builtin/varRef.d.ts +2 -0
- package/dist/gs/builtin/varRef.js.map +1 -1
- package/dist/gs/bytes/buffer.gs.js +28 -28
- package/dist/gs/bytes/buffer.gs.js.map +1 -1
- package/dist/gs/bytes/iter.gs.js +13 -13
- package/dist/gs/bytes/iter.gs.js.map +1 -1
- package/dist/gs/compress/zlib/index.d.ts +26 -0
- package/dist/gs/compress/zlib/index.js +168 -0
- package/dist/gs/compress/zlib/index.js.map +1 -0
- package/dist/gs/context/context.d.ts +1 -1
- package/dist/gs/context/context.js +8 -3
- package/dist/gs/context/context.js.map +1 -1
- package/dist/gs/crypto/ecdh/index.d.ts +52 -0
- package/dist/gs/crypto/ecdh/index.js +226 -0
- package/dist/gs/crypto/ecdh/index.js.map +1 -0
- package/dist/gs/crypto/ed25519/index.d.ts +34 -0
- package/dist/gs/crypto/ed25519/index.js +160 -0
- package/dist/gs/crypto/ed25519/index.js.map +1 -0
- package/dist/gs/crypto/internal/constanttime/index.d.ts +4 -0
- package/dist/gs/crypto/internal/constanttime/index.js +18 -0
- package/dist/gs/crypto/internal/constanttime/index.js.map +1 -0
- package/dist/gs/crypto/rand/index.d.ts +2 -0
- package/dist/gs/crypto/rand/index.js +85 -0
- package/dist/gs/crypto/rand/index.js.map +1 -1
- package/dist/gs/crypto/sha256/index.d.ts +8 -0
- package/dist/gs/crypto/sha256/index.js +118 -0
- package/dist/gs/crypto/sha256/index.js.map +1 -0
- package/dist/gs/crypto/sha512/index.d.ts +14 -0
- package/dist/gs/crypto/sha512/index.js +129 -0
- package/dist/gs/crypto/sha512/index.js.map +1 -0
- package/dist/gs/encoding/json/index.d.ts +3 -0
- package/dist/gs/encoding/json/index.js +15 -0
- package/dist/gs/encoding/json/index.js.map +1 -1
- package/dist/gs/errors/errors.js +29 -6
- package/dist/gs/errors/errors.js.map +1 -1
- package/dist/gs/fmt/fmt.js.map +1 -1
- package/dist/gs/github.com/aperturerobotics/protobuf-go-lite/index.d.ts +7 -7
- package/dist/gs/github.com/aperturerobotics/protobuf-go-lite/index.js +52 -18
- package/dist/gs/github.com/aperturerobotics/protobuf-go-lite/index.js.map +1 -1
- package/dist/gs/github.com/aperturerobotics/protobuf-go-lite/json/index.js +56 -20
- package/dist/gs/github.com/aperturerobotics/protobuf-go-lite/json/index.js.map +1 -1
- package/dist/gs/github.com/aperturerobotics/starpc/srpc/index.d.ts +57 -3
- package/dist/gs/github.com/aperturerobotics/starpc/srpc/index.js +366 -1
- package/dist/gs/github.com/aperturerobotics/starpc/srpc/index.js.map +1 -1
- package/dist/gs/github.com/aperturerobotics/util/conc/index.d.ts +20 -0
- package/dist/gs/github.com/aperturerobotics/util/conc/index.js +134 -0
- package/dist/gs/github.com/aperturerobotics/util/conc/index.js.map +1 -0
- package/dist/gs/github.com/aperturerobotics/wasivm/wazero/kernel/runtime/browser/browser.js.map +1 -1
- package/dist/gs/github.com/hack-pad/safejs/internal/catch/index.d.ts +3 -0
- package/dist/gs/github.com/hack-pad/safejs/internal/catch/index.js +50 -0
- package/dist/gs/github.com/hack-pad/safejs/internal/catch/index.js.map +1 -0
- package/dist/gs/github.com/klauspost/compress/internal/le/index.js +3 -2
- package/dist/gs/github.com/klauspost/compress/internal/le/index.js.map +1 -1
- package/dist/gs/github.com/mr-tron/base58/base58/index.d.ts +27 -0
- package/dist/gs/github.com/mr-tron/base58/base58/index.js +172 -0
- package/dist/gs/github.com/mr-tron/base58/base58/index.js.map +1 -0
- package/dist/gs/github.com/zeebo/blake3/internal/consts/index.d.ts +21 -0
- package/dist/gs/github.com/zeebo/blake3/internal/consts/index.js +22 -0
- package/dist/gs/github.com/zeebo/blake3/internal/consts/index.js.map +1 -0
- package/dist/gs/go/token/index.js +11 -4
- package/dist/gs/go/token/index.js.map +1 -1
- package/dist/gs/hash/fnv/index.d.ts +57 -0
- package/dist/gs/hash/fnv/index.js +299 -0
- package/dist/gs/hash/fnv/index.js.map +1 -0
- package/dist/gs/hash/index.d.ts +17 -0
- package/dist/gs/hash/index.js +94 -0
- package/dist/gs/hash/index.js.map +1 -0
- package/dist/gs/io/fs/readlink.js +2 -6
- package/dist/gs/io/fs/readlink.js.map +1 -1
- package/dist/gs/io/fs/walk.js.map +1 -1
- package/dist/gs/io/io.js.map +1 -1
- package/dist/gs/iter/iter.d.ts +3 -2
- package/dist/gs/iter/iter.js.map +1 -1
- package/dist/gs/maps/iter.d.ts +5 -5
- package/dist/gs/maps/iter.js +48 -21
- package/dist/gs/maps/iter.js.map +1 -1
- package/dist/gs/maps/maps.d.ts +6 -6
- package/dist/gs/math/bits/index.js +14 -24
- package/dist/gs/math/bits/index.js.map +1 -1
- package/dist/gs/mime/index.js +3 -1
- package/dist/gs/mime/index.js.map +1 -1
- package/dist/gs/net/http/httptest/index.d.ts +20 -1
- package/dist/gs/net/http/httptest/index.js +83 -3
- package/dist/gs/net/http/httptest/index.js.map +1 -1
- package/dist/gs/net/http/index.d.ts +110 -6
- package/dist/gs/net/http/index.js +262 -16
- package/dist/gs/net/http/index.js.map +1 -1
- package/dist/gs/net/http/pprof/index.d.ts +8 -0
- package/dist/gs/net/http/pprof/index.js +59 -0
- package/dist/gs/net/http/pprof/index.js.map +1 -0
- package/dist/gs/os/error.gs.js +9 -7
- package/dist/gs/os/error.gs.js.map +1 -1
- package/dist/gs/os/types_js.gs.js +95 -15
- package/dist/gs/os/types_js.gs.js.map +1 -1
- package/dist/gs/path/filepath/match.js.map +1 -1
- package/dist/gs/path/filepath/path.d.ts +5 -3
- package/dist/gs/path/filepath/path.js +65 -10
- package/dist/gs/path/filepath/path.js.map +1 -1
- package/dist/gs/reflect/index.d.ts +3 -2
- package/dist/gs/reflect/index.js +2 -1
- package/dist/gs/reflect/index.js.map +1 -1
- package/dist/gs/reflect/iter.js +2 -2
- package/dist/gs/reflect/iter.js.map +1 -1
- package/dist/gs/reflect/map.js +26 -0
- package/dist/gs/reflect/map.js.map +1 -1
- package/dist/gs/reflect/type.d.ts +24 -5
- package/dist/gs/reflect/type.js +390 -38
- package/dist/gs/reflect/type.js.map +1 -1
- package/dist/gs/reflect/types.d.ts +1 -0
- package/dist/gs/reflect/types.js +3 -1
- package/dist/gs/reflect/types.js.map +1 -1
- package/dist/gs/reflect/value.d.ts +4 -1
- package/dist/gs/reflect/value.js +39 -1
- package/dist/gs/reflect/value.js.map +1 -1
- package/dist/gs/reflect/visiblefields.js +1 -1
- package/dist/gs/reflect/visiblefields.js.map +1 -1
- package/dist/gs/runtime/debug/index.d.ts +39 -0
- package/dist/gs/runtime/debug/index.js +58 -0
- package/dist/gs/runtime/debug/index.js.map +1 -1
- package/dist/gs/runtime/pprof/index.d.ts +20 -0
- package/dist/gs/runtime/pprof/index.js +85 -0
- package/dist/gs/runtime/pprof/index.js.map +1 -0
- package/dist/gs/runtime/trace/index.d.ts +19 -0
- package/dist/gs/runtime/trace/index.js +64 -0
- package/dist/gs/runtime/trace/index.js.map +1 -0
- package/dist/gs/slices/slices.d.ts +24 -9
- package/dist/gs/slices/slices.js +229 -24
- package/dist/gs/slices/slices.js.map +1 -1
- package/dist/gs/sort/slice.gs.d.ts +5 -3
- package/dist/gs/sort/slice.gs.js +55 -17
- package/dist/gs/sort/slice.gs.js.map +1 -1
- package/dist/gs/strings/builder.js +26 -17
- package/dist/gs/strings/builder.js.map +1 -1
- package/dist/gs/strings/iter.js +140 -75
- package/dist/gs/strings/iter.js.map +1 -1
- package/dist/gs/strings/replace.js +2 -2
- package/dist/gs/strings/replace.js.map +1 -1
- package/dist/gs/strings/strings.js +52 -6
- package/dist/gs/strings/strings.js.map +1 -1
- package/dist/gs/sync/sync.d.ts +6 -3
- package/dist/gs/sync/sync.js +39 -11
- package/dist/gs/sync/sync.js.map +1 -1
- package/dist/gs/syscall/errors.d.ts +116 -112
- package/dist/gs/syscall/errors.js +38 -1
- package/dist/gs/syscall/errors.js.map +1 -1
- package/dist/gs/syscall/fs.d.ts +2 -8
- package/dist/gs/syscall/fs.js.map +1 -1
- package/dist/gs/syscall/js/index.js +20 -12
- package/dist/gs/syscall/js/index.js.map +1 -1
- package/dist/gs/syscall/types.d.ts +4 -1
- package/dist/gs/syscall/types.js.map +1 -1
- package/dist/gs/testing/testing.d.ts +4 -3
- package/dist/gs/testing/testing.js +21 -4
- package/dist/gs/testing/testing.js.map +1 -1
- package/dist/gs/time/time.js +22 -0
- package/dist/gs/time/time.js.map +1 -1
- package/dist/gs/unicode/unicode.js.map +1 -1
- package/dist/gs/unique/index.js +7 -2
- package/dist/gs/unique/index.js.map +1 -1
- package/go.mod +8 -8
- package/go.sum +14 -23
- package/gs/builtin/builtin.ts +364 -37
- package/gs/builtin/channel.ts +161 -29
- package/gs/builtin/defer.ts +13 -2
- package/gs/builtin/hostio.test.ts +1 -0
- package/gs/builtin/hostio.ts +38 -0
- package/gs/builtin/map.ts +46 -6
- package/gs/builtin/print.ts +12 -3
- package/gs/builtin/runtime-contract.test.ts +257 -10
- package/gs/builtin/slice.test.ts +70 -0
- package/gs/builtin/slice.ts +566 -255
- package/gs/builtin/type.ts +53 -9
- package/gs/builtin/varRef.ts +2 -0
- package/gs/bytes/buffer.gs.ts +28 -28
- package/gs/bytes/iter.gs.ts +13 -14
- package/gs/compress/zlib/index.test.ts +28 -0
- package/gs/compress/zlib/index.ts +200 -0
- package/gs/compress/zlib/meta.json +3 -0
- package/gs/context/context.test.ts +31 -1
- package/gs/context/context.ts +9 -4
- package/gs/crypto/ecdh/index.test.ts +43 -0
- package/gs/crypto/ecdh/index.ts +274 -0
- package/gs/crypto/ed25519/index.test.ts +41 -0
- package/gs/crypto/ed25519/index.ts +238 -0
- package/gs/crypto/ed25519/meta.json +13 -0
- package/gs/crypto/internal/constanttime/index.test.ts +25 -0
- package/gs/crypto/internal/constanttime/index.ts +22 -0
- package/gs/crypto/rand/index.test.ts +89 -1
- package/gs/crypto/rand/index.ts +103 -1
- package/gs/crypto/rand/meta.json +4 -1
- package/gs/crypto/sha256/index.test.ts +78 -0
- package/gs/crypto/sha256/index.ts +150 -0
- package/gs/crypto/sha256/meta.json +9 -0
- package/gs/crypto/sha512/index.test.ts +31 -0
- package/gs/crypto/sha512/index.ts +161 -0
- package/gs/crypto/sha512/meta.json +11 -0
- package/gs/encoding/json/index.test.ts +25 -3
- package/gs/encoding/json/index.ts +21 -3
- package/gs/errors/errors.test.ts +4 -1
- package/gs/errors/errors.ts +32 -8
- package/gs/fmt/fmt.test.ts +3 -1
- package/gs/fmt/fmt.ts +1 -5
- package/gs/github.com/aperturerobotics/protobuf-go-lite/index.test.ts +62 -7
- package/gs/github.com/aperturerobotics/protobuf-go-lite/index.ts +78 -36
- package/gs/github.com/aperturerobotics/protobuf-go-lite/json/index.test.ts +32 -11
- package/gs/github.com/aperturerobotics/protobuf-go-lite/json/index.ts +122 -43
- package/gs/github.com/aperturerobotics/starpc/srpc/index.test.ts +31 -0
- package/gs/github.com/aperturerobotics/starpc/srpc/index.ts +518 -4
- package/gs/github.com/aperturerobotics/starpc/srpc/meta.json +6 -0
- package/gs/github.com/aperturerobotics/util/conc/index.test.ts +30 -0
- package/gs/github.com/aperturerobotics/util/conc/index.ts +172 -0
- package/gs/github.com/aperturerobotics/util/conc/meta.json +9 -0
- package/gs/github.com/aperturerobotics/wasivm/wazero/kernel/runtime/browser/browser.ts +1 -4
- package/gs/github.com/hack-pad/safejs/internal/catch/index.test.ts +35 -0
- package/gs/github.com/hack-pad/safejs/internal/catch/index.ts +65 -0
- package/gs/github.com/hack-pad/safejs/internal/catch/meta.json +9 -0
- package/gs/github.com/klauspost/compress/internal/le/index.test.ts +2 -1
- package/gs/github.com/klauspost/compress/internal/le/index.ts +6 -5
- package/gs/github.com/mr-tron/base58/base58/index.test.ts +70 -0
- package/gs/github.com/mr-tron/base58/base58/index.ts +231 -0
- package/gs/github.com/mr-tron/base58/base58/meta.json +3 -0
- package/gs/github.com/zeebo/blake3/internal/consts/index.test.ts +46 -0
- package/gs/github.com/zeebo/blake3/internal/consts/index.ts +26 -0
- package/gs/go/token/index.ts +17 -4
- package/gs/hash/fnv/index.test.ts +67 -0
- package/gs/hash/fnv/index.ts +351 -0
- package/gs/hash/fnv/meta.json +3 -0
- package/gs/hash/index.test.ts +37 -0
- package/gs/hash/index.ts +118 -0
- package/gs/hash/meta.json +5 -0
- package/gs/internal/byteorder/index.test.ts +6 -6
- package/gs/io/fs/readlink.ts +40 -48
- package/gs/io/fs/walk.ts +10 -2
- package/gs/io/io.ts +4 -1
- package/gs/iter/iter.ts +8 -2
- package/gs/maps/iter.ts +69 -26
- package/gs/maps/maps.test.ts +23 -0
- package/gs/maps/maps.ts +6 -6
- package/gs/math/bits/index.test.ts +20 -0
- package/gs/math/bits/index.ts +15 -28
- package/gs/mime/index.ts +8 -2
- package/gs/net/http/httptest/index.test.ts +53 -0
- package/gs/net/http/httptest/index.ts +98 -3
- package/gs/net/http/index.test.ts +129 -1
- package/gs/net/http/index.ts +370 -19
- package/gs/net/http/meta.json +6 -0
- package/gs/net/http/pprof/index.test.ts +47 -0
- package/gs/net/http/pprof/index.ts +65 -0
- package/gs/os/error.gs.ts +9 -10
- package/gs/os/error.test.ts +41 -0
- package/gs/os/file_unix_js.test.ts +55 -0
- package/gs/os/tempfile.gs.test.ts +37 -10
- package/gs/os/types_js.gs.ts +94 -15
- package/gs/path/filepath/match.ts +4 -1
- package/gs/path/filepath/meta.json +6 -0
- package/gs/path/filepath/path.test.ts +57 -2
- package/gs/path/filepath/path.ts +91 -12
- package/gs/reflect/field.test.ts +63 -0
- package/gs/reflect/index.ts +4 -1
- package/gs/reflect/iter.ts +2 -2
- package/gs/reflect/map.test.ts +24 -2
- package/gs/reflect/map.ts +35 -0
- package/gs/reflect/type.ts +543 -60
- package/gs/reflect/typefor.test.ts +100 -0
- package/gs/reflect/types.ts +3 -1
- package/gs/reflect/value.ts +50 -1
- package/gs/reflect/visiblefields.ts +1 -1
- package/gs/runtime/debug/index.test.ts +22 -1
- package/gs/runtime/debug/index.ts +88 -0
- package/gs/runtime/pprof/index.test.ts +36 -0
- package/gs/runtime/pprof/index.ts +104 -0
- package/gs/runtime/pprof/meta.json +6 -0
- package/gs/runtime/trace/index.test.ts +45 -0
- package/gs/runtime/trace/index.ts +97 -0
- package/gs/runtime/trace/meta.json +7 -0
- package/gs/slices/meta.json +2 -1
- package/gs/slices/slices.test.ts +86 -0
- package/gs/slices/slices.ts +284 -37
- package/gs/sort/slice.gs.ts +73 -23
- package/gs/sort/slice.test.ts +40 -0
- package/gs/strings/builder.test.ts +8 -0
- package/gs/strings/builder.ts +29 -17
- package/gs/strings/iter.test.ts +5 -7
- package/gs/strings/iter.ts +146 -71
- package/gs/strings/replace.test.ts +1 -4
- package/gs/strings/replace.ts +6 -6
- package/gs/strings/strings.test.ts +4 -0
- package/gs/strings/strings.ts +54 -6
- package/gs/sync/sync.test.ts +57 -1
- package/gs/sync/sync.ts +45 -13
- package/gs/syscall/errors.ts +158 -115
- package/gs/syscall/fs.ts +8 -8
- package/gs/syscall/js/index.ts +49 -22
- package/gs/syscall/net.test.ts +26 -0
- package/gs/syscall/types.ts +7 -2
- package/gs/testing/testing.test.ts +56 -0
- package/gs/testing/testing.ts +27 -10
- package/gs/time/meta.json +2 -2
- package/gs/time/time.test.ts +4 -0
- package/gs/time/time.ts +33 -2
- package/gs/unicode/unicode.test.ts +14 -3
- package/gs/unicode/unicode.ts +1 -5
- package/gs/unique/index.ts +9 -2
- package/package.json +3 -3
package/gs/syscall/errors.ts
CHANGED
|
@@ -1,667 +1,710 @@
|
|
|
1
1
|
import * as $ from '@goscript/builtin/index.js'
|
|
2
|
-
import { Errno } from './types.js'
|
|
2
|
+
import { Errno, ErrnoObject } from './types.js'
|
|
3
3
|
|
|
4
4
|
export function Errno_Error(errno: Errno): string {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
if (typeof errno !== 'number') {
|
|
6
|
+
return errno.Error()
|
|
7
|
+
}
|
|
8
|
+
return `errno ${errno}`
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function Errno_Is(errno: Errno, target: $.GoError): boolean {
|
|
12
|
+
if (target === null) {
|
|
13
|
+
return false
|
|
14
|
+
}
|
|
15
|
+
if (typeof errno !== 'number' && errno.Is(target)) {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
const errnoValue = errnoNumber(errno)
|
|
19
|
+
const targetValue = errnoNumber(target)
|
|
20
|
+
return targetValue !== null && errnoValue === targetValue
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function Errno_Temporary(errno: Errno): boolean {
|
|
24
|
+
const value = errnoNumber(errno)
|
|
25
|
+
return (
|
|
26
|
+
value === errnoNumber(EINTR) ||
|
|
27
|
+
value === errnoNumber(EMFILE) ||
|
|
28
|
+
value === errnoNumber(ENFILE) ||
|
|
29
|
+
Errno_Timeout(errno)
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function Errno_Timeout(errno: Errno): boolean {
|
|
34
|
+
const value = errnoNumber(errno)
|
|
35
|
+
return value === errnoNumber(EAGAIN) || value === errnoNumber(ETIMEDOUT)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function errnoNumber(errno: unknown): number | null {
|
|
39
|
+
if (typeof errno === 'number') {
|
|
40
|
+
return errno
|
|
41
|
+
}
|
|
42
|
+
if (errno !== null && typeof errno === 'object') {
|
|
43
|
+
const value = (errno as { Errno?: () => unknown }).Errno?.()
|
|
44
|
+
if (typeof value === 'number') {
|
|
45
|
+
return value
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return null
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const EPERM: ErrnoObject = {
|
|
9
52
|
Error: () => 'operation not permitted',
|
|
10
53
|
Is: (target: $.GoError) => target === EPERM,
|
|
11
54
|
Errno: () => 1,
|
|
12
55
|
}
|
|
13
56
|
|
|
14
|
-
export const ENOENT:
|
|
57
|
+
export const ENOENT: ErrnoObject = {
|
|
15
58
|
Error: () => 'no such file or directory',
|
|
16
59
|
Is: (target: $.GoError) => target === ENOENT,
|
|
17
60
|
Errno: () => 2,
|
|
18
61
|
}
|
|
19
62
|
|
|
20
|
-
export const ESRCH:
|
|
63
|
+
export const ESRCH: ErrnoObject = {
|
|
21
64
|
Error: () => 'no such process',
|
|
22
65
|
Is: (target: $.GoError) => target === ESRCH,
|
|
23
66
|
Errno: () => 3,
|
|
24
67
|
}
|
|
25
68
|
|
|
26
|
-
export const EINTR:
|
|
69
|
+
export const EINTR: ErrnoObject = {
|
|
27
70
|
Error: () => 'interrupted system call',
|
|
28
71
|
Is: (target: $.GoError) => target === EINTR,
|
|
29
72
|
Errno: () => 4,
|
|
30
73
|
}
|
|
31
74
|
|
|
32
|
-
export const EIO:
|
|
75
|
+
export const EIO: ErrnoObject = {
|
|
33
76
|
Error: () => 'I/O error',
|
|
34
77
|
Is: (target: $.GoError) => target === EIO,
|
|
35
78
|
Errno: () => 5,
|
|
36
79
|
}
|
|
37
80
|
|
|
38
|
-
export const ENXIO:
|
|
81
|
+
export const ENXIO: ErrnoObject = {
|
|
39
82
|
Error: () => 'no such device or address',
|
|
40
83
|
Is: (target: $.GoError) => target === ENXIO,
|
|
41
84
|
Errno: () => 6,
|
|
42
85
|
}
|
|
43
86
|
|
|
44
|
-
export const E2BIG:
|
|
87
|
+
export const E2BIG: ErrnoObject = {
|
|
45
88
|
Error: () => 'argument list too long',
|
|
46
89
|
Is: (target: $.GoError) => target === E2BIG,
|
|
47
90
|
Errno: () => 7,
|
|
48
91
|
}
|
|
49
92
|
|
|
50
|
-
export const ENOEXEC:
|
|
93
|
+
export const ENOEXEC: ErrnoObject = {
|
|
51
94
|
Error: () => 'exec format error',
|
|
52
95
|
Is: (target: $.GoError) => target === ENOEXEC,
|
|
53
96
|
Errno: () => 8,
|
|
54
97
|
}
|
|
55
98
|
|
|
56
|
-
export const EBADF:
|
|
99
|
+
export const EBADF: ErrnoObject = {
|
|
57
100
|
Error: () => 'bad file number',
|
|
58
101
|
Is: (target: $.GoError) => target === EBADF,
|
|
59
102
|
Errno: () => 9,
|
|
60
103
|
}
|
|
61
104
|
|
|
62
|
-
export const ECHILD:
|
|
105
|
+
export const ECHILD: ErrnoObject = {
|
|
63
106
|
Error: () => 'no child processes',
|
|
64
107
|
Is: (target: $.GoError) => target === ECHILD,
|
|
65
108
|
Errno: () => 10,
|
|
66
109
|
}
|
|
67
110
|
|
|
68
|
-
export const EAGAIN:
|
|
111
|
+
export const EAGAIN: ErrnoObject = {
|
|
69
112
|
Error: () => 'try again',
|
|
70
113
|
Is: (target: $.GoError) => target === EAGAIN,
|
|
71
114
|
Errno: () => 11,
|
|
72
115
|
}
|
|
73
116
|
|
|
74
|
-
export const ENOMEM:
|
|
117
|
+
export const ENOMEM: ErrnoObject = {
|
|
75
118
|
Error: () => 'out of memory',
|
|
76
119
|
Is: (target: $.GoError) => target === ENOMEM,
|
|
77
120
|
Errno: () => 12,
|
|
78
121
|
}
|
|
79
122
|
|
|
80
|
-
export const EACCES:
|
|
123
|
+
export const EACCES: ErrnoObject = {
|
|
81
124
|
Error: () => 'permission denied',
|
|
82
125
|
Is: (target: $.GoError) => target === EACCES,
|
|
83
126
|
Errno: () => 13,
|
|
84
127
|
}
|
|
85
128
|
|
|
86
|
-
export const EFAULT:
|
|
129
|
+
export const EFAULT: ErrnoObject = {
|
|
87
130
|
Error: () => 'bad address',
|
|
88
131
|
Is: (target: $.GoError) => target === EFAULT,
|
|
89
132
|
Errno: () => 14,
|
|
90
133
|
}
|
|
91
134
|
|
|
92
|
-
export const EBUSY:
|
|
135
|
+
export const EBUSY: ErrnoObject = {
|
|
93
136
|
Error: () => 'device or resource busy',
|
|
94
137
|
Is: (target: $.GoError) => target === EBUSY,
|
|
95
138
|
Errno: () => 16,
|
|
96
139
|
}
|
|
97
140
|
|
|
98
|
-
export const EEXIST:
|
|
141
|
+
export const EEXIST: ErrnoObject = {
|
|
99
142
|
Error: () => 'file exists',
|
|
100
143
|
Is: (target: $.GoError) => target === EEXIST,
|
|
101
144
|
Errno: () => 17,
|
|
102
145
|
}
|
|
103
146
|
|
|
104
|
-
export const EXDEV:
|
|
147
|
+
export const EXDEV: ErrnoObject = {
|
|
105
148
|
Error: () => 'cross-device link',
|
|
106
149
|
Is: (target: $.GoError) => target === EXDEV,
|
|
107
150
|
Errno: () => 18,
|
|
108
151
|
}
|
|
109
152
|
|
|
110
|
-
export const ENODEV:
|
|
153
|
+
export const ENODEV: ErrnoObject = {
|
|
111
154
|
Error: () => 'no such device',
|
|
112
155
|
Is: (target: $.GoError) => target === ENODEV,
|
|
113
156
|
Errno: () => 19,
|
|
114
157
|
}
|
|
115
158
|
|
|
116
|
-
export const ENOTDIR:
|
|
159
|
+
export const ENOTDIR: ErrnoObject = {
|
|
117
160
|
Error: () => 'not a directory',
|
|
118
161
|
Is: (target: $.GoError) => target === ENOTDIR,
|
|
119
162
|
Errno: () => 20,
|
|
120
163
|
}
|
|
121
164
|
|
|
122
|
-
export const EISDIR:
|
|
165
|
+
export const EISDIR: ErrnoObject = {
|
|
123
166
|
Error: () => 'is a directory',
|
|
124
167
|
Is: (target: $.GoError) => target === EISDIR,
|
|
125
168
|
Errno: () => 21,
|
|
126
169
|
}
|
|
127
170
|
|
|
128
|
-
export const EINVAL:
|
|
171
|
+
export const EINVAL: ErrnoObject = {
|
|
129
172
|
Error: () => 'invalid argument',
|
|
130
173
|
Is: (target: $.GoError) => target === EINVAL,
|
|
131
174
|
Errno: () => 22,
|
|
132
175
|
}
|
|
133
176
|
|
|
134
|
-
export const ENFILE:
|
|
177
|
+
export const ENFILE: ErrnoObject = {
|
|
135
178
|
Error: () => 'file table overflow',
|
|
136
179
|
Is: (target: $.GoError) => target === ENFILE,
|
|
137
180
|
Errno: () => 23,
|
|
138
181
|
}
|
|
139
182
|
|
|
140
|
-
export const EMFILE:
|
|
183
|
+
export const EMFILE: ErrnoObject = {
|
|
141
184
|
Error: () => 'too many open files',
|
|
142
185
|
Is: (target: $.GoError) => target === EMFILE,
|
|
143
186
|
Errno: () => 24,
|
|
144
187
|
}
|
|
145
188
|
|
|
146
|
-
export const ENOTTY:
|
|
189
|
+
export const ENOTTY: ErrnoObject = {
|
|
147
190
|
Error: () => 'not a typewriter',
|
|
148
191
|
Is: (target: $.GoError) => target === ENOTTY,
|
|
149
192
|
Errno: () => 25,
|
|
150
193
|
}
|
|
151
194
|
|
|
152
|
-
export const EFBIG:
|
|
195
|
+
export const EFBIG: ErrnoObject = {
|
|
153
196
|
Error: () => 'file too large',
|
|
154
197
|
Is: (target: $.GoError) => target === EFBIG,
|
|
155
198
|
Errno: () => 27,
|
|
156
199
|
}
|
|
157
200
|
|
|
158
|
-
export const ENOSPC:
|
|
201
|
+
export const ENOSPC: ErrnoObject = {
|
|
159
202
|
Error: () => 'no space left on device',
|
|
160
203
|
Is: (target: $.GoError) => target === ENOSPC,
|
|
161
204
|
Errno: () => 28,
|
|
162
205
|
}
|
|
163
206
|
|
|
164
|
-
export const ESPIPE:
|
|
207
|
+
export const ESPIPE: ErrnoObject = {
|
|
165
208
|
Error: () => 'illegal seek',
|
|
166
209
|
Is: (target: $.GoError) => target === ESPIPE,
|
|
167
210
|
Errno: () => 29,
|
|
168
211
|
}
|
|
169
212
|
|
|
170
|
-
export const EROFS:
|
|
213
|
+
export const EROFS: ErrnoObject = {
|
|
171
214
|
Error: () => 'read-only file system',
|
|
172
215
|
Is: (target: $.GoError) => target === EROFS,
|
|
173
216
|
Errno: () => 30,
|
|
174
217
|
}
|
|
175
218
|
|
|
176
|
-
export const EMLINK:
|
|
219
|
+
export const EMLINK: ErrnoObject = {
|
|
177
220
|
Error: () => 'too many links',
|
|
178
221
|
Is: (target: $.GoError) => target === EMLINK,
|
|
179
222
|
Errno: () => 31,
|
|
180
223
|
}
|
|
181
224
|
|
|
182
|
-
export const EPIPE:
|
|
225
|
+
export const EPIPE: ErrnoObject = {
|
|
183
226
|
Error: () => 'broken pipe',
|
|
184
227
|
Is: (target: $.GoError) => target === EPIPE,
|
|
185
228
|
Errno: () => 32,
|
|
186
229
|
}
|
|
187
230
|
|
|
188
|
-
export const EDOM:
|
|
231
|
+
export const EDOM: ErrnoObject = {
|
|
189
232
|
Error: () => 'math arg out of domain of func',
|
|
190
233
|
Is: (target: $.GoError) => target === EDOM,
|
|
191
234
|
Errno: () => 33,
|
|
192
235
|
}
|
|
193
236
|
|
|
194
|
-
export const ERANGE:
|
|
237
|
+
export const ERANGE: ErrnoObject = {
|
|
195
238
|
Error: () => 'result too large',
|
|
196
239
|
Is: (target: $.GoError) => target === ERANGE,
|
|
197
240
|
Errno: () => 34,
|
|
198
241
|
}
|
|
199
242
|
|
|
200
|
-
export const EDEADLK:
|
|
243
|
+
export const EDEADLK: ErrnoObject = {
|
|
201
244
|
Error: () => 'deadlock condition',
|
|
202
245
|
Is: (target: $.GoError) => target === EDEADLK,
|
|
203
246
|
Errno: () => 35,
|
|
204
247
|
}
|
|
205
248
|
|
|
206
|
-
export const ENAMETOOLONG:
|
|
249
|
+
export const ENAMETOOLONG: ErrnoObject = {
|
|
207
250
|
Error: () => 'file name too long',
|
|
208
251
|
Is: (target: $.GoError) => target === ENAMETOOLONG,
|
|
209
252
|
Errno: () => 36,
|
|
210
253
|
}
|
|
211
254
|
|
|
212
|
-
export const ENOLCK:
|
|
255
|
+
export const ENOLCK: ErrnoObject = {
|
|
213
256
|
Error: () => 'no record locks available',
|
|
214
257
|
Is: (target: $.GoError) => target === ENOLCK,
|
|
215
258
|
Errno: () => 37,
|
|
216
259
|
}
|
|
217
260
|
|
|
218
|
-
export const ENOSYS:
|
|
261
|
+
export const ENOSYS: ErrnoObject = {
|
|
219
262
|
Error: () => 'function not implemented',
|
|
220
263
|
Is: (target: $.GoError) => target === ENOSYS,
|
|
221
264
|
Errno: () => 38,
|
|
222
265
|
}
|
|
223
266
|
|
|
224
|
-
export const ENOTSUP:
|
|
267
|
+
export const ENOTSUP: ErrnoObject = {
|
|
225
268
|
Error: () => 'operation not supported',
|
|
226
269
|
Is: (target: $.GoError) => target === ENOTSUP,
|
|
227
270
|
Errno: () => 95,
|
|
228
271
|
}
|
|
229
272
|
|
|
230
|
-
export const ENOTEMPTY:
|
|
273
|
+
export const ENOTEMPTY: ErrnoObject = {
|
|
231
274
|
Error: () => 'directory not empty',
|
|
232
275
|
Is: (target: $.GoError) => target === ENOTEMPTY,
|
|
233
276
|
Errno: () => 39,
|
|
234
277
|
}
|
|
235
278
|
|
|
236
|
-
export const ELOOP:
|
|
279
|
+
export const ELOOP: ErrnoObject = {
|
|
237
280
|
Error: () => 'too many symbolic links',
|
|
238
281
|
Is: (target: $.GoError) => target === ELOOP,
|
|
239
282
|
Errno: () => 40,
|
|
240
283
|
}
|
|
241
284
|
|
|
242
|
-
export const ENOMSG:
|
|
285
|
+
export const ENOMSG: ErrnoObject = {
|
|
243
286
|
Error: () => 'no message of desired type',
|
|
244
287
|
Is: (target: $.GoError) => target === ENOMSG,
|
|
245
288
|
Errno: () => 42,
|
|
246
289
|
}
|
|
247
290
|
|
|
248
|
-
export const EIDRM:
|
|
291
|
+
export const EIDRM: ErrnoObject = {
|
|
249
292
|
Error: () => 'identifier removed',
|
|
250
293
|
Is: (target: $.GoError) => target === EIDRM,
|
|
251
294
|
Errno: () => 43,
|
|
252
295
|
}
|
|
253
296
|
|
|
254
|
-
export const ECHRNG:
|
|
297
|
+
export const ECHRNG: ErrnoObject = {
|
|
255
298
|
Error: () => 'channel number out of range',
|
|
256
299
|
Is: (target: $.GoError) => target === ECHRNG,
|
|
257
300
|
Errno: () => 44,
|
|
258
301
|
}
|
|
259
302
|
|
|
260
|
-
export const EL2NSYNC:
|
|
303
|
+
export const EL2NSYNC: ErrnoObject = {
|
|
261
304
|
Error: () => 'level 2 not synchronized',
|
|
262
305
|
Is: (target: $.GoError) => target === EL2NSYNC,
|
|
263
306
|
Errno: () => 45,
|
|
264
307
|
}
|
|
265
308
|
|
|
266
|
-
export const EL3HLT:
|
|
309
|
+
export const EL3HLT: ErrnoObject = {
|
|
267
310
|
Error: () => 'level 3 halted',
|
|
268
311
|
Is: (target: $.GoError) => target === EL3HLT,
|
|
269
312
|
Errno: () => 46,
|
|
270
313
|
}
|
|
271
314
|
|
|
272
|
-
export const EL3RST:
|
|
315
|
+
export const EL3RST: ErrnoObject = {
|
|
273
316
|
Error: () => 'level 3 reset',
|
|
274
317
|
Is: (target: $.GoError) => target === EL3RST,
|
|
275
318
|
Errno: () => 47,
|
|
276
319
|
}
|
|
277
320
|
|
|
278
|
-
export const ELNRNG:
|
|
321
|
+
export const ELNRNG: ErrnoObject = {
|
|
279
322
|
Error: () => 'link number out of range',
|
|
280
323
|
Is: (target: $.GoError) => target === ELNRNG,
|
|
281
324
|
Errno: () => 48,
|
|
282
325
|
}
|
|
283
326
|
|
|
284
|
-
export const EUNATCH:
|
|
327
|
+
export const EUNATCH: ErrnoObject = {
|
|
285
328
|
Error: () => 'protocol driver not attached',
|
|
286
329
|
Is: (target: $.GoError) => target === EUNATCH,
|
|
287
330
|
Errno: () => 49,
|
|
288
331
|
}
|
|
289
332
|
|
|
290
|
-
export const ENOCSI:
|
|
333
|
+
export const ENOCSI: ErrnoObject = {
|
|
291
334
|
Error: () => 'no CSI structure available',
|
|
292
335
|
Is: (target: $.GoError) => target === ENOCSI,
|
|
293
336
|
Errno: () => 50,
|
|
294
337
|
}
|
|
295
338
|
|
|
296
|
-
export const EL2HLT:
|
|
339
|
+
export const EL2HLT: ErrnoObject = {
|
|
297
340
|
Error: () => 'level 2 halted',
|
|
298
341
|
Is: (target: $.GoError) => target === EL2HLT,
|
|
299
342
|
Errno: () => 51,
|
|
300
343
|
}
|
|
301
344
|
|
|
302
|
-
export const EBADE:
|
|
345
|
+
export const EBADE: ErrnoObject = {
|
|
303
346
|
Error: () => 'invalid exchange',
|
|
304
347
|
Is: (target: $.GoError) => target === EBADE,
|
|
305
348
|
Errno: () => 52,
|
|
306
349
|
}
|
|
307
350
|
|
|
308
|
-
export const EBADR:
|
|
351
|
+
export const EBADR: ErrnoObject = {
|
|
309
352
|
Error: () => 'invalid request descriptor',
|
|
310
353
|
Is: (target: $.GoError) => target === EBADR,
|
|
311
354
|
Errno: () => 53,
|
|
312
355
|
}
|
|
313
356
|
|
|
314
|
-
export const EXFULL:
|
|
357
|
+
export const EXFULL: ErrnoObject = {
|
|
315
358
|
Error: () => 'exchange full',
|
|
316
359
|
Is: (target: $.GoError) => target === EXFULL,
|
|
317
360
|
Errno: () => 54,
|
|
318
361
|
}
|
|
319
362
|
|
|
320
|
-
export const ENOANO:
|
|
363
|
+
export const ENOANO: ErrnoObject = {
|
|
321
364
|
Error: () => 'no anode',
|
|
322
365
|
Is: (target: $.GoError) => target === ENOANO,
|
|
323
366
|
Errno: () => 55,
|
|
324
367
|
}
|
|
325
368
|
|
|
326
|
-
export const EBADRQC:
|
|
369
|
+
export const EBADRQC: ErrnoObject = {
|
|
327
370
|
Error: () => 'invalid request code',
|
|
328
371
|
Is: (target: $.GoError) => target === EBADRQC,
|
|
329
372
|
Errno: () => 56,
|
|
330
373
|
}
|
|
331
374
|
|
|
332
|
-
export const EBADSLT:
|
|
375
|
+
export const EBADSLT: ErrnoObject = {
|
|
333
376
|
Error: () => 'invalid slot',
|
|
334
377
|
Is: (target: $.GoError) => target === EBADSLT,
|
|
335
378
|
Errno: () => 57,
|
|
336
379
|
}
|
|
337
380
|
|
|
338
|
-
export const EDEADLOCK:
|
|
381
|
+
export const EDEADLOCK: ErrnoObject = EDEADLK // File locking deadlock error
|
|
339
382
|
|
|
340
|
-
export const EBFONT:
|
|
383
|
+
export const EBFONT: ErrnoObject = {
|
|
341
384
|
Error: () => 'bad font file fmt',
|
|
342
385
|
Is: (target: $.GoError) => target === EBFONT,
|
|
343
386
|
Errno: () => 59,
|
|
344
387
|
}
|
|
345
388
|
|
|
346
|
-
export const ENOSTR:
|
|
389
|
+
export const ENOSTR: ErrnoObject = {
|
|
347
390
|
Error: () => 'device not a stream',
|
|
348
391
|
Is: (target: $.GoError) => target === ENOSTR,
|
|
349
392
|
Errno: () => 60,
|
|
350
393
|
}
|
|
351
394
|
|
|
352
|
-
export const ENODATA:
|
|
395
|
+
export const ENODATA: ErrnoObject = {
|
|
353
396
|
Error: () => 'no data (for no delay io)',
|
|
354
397
|
Is: (target: $.GoError) => target === ENODATA,
|
|
355
398
|
Errno: () => 61,
|
|
356
399
|
}
|
|
357
400
|
|
|
358
|
-
export const ETIME:
|
|
401
|
+
export const ETIME: ErrnoObject = {
|
|
359
402
|
Error: () => 'timer expired',
|
|
360
403
|
Is: (target: $.GoError) => target === ETIME,
|
|
361
404
|
Errno: () => 62,
|
|
362
405
|
}
|
|
363
406
|
|
|
364
|
-
export const ENOSR:
|
|
407
|
+
export const ENOSR: ErrnoObject = {
|
|
365
408
|
Error: () => 'out of streams resources',
|
|
366
409
|
Is: (target: $.GoError) => target === ENOSR,
|
|
367
410
|
Errno: () => 63,
|
|
368
411
|
}
|
|
369
412
|
|
|
370
|
-
export const ENONET:
|
|
413
|
+
export const ENONET: ErrnoObject = {
|
|
371
414
|
Error: () => 'machine is not on the network',
|
|
372
415
|
Is: (target: $.GoError) => target === ENONET,
|
|
373
416
|
Errno: () => 64,
|
|
374
417
|
}
|
|
375
418
|
|
|
376
|
-
export const ENOPKG:
|
|
419
|
+
export const ENOPKG: ErrnoObject = {
|
|
377
420
|
Error: () => 'package not installed',
|
|
378
421
|
Is: (target: $.GoError) => target === ENOPKG,
|
|
379
422
|
Errno: () => 65,
|
|
380
423
|
}
|
|
381
424
|
|
|
382
|
-
export const EREMOTE:
|
|
425
|
+
export const EREMOTE: ErrnoObject = {
|
|
383
426
|
Error: () => 'the object is remote',
|
|
384
427
|
Is: (target: $.GoError) => target === EREMOTE,
|
|
385
428
|
Errno: () => 66,
|
|
386
429
|
}
|
|
387
430
|
|
|
388
|
-
export const ENOLINK:
|
|
431
|
+
export const ENOLINK: ErrnoObject = {
|
|
389
432
|
Error: () => 'the link has been severed',
|
|
390
433
|
Is: (target: $.GoError) => target === ENOLINK,
|
|
391
434
|
Errno: () => 67,
|
|
392
435
|
}
|
|
393
436
|
|
|
394
|
-
export const EADV:
|
|
437
|
+
export const EADV: ErrnoObject = {
|
|
395
438
|
Error: () => 'advertise error',
|
|
396
439
|
Is: (target: $.GoError) => target === EADV,
|
|
397
440
|
Errno: () => 68,
|
|
398
441
|
}
|
|
399
442
|
|
|
400
|
-
export const ESRMNT:
|
|
443
|
+
export const ESRMNT: ErrnoObject = {
|
|
401
444
|
Error: () => 'srmount error',
|
|
402
445
|
Is: (target: $.GoError) => target === ESRMNT,
|
|
403
446
|
Errno: () => 69,
|
|
404
447
|
}
|
|
405
448
|
|
|
406
|
-
export const ECOMM:
|
|
449
|
+
export const ECOMM: ErrnoObject = {
|
|
407
450
|
Error: () => 'communication error on send',
|
|
408
451
|
Is: (target: $.GoError) => target === ECOMM,
|
|
409
452
|
Errno: () => 70,
|
|
410
453
|
}
|
|
411
454
|
|
|
412
|
-
export const EPROTO:
|
|
455
|
+
export const EPROTO: ErrnoObject = {
|
|
413
456
|
Error: () => 'protocol error',
|
|
414
457
|
Is: (target: $.GoError) => target === EPROTO,
|
|
415
458
|
Errno: () => 71,
|
|
416
459
|
}
|
|
417
460
|
|
|
418
|
-
export const EMULTIHOP:
|
|
461
|
+
export const EMULTIHOP: ErrnoObject = {
|
|
419
462
|
Error: () => 'multihop attempted',
|
|
420
463
|
Is: (target: $.GoError) => target === EMULTIHOP,
|
|
421
464
|
Errno: () => 72,
|
|
422
465
|
}
|
|
423
466
|
|
|
424
|
-
export const EDOTDOT:
|
|
467
|
+
export const EDOTDOT: ErrnoObject = {
|
|
425
468
|
Error: () => 'cross mount point (not really error)',
|
|
426
469
|
Is: (target: $.GoError) => target === EDOTDOT,
|
|
427
470
|
Errno: () => 73,
|
|
428
471
|
}
|
|
429
472
|
|
|
430
|
-
export const EBADMSG:
|
|
473
|
+
export const EBADMSG: ErrnoObject = {
|
|
431
474
|
Error: () => 'trying to read unreadable message',
|
|
432
475
|
Is: (target: $.GoError) => target === EBADMSG,
|
|
433
476
|
Errno: () => 74,
|
|
434
477
|
}
|
|
435
478
|
|
|
436
|
-
export const EOVERFLOW:
|
|
479
|
+
export const EOVERFLOW: ErrnoObject = {
|
|
437
480
|
Error: () => 'value too large for defined data type',
|
|
438
481
|
Is: (target: $.GoError) => target === EOVERFLOW,
|
|
439
482
|
Errno: () => 75,
|
|
440
483
|
}
|
|
441
484
|
|
|
442
|
-
export const ENOTUNIQ:
|
|
485
|
+
export const ENOTUNIQ: ErrnoObject = {
|
|
443
486
|
Error: () => 'given log. name not unique',
|
|
444
487
|
Is: (target: $.GoError) => target === ENOTUNIQ,
|
|
445
488
|
Errno: () => 76,
|
|
446
489
|
}
|
|
447
490
|
|
|
448
|
-
export const EBADFD:
|
|
491
|
+
export const EBADFD: ErrnoObject = {
|
|
449
492
|
Error: () => 'f.d. invalid for this operation',
|
|
450
493
|
Is: (target: $.GoError) => target === EBADFD,
|
|
451
494
|
Errno: () => 77,
|
|
452
495
|
}
|
|
453
496
|
|
|
454
|
-
export const EREMCHG:
|
|
497
|
+
export const EREMCHG: ErrnoObject = {
|
|
455
498
|
Error: () => 'remote address changed',
|
|
456
499
|
Is: (target: $.GoError) => target === EREMCHG,
|
|
457
500
|
Errno: () => 78,
|
|
458
501
|
}
|
|
459
502
|
|
|
460
|
-
export const ELIBACC:
|
|
503
|
+
export const ELIBACC: ErrnoObject = {
|
|
461
504
|
Error: () => "can't access a needed shared lib",
|
|
462
505
|
Is: (target: $.GoError) => target === ELIBACC,
|
|
463
506
|
Errno: () => 79,
|
|
464
507
|
}
|
|
465
508
|
|
|
466
|
-
export const ELIBBAD:
|
|
509
|
+
export const ELIBBAD: ErrnoObject = {
|
|
467
510
|
Error: () => 'accessing a corrupted shared lib',
|
|
468
511
|
Is: (target: $.GoError) => target === ELIBBAD,
|
|
469
512
|
Errno: () => 80,
|
|
470
513
|
}
|
|
471
514
|
|
|
472
|
-
export const ELIBSCN:
|
|
515
|
+
export const ELIBSCN: ErrnoObject = {
|
|
473
516
|
Error: () => '.lib section in a.out corrupted',
|
|
474
517
|
Is: (target: $.GoError) => target === ELIBSCN,
|
|
475
518
|
Errno: () => 81,
|
|
476
519
|
}
|
|
477
520
|
|
|
478
|
-
export const ELIBMAX:
|
|
521
|
+
export const ELIBMAX: ErrnoObject = {
|
|
479
522
|
Error: () => 'attempting to link in too many libs',
|
|
480
523
|
Is: (target: $.GoError) => target === ELIBMAX,
|
|
481
524
|
Errno: () => 82,
|
|
482
525
|
}
|
|
483
526
|
|
|
484
|
-
export const ELIBEXEC:
|
|
527
|
+
export const ELIBEXEC: ErrnoObject = {
|
|
485
528
|
Error: () => 'attempting to exec a shared library',
|
|
486
529
|
Is: (target: $.GoError) => target === ELIBEXEC,
|
|
487
530
|
Errno: () => 83,
|
|
488
531
|
}
|
|
489
532
|
|
|
490
|
-
export const EILSEQ:
|
|
533
|
+
export const EILSEQ: ErrnoObject = {
|
|
491
534
|
Error: () => 'illegal byte sequence',
|
|
492
535
|
Is: (target: $.GoError) => target === EILSEQ,
|
|
493
536
|
Errno: () => 84,
|
|
494
537
|
}
|
|
495
538
|
|
|
496
|
-
export const EUSERS:
|
|
539
|
+
export const EUSERS: ErrnoObject = {
|
|
497
540
|
Error: () => 'too many users',
|
|
498
541
|
Is: (target: $.GoError) => target === EUSERS,
|
|
499
542
|
Errno: () => 87,
|
|
500
543
|
}
|
|
501
544
|
|
|
502
|
-
export const ENOTSOCK:
|
|
545
|
+
export const ENOTSOCK: ErrnoObject = {
|
|
503
546
|
Error: () => 'socket operation on non-socket',
|
|
504
547
|
Is: (target: $.GoError) => target === ENOTSOCK,
|
|
505
548
|
Errno: () => 88,
|
|
506
549
|
}
|
|
507
550
|
|
|
508
|
-
export const EDESTADDRREQ:
|
|
551
|
+
export const EDESTADDRREQ: ErrnoObject = {
|
|
509
552
|
Error: () => 'destination address required',
|
|
510
553
|
Is: (target: $.GoError) => target === EDESTADDRREQ,
|
|
511
554
|
Errno: () => 89,
|
|
512
555
|
}
|
|
513
556
|
|
|
514
|
-
export const EMSGSIZE:
|
|
557
|
+
export const EMSGSIZE: ErrnoObject = {
|
|
515
558
|
Error: () => 'message too long',
|
|
516
559
|
Is: (target: $.GoError) => target === EMSGSIZE,
|
|
517
560
|
Errno: () => 90,
|
|
518
561
|
}
|
|
519
562
|
|
|
520
|
-
export const EPROTOTYPE:
|
|
563
|
+
export const EPROTOTYPE: ErrnoObject = {
|
|
521
564
|
Error: () => 'protocol wrong type for socket',
|
|
522
565
|
Is: (target: $.GoError) => target === EPROTOTYPE,
|
|
523
566
|
Errno: () => 91,
|
|
524
567
|
}
|
|
525
568
|
|
|
526
|
-
export const ENOPROTOOPT:
|
|
569
|
+
export const ENOPROTOOPT: ErrnoObject = {
|
|
527
570
|
Error: () => 'protocol not available',
|
|
528
571
|
Is: (target: $.GoError) => target === ENOPROTOOPT,
|
|
529
572
|
Errno: () => 92,
|
|
530
573
|
}
|
|
531
574
|
|
|
532
|
-
export const EPROTONOSUPPORT:
|
|
575
|
+
export const EPROTONOSUPPORT: ErrnoObject = {
|
|
533
576
|
Error: () => 'unknown protocol',
|
|
534
577
|
Is: (target: $.GoError) => target === EPROTONOSUPPORT,
|
|
535
578
|
Errno: () => 93,
|
|
536
579
|
}
|
|
537
580
|
|
|
538
|
-
export const ESOCKTNOSUPPORT:
|
|
581
|
+
export const ESOCKTNOSUPPORT: ErrnoObject = {
|
|
539
582
|
Error: () => 'socket type not supported',
|
|
540
583
|
Is: (target: $.GoError) => target === ESOCKTNOSUPPORT,
|
|
541
584
|
Errno: () => 94,
|
|
542
585
|
}
|
|
543
586
|
|
|
544
|
-
export const EOPNOTSUPP:
|
|
587
|
+
export const EOPNOTSUPP: ErrnoObject = {
|
|
545
588
|
Error: () => 'operation not supported on transport endpoint',
|
|
546
589
|
Is: (target: $.GoError) => target === EOPNOTSUPP,
|
|
547
590
|
Errno: () => 95,
|
|
548
591
|
}
|
|
549
592
|
|
|
550
|
-
export const EPFNOSUPPORT:
|
|
593
|
+
export const EPFNOSUPPORT: ErrnoObject = {
|
|
551
594
|
Error: () => 'protocol family not supported',
|
|
552
595
|
Is: (target: $.GoError) => target === EPFNOSUPPORT,
|
|
553
596
|
Errno: () => 96,
|
|
554
597
|
}
|
|
555
598
|
|
|
556
|
-
export const EAFNOSUPPORT:
|
|
599
|
+
export const EAFNOSUPPORT: ErrnoObject = {
|
|
557
600
|
Error: () => 'address family not supported by protocol family',
|
|
558
601
|
Is: (target: $.GoError) => target === EAFNOSUPPORT,
|
|
559
602
|
Errno: () => 97,
|
|
560
603
|
}
|
|
561
604
|
|
|
562
|
-
export const EADDRINUSE:
|
|
605
|
+
export const EADDRINUSE: ErrnoObject = {
|
|
563
606
|
Error: () => 'address already in use',
|
|
564
607
|
Is: (target: $.GoError) => target === EADDRINUSE,
|
|
565
608
|
Errno: () => 98,
|
|
566
609
|
}
|
|
567
610
|
|
|
568
|
-
export const EADDRNOTAVAIL:
|
|
611
|
+
export const EADDRNOTAVAIL: ErrnoObject = {
|
|
569
612
|
Error: () => 'address not available',
|
|
570
613
|
Is: (target: $.GoError) => target === EADDRNOTAVAIL,
|
|
571
614
|
Errno: () => 99,
|
|
572
615
|
}
|
|
573
616
|
|
|
574
|
-
export const ENETDOWN:
|
|
617
|
+
export const ENETDOWN: ErrnoObject = {
|
|
575
618
|
Error: () => 'network interface is not configured',
|
|
576
619
|
Is: (target: $.GoError) => target === ENETDOWN,
|
|
577
620
|
Errno: () => 100,
|
|
578
621
|
}
|
|
579
622
|
|
|
580
|
-
export const ENETUNREACH:
|
|
623
|
+
export const ENETUNREACH: ErrnoObject = {
|
|
581
624
|
Error: () => 'network is unreachable',
|
|
582
625
|
Is: (target: $.GoError) => target === ENETUNREACH,
|
|
583
626
|
Errno: () => 101,
|
|
584
627
|
}
|
|
585
628
|
|
|
586
|
-
export const ENETRESET:
|
|
629
|
+
export const ENETRESET: ErrnoObject = {
|
|
587
630
|
Error: () => 'network dropped connection because of reset',
|
|
588
631
|
Is: (target: $.GoError) => target === ENETRESET,
|
|
589
632
|
Errno: () => 102,
|
|
590
633
|
}
|
|
591
634
|
|
|
592
|
-
export const ECONNABORTED:
|
|
635
|
+
export const ECONNABORTED: ErrnoObject = {
|
|
593
636
|
Error: () => 'connection aborted',
|
|
594
637
|
Is: (target: $.GoError) => target === ECONNABORTED,
|
|
595
638
|
Errno: () => 103,
|
|
596
639
|
}
|
|
597
640
|
|
|
598
|
-
export const ECONNRESET:
|
|
641
|
+
export const ECONNRESET: ErrnoObject = {
|
|
599
642
|
Error: () => 'connection reset by peer',
|
|
600
643
|
Is: (target: $.GoError) => target === ECONNRESET,
|
|
601
644
|
Errno: () => 104,
|
|
602
645
|
}
|
|
603
646
|
|
|
604
|
-
export const ENOBUFS:
|
|
647
|
+
export const ENOBUFS: ErrnoObject = {
|
|
605
648
|
Error: () => 'no buffer space available',
|
|
606
649
|
Is: (target: $.GoError) => target === ENOBUFS,
|
|
607
650
|
Errno: () => 105,
|
|
608
651
|
}
|
|
609
652
|
|
|
610
|
-
export const EISCONN:
|
|
653
|
+
export const EISCONN: ErrnoObject = {
|
|
611
654
|
Error: () => 'socket is already connected',
|
|
612
655
|
Is: (target: $.GoError) => target === EISCONN,
|
|
613
656
|
Errno: () => 106,
|
|
614
657
|
}
|
|
615
658
|
|
|
616
|
-
export const ENOTCONN:
|
|
659
|
+
export const ENOTCONN: ErrnoObject = {
|
|
617
660
|
Error: () => 'socket is not connected',
|
|
618
661
|
Is: (target: $.GoError) => target === ENOTCONN,
|
|
619
662
|
Errno: () => 107,
|
|
620
663
|
}
|
|
621
664
|
|
|
622
|
-
export const ESHUTDOWN:
|
|
665
|
+
export const ESHUTDOWN: ErrnoObject = {
|
|
623
666
|
Error: () => "can't send after socket shutdown",
|
|
624
667
|
Is: (target: $.GoError) => target === ESHUTDOWN,
|
|
625
668
|
Errno: () => 108,
|
|
626
669
|
}
|
|
627
670
|
|
|
628
|
-
export const ETOOMANYREFS:
|
|
671
|
+
export const ETOOMANYREFS: ErrnoObject = {
|
|
629
672
|
Error: () => 'too many references: cannot splice',
|
|
630
673
|
Is: (target: $.GoError) => target === ETOOMANYREFS,
|
|
631
674
|
Errno: () => 109,
|
|
632
675
|
}
|
|
633
676
|
|
|
634
|
-
export const ETIMEDOUT:
|
|
677
|
+
export const ETIMEDOUT: ErrnoObject = {
|
|
635
678
|
Error: () => 'connection timed out',
|
|
636
679
|
Is: (target: $.GoError) => target === ETIMEDOUT,
|
|
637
680
|
Errno: () => 110,
|
|
638
681
|
}
|
|
639
682
|
|
|
640
|
-
export const ECONNREFUSED:
|
|
683
|
+
export const ECONNREFUSED: ErrnoObject = {
|
|
641
684
|
Error: () => 'connection refused',
|
|
642
685
|
Is: (target: $.GoError) => target === ECONNREFUSED,
|
|
643
686
|
Errno: () => 111,
|
|
644
687
|
}
|
|
645
688
|
|
|
646
|
-
export const EHOSTDOWN:
|
|
689
|
+
export const EHOSTDOWN: ErrnoObject = {
|
|
647
690
|
Error: () => 'host is down',
|
|
648
691
|
Is: (target: $.GoError) => target === EHOSTDOWN,
|
|
649
692
|
Errno: () => 112,
|
|
650
693
|
}
|
|
651
694
|
|
|
652
|
-
export const EHOSTUNREACH:
|
|
695
|
+
export const EHOSTUNREACH: ErrnoObject = {
|
|
653
696
|
Error: () => 'host is unreachable',
|
|
654
697
|
Is: (target: $.GoError) => target === EHOSTUNREACH,
|
|
655
698
|
Errno: () => 113,
|
|
656
699
|
}
|
|
657
700
|
|
|
658
|
-
export const EALREADY:
|
|
701
|
+
export const EALREADY: ErrnoObject = {
|
|
659
702
|
Error: () => 'socket already connected',
|
|
660
703
|
Is: (target: $.GoError) => target === EALREADY,
|
|
661
704
|
Errno: () => 114,
|
|
662
705
|
}
|
|
663
706
|
|
|
664
|
-
export const EDQUOT:
|
|
707
|
+
export const EDQUOT: ErrnoObject = {
|
|
665
708
|
Error: () => 'quota exceeded',
|
|
666
709
|
Is: (target: $.GoError) => target === EDQUOT,
|
|
667
710
|
Errno: () => 122,
|