make runtime compatible with wasm
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// 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
|
||||
|
||||
package syscall
|
||||
@@ -1637,3 +1637,176 @@ const (
|
||||
SIGXCPU = Signal(0x1e)
|
||||
SIGXFSZ = Signal(0x1f)
|
||||
)
|
||||
|
||||
// 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: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such 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: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
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: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user