Commit 5c4917ce authored by Russ Cox's avatar Russ Cox

syscall: rebuild z files

darwin/386
darwin/amd64
freebsd/386
freebsd/amd64
linux/386
linux/amd64
nacl/386

TBR=adg
CC=golang-dev
https://golang.org/cl/2198047
parent f33ef07f
// mkerrors.sh // mkerrors.sh -f -m32
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// godefs -gsyscall _const.c // godefs -c gcc -f -m32 -gsyscall -f -m32 _const.c
// MACHINE GENERATED - DO NOT EDIT. // MACHINE GENERATED - DO NOT EDIT.
...@@ -576,7 +576,7 @@ const ( ...@@ -576,7 +576,7 @@ const (
WEXITED = 0x4 WEXITED = 0x4
WNOHANG = 0x1 WNOHANG = 0x1
WNOWAIT = 0x20 WNOWAIT = 0x20
WORDSIZE = 0x40 WORDSIZE = 0x20
WSTOPPED = 0x7f WSTOPPED = 0x7f
WUNTRACED = 0x2 WUNTRACED = 0x2
) )
...@@ -586,107 +586,107 @@ const ( ...@@ -586,107 +586,107 @@ const (
// Error table // Error table
var errors = [...]string{ 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", 7: "argument list too long",
13: "permission denied", 8: "exec format error",
48: "address already in use",
49: "can't assign requested address",
47: "address family not supported by protocol family",
35: "resource temporarily unavailable",
37: "operation already in progress",
80: "authentication error",
86: "bad CPU type in executable",
85: "bad executable (or shared library)",
9: "bad file descriptor", 9: "bad file descriptor",
88: "malformed Mach-o file",
94: "bad message",
72: "RPC struct is bad",
16: "resource busy",
89: "operation canceled",
10: "no child processes", 10: "no child processes",
53: "software caused connection abort",
61: "connection refused",
54: "connection reset by peer",
11: "resource deadlock avoided", 11: "resource deadlock avoided",
39: "destination address required", 12: "cannot allocate memory",
83: "device error", 13: "permission denied",
33: "numerical argument out of domain",
69: "disc quota exceeded",
17: "file exists",
14: "bad address", 14: "bad address",
27: "file too large", 15: "block device required",
79: "inappropriate file type or format", 16: "resource busy",
64: "host is down", 17: "file exists",
65: "no route to host", 18: "cross-device link",
90: "identifier removed", 19: "operation not supported by device",
92: "illegal byte sequence", 20: "not a directory",
36: "operation now in progress",
4: "interrupted system call",
22: "invalid argument",
5: "input/output error",
56: "socket is already connected",
21: "is a directory", 21: "is a directory",
103: "policy not found", 22: "invalid argument",
62: "too many levels of symbolic links", 23: "too many open files in system",
24: "too many open files", 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", 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", 40: "message too long",
95: "EMULTIHOP (Reserved)", 41: "protocol wrong type for socket",
63: "file name too long", 42: "protocol not available",
81: "need authenticator", 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", 50: "network is down",
52: "network dropped connection on reset",
51: "network is unreachable", 51: "network is unreachable",
23: "too many open files in system", 52: "network dropped connection on reset",
93: "attribute not found", 53: "software caused connection abort",
54: "connection reset by peer",
55: "no buffer space available", 55: "no buffer space available",
96: "no message available on STREAM", 56: "socket is already connected",
19: "operation not supported by device",
2: "no such file or directory",
8: "exec format error",
77: "no locks available",
97: "ENOLINK (Reserved)",
12: "cannot allocate memory",
91: "no message of desired type",
42: "protocol not available",
28: "no space left on device",
98: "no STREAM resources",
99: "not a STREAM",
78: "function not implemented",
15: "block device required",
57: "socket is not connected", 57: "socket is not connected",
20: "not a directory", 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", 66: "directory not empty",
38: "socket operation on non-socket",
45: "operation not supported",
25: "inappropriate ioctl for device",
6: "device not configured",
102: "operation not supported on socket",
84: "value too large to be stored in data type",
1: "operation not permitted",
46: "protocol family not supported",
32: "broken pipe",
67: "too many processes", 67: "too many processes",
76: "bad procedure for program", 68: "too many users",
75: "program version wrong", 69: "disc quota exceeded",
74: "RPC prog. not avail", 70: "stale NFS file handle",
100: "protocol error",
43: "protocol not supported",
41: "protocol wrong type for socket",
82: "device power is off",
34: "result too large",
71: "too many levels of remote in path", 71: "too many levels of remote in path",
30: "read-only file system", 72: "RPC struct is bad",
73: "RPC version wrong", 73: "RPC version wrong",
74: "RPC prog. not avail",
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: "device power is off",
83: "device error",
84: "value too large to be stored in data type",
85: "bad executable (or shared library)",
86: "bad CPU type in executable",
87: "shared library version mismatch", 87: "shared library version mismatch",
58: "can't send after socket shutdown", 88: "malformed Mach-o file",
44: "socket type not supported", 89: "operation canceled",
29: "illegal seek", 90: "identifier removed",
3: "no such process", 91: "no message of desired type",
70: "stale NFS file handle", 92: "illegal byte sequence",
93: "attribute not found",
94: "bad message",
95: "EMULTIHOP (Reserved)",
96: "no message available on STREAM",
97: "ENOLINK (Reserved)",
98: "no STREAM resources",
99: "not a STREAM",
100: "protocol error",
101: "STREAM ioctl timeout", 101: "STREAM ioctl timeout",
60: "operation timed out", 102: "operation not supported on socket",
59: "too many references: can't splice", 103: "policy not found",
26: "text file busy",
68: "too many users",
18: "cross-device link",
} }
// mkerrors.sh // mkerrors.sh
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// godefs -gsyscall _const.c // godefs -c gcc -gsyscall _const.c
// MACHINE GENERATED - DO NOT EDIT. // MACHINE GENERATED - DO NOT EDIT.
...@@ -586,107 +586,107 @@ const ( ...@@ -586,107 +586,107 @@ const (
// Error table // Error table
var errors = [...]string{ 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", 7: "argument list too long",
13: "permission denied", 8: "exec format error",
48: "address already in use",
49: "can't assign requested address",
47: "address family not supported by protocol family",
35: "resource temporarily unavailable",
37: "operation already in progress",
80: "authentication error",
86: "bad CPU type in executable",
85: "bad executable (or shared library)",
9: "bad file descriptor", 9: "bad file descriptor",
88: "malformed Mach-o file",
94: "bad message",
72: "RPC struct is bad",
16: "resource busy",
89: "operation canceled",
10: "no child processes", 10: "no child processes",
53: "software caused connection abort",
61: "connection refused",
54: "connection reset by peer",
11: "resource deadlock avoided", 11: "resource deadlock avoided",
39: "destination address required", 12: "cannot allocate memory",
83: "device error", 13: "permission denied",
33: "numerical argument out of domain",
69: "disc quota exceeded",
17: "file exists",
14: "bad address", 14: "bad address",
27: "file too large", 15: "block device required",
79: "inappropriate file type or format", 16: "resource busy",
64: "host is down", 17: "file exists",
65: "no route to host", 18: "cross-device link",
90: "identifier removed", 19: "operation not supported by device",
92: "illegal byte sequence", 20: "not a directory",
36: "operation now in progress",
4: "interrupted system call",
22: "invalid argument",
5: "input/output error",
56: "socket is already connected",
21: "is a directory", 21: "is a directory",
103: "policy not found", 22: "invalid argument",
62: "too many levels of symbolic links", 23: "too many open files in system",
24: "too many open files", 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", 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", 40: "message too long",
95: "EMULTIHOP (Reserved)", 41: "protocol wrong type for socket",
63: "file name too long", 42: "protocol not available",
81: "need authenticator", 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", 50: "network is down",
52: "network dropped connection on reset",
51: "network is unreachable", 51: "network is unreachable",
23: "too many open files in system", 52: "network dropped connection on reset",
93: "attribute not found", 53: "software caused connection abort",
54: "connection reset by peer",
55: "no buffer space available", 55: "no buffer space available",
96: "no message available on STREAM", 56: "socket is already connected",
19: "operation not supported by device",
2: "no such file or directory",
8: "exec format error",
77: "no locks available",
97: "ENOLINK (Reserved)",
12: "cannot allocate memory",
91: "no message of desired type",
42: "protocol not available",
28: "no space left on device",
98: "no STREAM resources",
99: "not a STREAM",
78: "function not implemented",
15: "block device required",
57: "socket is not connected", 57: "socket is not connected",
20: "not a directory", 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", 66: "directory not empty",
38: "socket operation on non-socket",
45: "operation not supported",
25: "inappropriate ioctl for device",
6: "device not configured",
102: "operation not supported on socket",
84: "value too large to be stored in data type",
1: "operation not permitted",
46: "protocol family not supported",
32: "broken pipe",
67: "too many processes", 67: "too many processes",
76: "bad procedure for program", 68: "too many users",
75: "program version wrong", 69: "disc quota exceeded",
74: "RPC prog. not avail", 70: "stale NFS file handle",
100: "protocol error",
43: "protocol not supported",
41: "protocol wrong type for socket",
82: "device power is off",
34: "result too large",
71: "too many levels of remote in path", 71: "too many levels of remote in path",
30: "read-only file system", 72: "RPC struct is bad",
73: "RPC version wrong", 73: "RPC version wrong",
74: "RPC prog. not avail",
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: "device power is off",
83: "device error",
84: "value too large to be stored in data type",
85: "bad executable (or shared library)",
86: "bad CPU type in executable",
87: "shared library version mismatch", 87: "shared library version mismatch",
58: "can't send after socket shutdown", 88: "malformed Mach-o file",
44: "socket type not supported", 89: "operation canceled",
29: "illegal seek", 90: "identifier removed",
3: "no such process", 91: "no message of desired type",
70: "stale NFS file handle", 92: "illegal byte sequence",
93: "attribute not found",
94: "bad message",
95: "EMULTIHOP (Reserved)",
96: "no message available on STREAM",
97: "ENOLINK (Reserved)",
98: "no STREAM resources",
99: "not a STREAM",
100: "protocol error",
101: "STREAM ioctl timeout", 101: "STREAM ioctl timeout",
60: "operation timed out", 102: "operation not supported on socket",
59: "too many references: can't splice", 103: "policy not found",
26: "text file busy",
68: "too many users",
18: "cross-device link",
} }
This diff is collapsed.
...@@ -605,96 +605,96 @@ const ( ...@@ -605,96 +605,96 @@ const (
// Error table // Error table
var errors = [...]string{ 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", 7: "argument list too long",
13: "permission denied", 8: "exec format error",
48: "address already in use",
49: "can't assign requested address",
47: "address family not supported by protocol family",
35: "resource temporarily unavailable",
37: "operation already in progress",
80: "authentication error",
9: "bad file descriptor", 9: "bad file descriptor",
89: "bad message",
72: "RPC struct is bad",
16: "device busy",
85: "operation canceled",
10: "no child processes", 10: "no child processes",
53: "software caused connection abort",
61: "connection refused",
54: "connection reset by peer",
11: "resource deadlock avoided", 11: "resource deadlock avoided",
39: "destination address required", 12: "cannot allocate memory",
33: "numerical argument out of domain", 13: "permission denied",
88: "programming error",
69: "disc quota exceeded",
17: "file exists",
14: "bad address", 14: "bad address",
27: "file too large", 15: "block device required",
79: "inappropriate file type or format", 16: "device busy",
64: "host is down", 17: "file exists",
65: "no route to host", 18: "cross-device link",
82: "identifier removed", 19: "operation not supported by device",
86: "illegal byte sequence", 20: "not a directory",
36: "operation now in progress",
4: "interrupted system call",
22: "invalid argument",
5: "input/output error",
56: "socket is already connected",
21: "is a directory", 21: "is a directory",
92: "protocol error", 22: "invalid argument",
62: "too many levels of symbolic links", 23: "too many open files in system",
24: "too many open files", 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", 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", 40: "message too long",
90: "multihop attempted", 41: "protocol wrong type for socket",
63: "file name too long", 42: "protocol not available",
81: "need authenticator", 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", 50: "network is down",
52: "network dropped connection on reset",
51: "network is unreachable", 51: "network is unreachable",
23: "too many open files in system", 52: "network dropped connection on reset",
87: "attribute not found", 53: "software caused connection abort",
54: "connection reset by peer",
55: "no buffer space available", 55: "no buffer space available",
19: "operation not supported by device", 56: "socket is already connected",
2: "no such file or directory",
8: "exec format error",
77: "no locks available",
91: "link has been severed",
12: "cannot allocate memory",
83: "no message of desired type",
42: "protocol not available",
28: "no space left on device",
78: "function not implemented",
15: "block device required",
57: "socket is not connected", 57: "socket is not connected",
20: "not a directory", 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", 66: "directory not empty",
38: "socket operation on non-socket",
45: "operation not supported",
25: "inappropriate ioctl for device",
6: "device not configured",
84: "value too large to be stored in data type",
1: "operation not permitted",
46: "protocol family not supported",
32: "broken pipe",
67: "too many processes", 67: "too many processes",
76: "bad procedure for program", 68: "too many users",
75: "program version wrong", 69: "disc quota exceeded",
74: "RPC prog. not avail", 70: "stale NFS file handle",
43: "protocol not supported",
41: "protocol wrong type for socket",
34: "result too large",
71: "too many levels of remote in path", 71: "too many levels of remote in path",
30: "read-only file system", 72: "RPC struct is bad",
73: "RPC version wrong", 73: "RPC version wrong",
58: "can't send after socket shutdown", 74: "RPC prog. not avail",
44: "socket type not supported", 75: "program version wrong",
29: "illegal seek", 76: "bad procedure for program",
3: "no such process", 77: "no locks available",
70: "stale NFS file handle", 78: "function not implemented",
60: "operation timed out", 79: "inappropriate file type or format",
59: "too many references: can't splice", 80: "authentication error",
26: "text file busy", 81: "need authenticator",
68: "too many users", 82: "identifier removed",
18: "cross-device link", 83: "no message of desired type",
84: "value too large to be stored in data type",
85: "operation canceled",
86: "illegal byte sequence",
87: "attribute not found",
88: "programming error",
89: "bad message",
90: "multihop attempted",
91: "link has been severed",
92: "protocol error",
} }
...@@ -584,134 +584,134 @@ const ( ...@@ -584,134 +584,134 @@ const (
// Error table // Error table
var errors = [...]string{ 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", 7: "argument list too long",
13: "permission denied", 8: "exec format error",
98: "address already in use",
99: "cannot assign requested address",
68: "advertise error",
97: "address family not supported by protocol",
11: "resource temporarily unavailable",
114: "operation already in progress",
52: "invalid exchange",
9: "bad file descriptor", 9: "bad file descriptor",
77: "file descriptor in bad state",
74: "bad message",
53: "invalid request descriptor",
56: "invalid request code",
57: "invalid slot",
59: "bad font file format",
16: "device or resource busy",
125: "operation canceled",
10: "no child processes", 10: "no child processes",
44: "channel number out of range", 11: "resource temporarily unavailable",
70: "communication error on send", 12: "cannot allocate memory",
103: "software caused connection abort", 13: "permission denied",
111: "connection refused",
104: "connection reset by peer",
35: "resource deadlock avoided",
89: "destination address required",
33: "numerical argument out of domain",
73: "RFS specific error",
122: "disk quota exceeded",
17: "file exists",
14: "bad address", 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", 27: "file too large",
112: "host is down", 28: "no space left on device",
113: "no route to host", 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: "resource deadlock avoided",
36: "file name too long",
37: "no locks available",
38: "function not implemented",
39: "directory not empty",
40: "too many levels of symbolic links",
42: "no message of desired type",
43: "identifier removed", 43: "identifier removed",
84: "invalid or incomplete multibyte or wide character", 44: "channel number out of range",
115: "operation now in progress",
4: "interrupted system call",
22: "invalid argument",
5: "input/output error",
106: "transport endpoint is already connected",
21: "is a directory",
120: "is a named type file",
127: "key has expired",
129: "key was rejected by service",
128: "key has been revoked",
51: "level 2 halted",
45: "level 2 not synchronized", 45: "level 2 not synchronized",
46: "level 3 halted", 46: "level 3 halted",
47: "level 3 reset", 47: "level 3 reset",
79: "can not access a needed shared library",
80: "accessing a corrupted shared library",
83: "cannot exec a shared library directly",
82: "attempting to link in too many shared libraries",
81: ".lib section in a.out corrupted",
48: "link number out of range", 48: "link number out of range",
40: "too many levels of symbolic links", 49: "protocol driver not attached",
124: "wrong medium type",
24: "too many open files",
31: "too many links",
90: "message too long",
72: "multihop attempted",
36: "file name too long",
119: "no XENIX semaphores available",
100: "network is down",
102: "network dropped connection on reset",
101: "network is unreachable",
23: "too many open files in system",
55: "no anode",
105: "no buffer space available",
50: "no CSI structure available", 50: "no CSI structure available",
51: "level 2 halted",
52: "invalid exchange",
53: "invalid request descriptor",
54: "exchange full",
55: "no anode",
56: "invalid request code",
57: "invalid slot",
59: "bad font file format",
60: "device not a stream",
61: "no data available", 61: "no data available",
19: "no such device", 62: "timer expired",
2: "no such file or directory", 63: "out of streams resources",
8: "exec format error",
126: "required key not available",
37: "no locks available",
67: "link has been severed",
123: "no medium found",
12: "cannot allocate memory",
42: "no message of desired type",
64: "machine is not on the network", 64: "machine is not on the network",
65: "package not installed", 65: "package not installed",
92: "protocol not available", 66: "object is remote",
28: "no space left on device", 67: "link has been severed",
63: "out of streams resources", 68: "advertise error",
60: "device not a stream", 69: "srmount error",
38: "function not implemented", 70: "communication error on send",
15: "block device required",
107: "transport endpoint is not connected",
20: "not a directory",
39: "directory not empty",
118: "not a XENIX named type file",
131: "state not recoverable",
88: "socket operation on non-socket",
95: "operation not supported",
25: "inappropriate ioctl for device",
76: "name not unique on network",
6: "no such device or address",
75: "value too large for defined data type",
130: "owner died",
1: "operation not permitted",
96: "protocol family not supported",
32: "broken pipe",
71: "protocol error", 71: "protocol error",
93: "protocol not supported", 72: "multihop attempted",
91: "protocol wrong type for socket", 73: "RFS specific error",
34: "numerical result out of range", 74: "bad message",
75: "value too large for defined data type",
76: "name not unique on network",
77: "file descriptor in bad state",
78: "remote address changed", 78: "remote address changed",
66: "object is remote", 79: "can not access a needed shared library",
121: "remote I/O error", 80: "accessing a corrupted shared library",
81: ".lib section in a.out corrupted",
82: "attempting to link in too many shared libraries",
83: "cannot exec a shared library directly",
84: "invalid or incomplete multibyte or wide character",
85: "interrupted system call should be restarted", 85: "interrupted system call should be restarted",
132: "unknown error 132",
30: "read-only file system",
108: "cannot send after transport endpoint shutdown",
94: "socket type not supported",
29: "illegal seek",
3: "no such process",
69: "srmount error",
116: "stale NFS file handle",
86: "streams pipe error", 86: "streams pipe error",
62: "timer expired", 87: "too many users",
110: "connection timed out", 88: "socket operation on non-socket",
89: "destination address required",
90: "message too long",
91: "protocol wrong type for socket",
92: "protocol not available",
93: "protocol not supported",
94: "socket type not supported",
95: "operation not supported",
96: "protocol family not supported",
97: "address family not supported by protocol",
98: "address already in use",
99: "cannot assign requested address",
100: "network is down",
101: "network is unreachable",
102: "network dropped connection on reset",
103: "software caused connection abort",
104: "connection reset by peer",
105: "no buffer space available",
106: "transport endpoint is already connected",
107: "transport endpoint is not connected",
108: "cannot send after transport endpoint shutdown",
109: "too many references: cannot splice", 109: "too many references: cannot splice",
26: "text file busy", 110: "connection timed out",
111: "connection refused",
112: "host is down",
113: "no route to host",
114: "operation already in progress",
115: "operation now in progress",
116: "stale NFS file handle",
117: "structure needs cleaning", 117: "structure needs cleaning",
49: "protocol driver not attached", 118: "not a XENIX named type file",
87: "too many users", 119: "no XENIX semaphores available",
18: "invalid cross-device link", 120: "is a named type file",
54: "exchange full", 121: "remote I/O error",
122: "disk quota exceeded",
123: "no medium found",
124: "wrong medium type",
125: "operation canceled",
126: "required key not available",
127: "key has expired",
128: "key has been revoked",
129: "key was rejected by service",
130: "owner died",
131: "state not recoverable",
132: "unknown error 132",
} }
...@@ -585,134 +585,134 @@ const ( ...@@ -585,134 +585,134 @@ const (
// Error table // Error table
var errors = [...]string{ 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", 7: "argument list too long",
13: "permission denied", 8: "exec format error",
98: "address already in use",
99: "cannot assign requested address",
68: "advertise error",
97: "address family not supported by protocol",
11: "resource temporarily unavailable",
114: "operation already in progress",
52: "invalid exchange",
9: "bad file descriptor", 9: "bad file descriptor",
77: "file descriptor in bad state",
74: "bad message",
53: "invalid request descriptor",
56: "invalid request code",
57: "invalid slot",
59: "bad font file format",
16: "device or resource busy",
125: "operation canceled",
10: "no child processes", 10: "no child processes",
44: "channel number out of range", 11: "resource temporarily unavailable",
70: "communication error on send", 12: "cannot allocate memory",
103: "software caused connection abort", 13: "permission denied",
111: "connection refused",
104: "connection reset by peer",
35: "resource deadlock avoided",
89: "destination address required",
33: "numerical argument out of domain",
73: "RFS specific error",
122: "disk quota exceeded",
17: "file exists",
14: "bad address", 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", 27: "file too large",
112: "host is down", 28: "no space left on device",
113: "no route to host", 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: "resource deadlock avoided",
36: "file name too long",
37: "no locks available",
38: "function not implemented",
39: "directory not empty",
40: "too many levels of symbolic links",
42: "no message of desired type",
43: "identifier removed", 43: "identifier removed",
84: "invalid or incomplete multibyte or wide character", 44: "channel number out of range",
115: "operation now in progress",
4: "interrupted system call",
22: "invalid argument",
5: "input/output error",
106: "transport endpoint is already connected",
21: "is a directory",
120: "is a named type file",
127: "key has expired",
129: "key was rejected by service",
128: "key has been revoked",
51: "level 2 halted",
45: "level 2 not synchronized", 45: "level 2 not synchronized",
46: "level 3 halted", 46: "level 3 halted",
47: "level 3 reset", 47: "level 3 reset",
79: "can not access a needed shared library",
80: "accessing a corrupted shared library",
83: "cannot exec a shared library directly",
82: "attempting to link in too many shared libraries",
81: ".lib section in a.out corrupted",
48: "link number out of range", 48: "link number out of range",
40: "too many levels of symbolic links", 49: "protocol driver not attached",
124: "wrong medium type",
24: "too many open files",
31: "too many links",
90: "message too long",
72: "multihop attempted",
36: "file name too long",
119: "no XENIX semaphores available",
100: "network is down",
102: "network dropped connection on reset",
101: "network is unreachable",
23: "too many open files in system",
55: "no anode",
105: "no buffer space available",
50: "no CSI structure available", 50: "no CSI structure available",
51: "level 2 halted",
52: "invalid exchange",
53: "invalid request descriptor",
54: "exchange full",
55: "no anode",
56: "invalid request code",
57: "invalid slot",
59: "bad font file format",
60: "device not a stream",
61: "no data available", 61: "no data available",
19: "no such device", 62: "timer expired",
2: "no such file or directory", 63: "out of streams resources",
8: "exec format error",
126: "required key not available",
37: "no locks available",
67: "link has been severed",
123: "no medium found",
12: "cannot allocate memory",
42: "no message of desired type",
64: "machine is not on the network", 64: "machine is not on the network",
65: "package not installed", 65: "package not installed",
92: "protocol not available", 66: "object is remote",
28: "no space left on device", 67: "link has been severed",
63: "out of streams resources", 68: "advertise error",
60: "device not a stream", 69: "srmount error",
38: "function not implemented", 70: "communication error on send",
15: "block device required",
107: "transport endpoint is not connected",
20: "not a directory",
39: "directory not empty",
118: "not a XENIX named type file",
131: "state not recoverable",
88: "socket operation on non-socket",
95: "operation not supported",
25: "inappropriate ioctl for device",
76: "name not unique on network",
6: "no such device or address",
75: "value too large for defined data type",
130: "owner died",
1: "operation not permitted",
96: "protocol family not supported",
32: "broken pipe",
71: "protocol error", 71: "protocol error",
93: "protocol not supported", 72: "multihop attempted",
91: "protocol wrong type for socket", 73: "RFS specific error",
34: "numerical result out of range", 74: "bad message",
75: "value too large for defined data type",
76: "name not unique on network",
77: "file descriptor in bad state",
78: "remote address changed", 78: "remote address changed",
66: "object is remote", 79: "can not access a needed shared library",
121: "remote I/O error", 80: "accessing a corrupted shared library",
81: ".lib section in a.out corrupted",
82: "attempting to link in too many shared libraries",
83: "cannot exec a shared library directly",
84: "invalid or incomplete multibyte or wide character",
85: "interrupted system call should be restarted", 85: "interrupted system call should be restarted",
132: "unknown error 132",
30: "read-only file system",
108: "cannot send after transport endpoint shutdown",
94: "socket type not supported",
29: "illegal seek",
3: "no such process",
69: "srmount error",
116: "stale NFS file handle",
86: "streams pipe error", 86: "streams pipe error",
62: "timer expired", 87: "too many users",
110: "connection timed out", 88: "socket operation on non-socket",
89: "destination address required",
90: "message too long",
91: "protocol wrong type for socket",
92: "protocol not available",
93: "protocol not supported",
94: "socket type not supported",
95: "operation not supported",
96: "protocol family not supported",
97: "address family not supported by protocol",
98: "address already in use",
99: "cannot assign requested address",
100: "network is down",
101: "network is unreachable",
102: "network dropped connection on reset",
103: "software caused connection abort",
104: "connection reset by peer",
105: "no buffer space available",
106: "transport endpoint is already connected",
107: "transport endpoint is not connected",
108: "cannot send after transport endpoint shutdown",
109: "too many references: cannot splice", 109: "too many references: cannot splice",
26: "text file busy", 110: "connection timed out",
111: "connection refused",
112: "host is down",
113: "no route to host",
114: "operation already in progress",
115: "operation now in progress",
116: "stale NFS file handle",
117: "structure needs cleaning", 117: "structure needs cleaning",
49: "protocol driver not attached", 118: "not a XENIX named type file",
87: "too many users", 119: "no XENIX semaphores available",
18: "invalid cross-device link", 120: "is a named type file",
54: "exchange full", 121: "remote I/O error",
122: "disk quota exceeded",
123: "no medium found",
124: "wrong medium type",
125: "operation canceled",
126: "required key not available",
127: "key has expired",
128: "key has been revoked",
129: "key was rejected by service",
130: "owner died",
131: "state not recoverable",
132: "unknown error 132",
} }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -5,35 +5,47 @@ package syscall ...@@ -5,35 +5,47 @@ package syscall
import "unsafe" import "unsafe"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Chmod(path string, mode uint32) (errno int) { func Chmod(path string, mode uint32) (errno int) {
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Clock() (clock int) { func Clock() (clock int) {
r0, _, _ := Syscall(SYS_CLOCK, 0, 0, 0) r0, _, _ := Syscall(SYS_CLOCK, 0, 0, 0)
clock = int(r0) clock = int(r0)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Close(fd int) (errno int) { func Close(fd int) (errno int) {
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Exit(code int) { func Exit(code int) {
Syscall(SYS_EXIT, uintptr(code), 0, 0) Syscall(SYS_EXIT, uintptr(code), 0, 0)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstat(fd int, stat *Stat_t) (errno int) { func Fstat(fd int, stat *Stat_t) (errno int) {
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getdents(fd int, buf []byte) (n int, errno int) { func Getdents(fd int, buf []byte) (n int, errno int) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(buf) > 0 { if len(buf) > 0 {
...@@ -47,18 +59,24 @@ func Getdents(fd int, buf []byte) (n int, errno int) { ...@@ -47,18 +59,24 @@ func Getdents(fd int, buf []byte) (n int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Getpid() (pid int) { func Getpid() (pid int) {
r0, _, _ := Syscall(SYS_GETPID, 0, 0, 0) r0, _, _ := Syscall(SYS_GETPID, 0, 0, 0)
pid = int(r0) pid = int(r0)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Gettimeofday(tv *Timeval) (errno int) { func Gettimeofday(tv *Timeval) (errno int) {
_, _, e1 := Syscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) _, _, e1 := Syscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Open(path string, mode int, perm uint32) (fd int, errno int) { func Open(path string, mode int, perm uint32) (fd int, errno int) {
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(perm)) r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), uintptr(perm))
fd = int(r0) fd = int(r0)
...@@ -66,6 +84,8 @@ func Open(path string, mode int, perm uint32) (fd int, errno int) { ...@@ -66,6 +84,8 @@ func Open(path string, mode int, perm uint32) (fd int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Read(fd int, p []byte) (n int, errno int) { func Read(fd int, p []byte) (n int, errno int) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(p) > 0 { if len(p) > 0 {
...@@ -79,6 +99,8 @@ func Read(fd int, p []byte) (n int, errno int) { ...@@ -79,6 +99,8 @@ func Read(fd int, p []byte) (n int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func read(fd int, buf *byte, nbuf int) (n int, errno int) { func read(fd int, buf *byte, nbuf int) (n int, errno int) {
r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
n = int(r0) n = int(r0)
...@@ -86,12 +108,16 @@ func read(fd int, buf *byte, nbuf int) (n int, errno int) { ...@@ -86,12 +108,16 @@ func read(fd int, buf *byte, nbuf int) (n int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Stat(path string, stat *Stat_t) (errno int) { func Stat(path string, stat *Stat_t) (errno int) {
_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(stat)), 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Write(fd int, p []byte) (n int, errno int) { func Write(fd int, p []byte) (n int, errno int) {
var _p0 unsafe.Pointer var _p0 unsafe.Pointer
if len(p) > 0 { if len(p) > 0 {
...@@ -105,18 +131,24 @@ func Write(fd int, p []byte) (n int, errno int) { ...@@ -105,18 +131,24 @@ func Write(fd int, p []byte) (n int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func MultimediaInit(subsys int) (errno int) { func MultimediaInit(subsys int) (errno int) {
_, _, e1 := Syscall(SYS_MULTIMEDIA_INIT, uintptr(subsys), 0, 0) _, _, e1 := Syscall(SYS_MULTIMEDIA_INIT, uintptr(subsys), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func MultimediaShutdown() (errno int) { func MultimediaShutdown() (errno int) {
_, _, e1 := Syscall(SYS_MULTIMEDIA_SHUTDOWN, 0, 0, 0) _, _, e1 := Syscall(SYS_MULTIMEDIA_SHUTDOWN, 0, 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func CondCreate() (cv int, errno int) { func CondCreate() (cv int, errno int) {
r0, _, e1 := Syscall(SYS_COND_CREATE, 0, 0, 0) r0, _, e1 := Syscall(SYS_COND_CREATE, 0, 0, 0)
cv = int(r0) cv = int(r0)
...@@ -124,30 +156,40 @@ func CondCreate() (cv int, errno int) { ...@@ -124,30 +156,40 @@ func CondCreate() (cv int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func CondWait(cv int, mutex int) (errno int) { func CondWait(cv int, mutex int) (errno int) {
_, _, e1 := Syscall(SYS_COND_WAIT, uintptr(cv), uintptr(mutex), 0) _, _, e1 := Syscall(SYS_COND_WAIT, uintptr(cv), uintptr(mutex), 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func CondSignal(cv int) (errno int) { func CondSignal(cv int) (errno int) {
_, _, e1 := Syscall(SYS_COND_SIGNAL, uintptr(cv), 0, 0) _, _, e1 := Syscall(SYS_COND_SIGNAL, uintptr(cv), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func CondBroadcast(cv int) (errno int) { func CondBroadcast(cv int) (errno int) {
_, _, e1 := Syscall(SYS_COND_BROADCAST, uintptr(cv), 0, 0) _, _, e1 := Syscall(SYS_COND_BROADCAST, uintptr(cv), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func CondTimedWaitAbs(cv int, mutex int, abstime *Timespec) (errno int) { func CondTimedWaitAbs(cv int, mutex int, abstime *Timespec) (errno int) {
_, _, e1 := Syscall(SYS_COND_TIMED_WAIT_ABS, uintptr(cv), uintptr(mutex), uintptr(unsafe.Pointer(abstime))) _, _, e1 := Syscall(SYS_COND_TIMED_WAIT_ABS, uintptr(cv), uintptr(mutex), uintptr(unsafe.Pointer(abstime)))
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func MutexCreate() (mutex int, errno int) { func MutexCreate() (mutex int, errno int) {
r0, _, e1 := Syscall(SYS_MUTEX_CREATE, 0, 0, 0) r0, _, e1 := Syscall(SYS_MUTEX_CREATE, 0, 0, 0)
mutex = int(r0) mutex = int(r0)
...@@ -155,24 +197,32 @@ func MutexCreate() (mutex int, errno int) { ...@@ -155,24 +197,32 @@ func MutexCreate() (mutex int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func MutexLock(mutex int) (errno int) { func MutexLock(mutex int) (errno int) {
_, _, e1 := Syscall(SYS_MUTEX_LOCK, uintptr(mutex), 0, 0) _, _, e1 := Syscall(SYS_MUTEX_LOCK, uintptr(mutex), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func MutexUnlock(mutex int) (errno int) { func MutexUnlock(mutex int) (errno int) {
_, _, e1 := Syscall(SYS_MUTEX_UNLOCK, uintptr(mutex), 0, 0) _, _, e1 := Syscall(SYS_MUTEX_UNLOCK, uintptr(mutex), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func MutexTryLock(mutex int) (errno int) { func MutexTryLock(mutex int) (errno int) {
_, _, e1 := Syscall(SYS_MUTEX_TRYLOCK, uintptr(mutex), 0, 0) _, _, e1 := Syscall(SYS_MUTEX_TRYLOCK, uintptr(mutex), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func SemCreate() (sema int, errno int) { func SemCreate() (sema int, errno int) {
r0, _, e1 := Syscall(SYS_SEM_CREATE, 0, 0, 0) r0, _, e1 := Syscall(SYS_SEM_CREATE, 0, 0, 0)
sema = int(r0) sema = int(r0)
...@@ -180,54 +230,72 @@ func SemCreate() (sema int, errno int) { ...@@ -180,54 +230,72 @@ func SemCreate() (sema int, errno int) {
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func SemWait(sema int) (errno int) { func SemWait(sema int) (errno int) {
_, _, e1 := Syscall(SYS_SEM_WAIT, uintptr(sema), 0, 0) _, _, e1 := Syscall(SYS_SEM_WAIT, uintptr(sema), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func SemPost(sema int) (errno int) { func SemPost(sema int) (errno int) {
_, _, e1 := Syscall(SYS_SEM_POST, uintptr(sema), 0, 0) _, _, e1 := Syscall(SYS_SEM_POST, uintptr(sema), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func VideoInit(dx int, dy int) (errno int) { func VideoInit(dx int, dy int) (errno int) {
_, _, e1 := Syscall(SYS_VIDEO_INIT, uintptr(dx), uintptr(dy), 0) _, _, e1 := Syscall(SYS_VIDEO_INIT, uintptr(dx), uintptr(dy), 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func VideoUpdate(data *uint32) (errno int) { func VideoUpdate(data *uint32) (errno int) {
_, _, e1 := Syscall(SYS_VIDEO_UPDATE, uintptr(unsafe.Pointer(data)), 0, 0) _, _, e1 := Syscall(SYS_VIDEO_UPDATE, uintptr(unsafe.Pointer(data)), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func VideoPollEvent(ev *byte) (errno int) { func VideoPollEvent(ev *byte) (errno int) {
_, _, e1 := Syscall(SYS_VIDEO_POLL_EVENT, uintptr(unsafe.Pointer(ev)), 0, 0) _, _, e1 := Syscall(SYS_VIDEO_POLL_EVENT, uintptr(unsafe.Pointer(ev)), 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func VideoShutdown() (errno int) { func VideoShutdown() (errno int) {
_, _, e1 := Syscall(SYS_VIDEO_SHUTDOWN, 0, 0, 0) _, _, e1 := Syscall(SYS_VIDEO_SHUTDOWN, 0, 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func AudioInit(fmt int, nreq int, data *int) (errno int) { func AudioInit(fmt int, nreq int, data *int) (errno int) {
_, _, e1 := Syscall(SYS_AUDIO_INIT, uintptr(fmt), uintptr(nreq), uintptr(unsafe.Pointer(data))) _, _, e1 := Syscall(SYS_AUDIO_INIT, uintptr(fmt), uintptr(nreq), uintptr(unsafe.Pointer(data)))
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func AudioShutdown() (errno int) { func AudioShutdown() (errno int) {
_, _, e1 := Syscall(SYS_AUDIO_SHUTDOWN, 0, 0, 0) _, _, e1 := Syscall(SYS_AUDIO_SHUTDOWN, 0, 0, 0)
errno = int(e1) errno = int(e1)
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func AudioStream(data *uint16, size *uintptr) (errno int) { func AudioStream(data *uint16, size *uintptr) (errno int) {
_, _, e1 := Syscall(SYS_AUDIO_STREAM, uintptr(unsafe.Pointer(data)), uintptr(unsafe.Pointer(size)), 0) _, _, e1 := Syscall(SYS_AUDIO_STREAM, uintptr(unsafe.Pointer(data)), uintptr(unsafe.Pointer(size)), 0)
errno = int(e1) errno = int(e1)
......
// mksysnum_freebsd.sh /usr/src/sys/kern/syscalls.master // mksysnum_freebsd.sh
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
package syscall package syscall
...@@ -317,4 +317,5 @@ const ( ...@@ -317,4 +317,5 @@ const (
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
) )
// mksysnum_freebsd.sh /usr/src/sys/kern/syscalls.master // mksysnum_freebsd.sh
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
package syscall package syscall
...@@ -317,4 +317,5 @@ const ( ...@@ -317,4 +317,5 @@ const (
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
) )
...@@ -24,6 +24,7 @@ const ( ...@@ -24,6 +24,7 @@ const (
SYS_SYSCONF = 33 SYS_SYSCONF = 33
SYS_GETTIMEOFDAY = 40 SYS_GETTIMEOFDAY = 40
SYS_CLOCK = 41 SYS_CLOCK = 41
SYS_NANOSLEEP = 42
SYS_MULTIMEDIA_INIT = 50 SYS_MULTIMEDIA_INIT = 50
SYS_MULTIMEDIA_SHUTDOWN = 51 SYS_MULTIMEDIA_SHUTDOWN = 51
SYS_VIDEO_INIT = 52 SYS_VIDEO_INIT = 52
...@@ -53,9 +54,11 @@ const ( ...@@ -53,9 +54,11 @@ const (
SYS_THREAD_EXIT = 81 SYS_THREAD_EXIT = 81
SYS_TLS_INIT = 82 SYS_TLS_INIT = 82
SYS_THREAD_NICE = 83 SYS_THREAD_NICE = 83
SYS_TLS_GET = 84
SYS_SRPC_GET_FD = 90 SYS_SRPC_GET_FD = 90
SYS_SEM_CREATE = 100 SYS_SEM_CREATE = 100
SYS_SEM_WAIT = 101 SYS_SEM_WAIT = 101
SYS_SEM_POST = 102 SYS_SEM_POST = 102
SYS_SEM_GET_VALUE = 103 SYS_SEM_GET_VALUE = 103
SYS_DYNCODE_COPY = 104
) )
...@@ -30,8 +30,8 @@ const ( ...@@ -30,8 +30,8 @@ const (
O_NONBLOCK = 0x800 O_NONBLOCK = 0x800
O_SYNC = 0x1000 O_SYNC = 0x1000
O_TRUNC = 0x200 O_TRUNC = 0x200
O_EXCL = 0x80
O_CLOEXEC = 0 O_CLOEXEC = 0
O_EXCL = 0
F_GETFD = 0x1 F_GETFD = 0x1
F_SETFD = 0x2 F_SETFD = 0x2
F_GETFL = 0x3 F_GETFL = 0x3
...@@ -80,20 +80,20 @@ type Time_t int32 ...@@ -80,20 +80,20 @@ type Time_t int32
type _Gid_t uint32 type _Gid_t uint32
type Stat_t struct { type Stat_t struct {
Dev int64 Dev int64
Ino uint32 Ino uint32
Mode uint32 Mode uint32
Nlink uint32 Nlink uint32
Uid uint32 Uid uint32
Gid uint32 Gid uint32
__padding int32 X__padding int32
Rdev int64 Rdev int64
Size int32 Size int32
Blksize int32 Blksize int32
Blocks int32 Blocks int32
Atime int32 Atime int32
Mtime int32 Mtime int32
Ctime int32 Ctime int32
} }
type Dirent struct { type Dirent struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment