make runtime compatible with wasm
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
// mkerrors.sh
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- _const.go
|
||||
|
||||
//go:build arm && openbsd
|
||||
|
||||
package syscall
|
||||
|
||||
const (
|
||||
@@ -1329,6 +1327,7 @@ const (
|
||||
EALREADY = Errno(0x25)
|
||||
EAUTH = Errno(0x50)
|
||||
EBADF = Errno(0x9)
|
||||
EBADMSG = Errno(0x5c)
|
||||
EBADRPC = Errno(0x48)
|
||||
EBUSY = Errno(0x10)
|
||||
ECANCELED = Errno(0x58)
|
||||
@@ -1355,7 +1354,7 @@ const (
|
||||
EIPSEC = Errno(0x52)
|
||||
EISCONN = Errno(0x38)
|
||||
EISDIR = Errno(0x15)
|
||||
ELAST = Errno(0x5b)
|
||||
ELAST = Errno(0x5f)
|
||||
ELOOP = Errno(0x3e)
|
||||
EMEDIUMTYPE = Errno(0x56)
|
||||
EMFILE = Errno(0x18)
|
||||
@@ -1383,12 +1382,14 @@ const (
|
||||
ENOTCONN = Errno(0x39)
|
||||
ENOTDIR = Errno(0x14)
|
||||
ENOTEMPTY = Errno(0x42)
|
||||
ENOTRECOVERABLE = Errno(0x5d)
|
||||
ENOTSOCK = Errno(0x26)
|
||||
ENOTSUP = Errno(0x5b)
|
||||
ENOTTY = Errno(0x19)
|
||||
ENXIO = Errno(0x6)
|
||||
EOPNOTSUPP = Errno(0x2d)
|
||||
EOVERFLOW = Errno(0x57)
|
||||
EOWNERDEAD = Errno(0x5e)
|
||||
EPERM = Errno(0x1)
|
||||
EPFNOSUPPORT = Errno(0x2e)
|
||||
EPIPE = Errno(0x20)
|
||||
@@ -1396,6 +1397,7 @@ const (
|
||||
EPROCUNAVAIL = Errno(0x4c)
|
||||
EPROGMISMATCH = Errno(0x4b)
|
||||
EPROGUNAVAIL = Errno(0x4a)
|
||||
EPROTO = Errno(0x5f)
|
||||
EPROTONOSUPPORT = Errno(0x2b)
|
||||
EPROTOTYPE = Errno(0x29)
|
||||
ERANGE = Errno(0x22)
|
||||
@@ -1451,3 +1453,138 @@ const (
|
||||
SIGXCPU = Signal(0x18)
|
||||
SIGXFSZ = Signal(0x19)
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disk quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC program not available",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "IPsec processing failure",
|
||||
83: "attribute not found",
|
||||
84: "illegal byte sequence",
|
||||
85: "no medium found",
|
||||
86: "wrong medium type",
|
||||
87: "value too large to be stored in data type",
|
||||
88: "operation canceled",
|
||||
89: "identifier removed",
|
||||
90: "no message of desired type",
|
||||
91: "not supported",
|
||||
92: "bad message",
|
||||
93: "state not recoverable",
|
||||
94: "previous owner died",
|
||||
95: "protocol error",
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "thread AST",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user