libk  Check-in [c15c92895e]

Overview
Comment:arch: add script to generate linux syscall tables from generic headers; add arm.lin.64 (untested)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c15c92895e24047476f07616ee8a22e693ebee006e0cbb9d8fda81dc2ad1d9b8
User & Date: lachs0r on 2019-08-25 02:42:11
Other Links: manifest | tags
Context
2019-08-25
02:47
fix check for 128-bit int type check-in: 1fba7a324a user: lexi tags: trunk
02:42
arch: add script to generate linux syscall tables from generic headers; add arm.lin.64 (untested) check-in: c15c92895e user: lachs0r tags: trunk
01:47
add /arch readme file check-in: 03d58c0419 user: lexi tags: trunk
Changes

Added arch/arm.lin.64/error_table.h version [88f88edd37].































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#ifndef KIplatform_error
#define KIplatform_error

enum k_platform_error {

	k_platform_error_EPERM = 1,
	k_platform_error_ENOENT = 2,
	k_platform_error_ESRCH = 3,
	k_platform_error_EINTR = 4,
	k_platform_error_EIO = 5,
	k_platform_error_ENXIO = 6,
	k_platform_error_E2BIG = 7,
	k_platform_error_ENOEXEC = 8,
	k_platform_error_EBADF = 9,
	k_platform_error_ECHILD = 10,
	k_platform_error_EAGAIN = 11,
	k_platform_error_EWOULDBLOCK = 11,
	k_platform_error_ENOMEM = 12,
	k_platform_error_EACCES = 13,
	k_platform_error_EFAULT = 14,
	k_platform_error_ENOTBLK = 15,
	k_platform_error_EBUSY = 16,
	k_platform_error_EEXIST = 17,
	k_platform_error_EXDEV = 18,
	k_platform_error_ENODEV = 19,
	k_platform_error_ENOTDIR = 20,
	k_platform_error_EISDIR = 21,
	k_platform_error_EINVAL = 22,
	k_platform_error_ENFILE = 23,
	k_platform_error_EMFILE = 24,
	k_platform_error_ENOTTY = 25,
	k_platform_error_ETXTBSY = 26,
	k_platform_error_EFBIG = 27,
	k_platform_error_ENOSPC = 28,
	k_platform_error_ESPIPE = 29,
	k_platform_error_EROFS = 30,
	k_platform_error_EMLINK = 31,
	k_platform_error_EPIPE = 32,
	k_platform_error_EDOM = 33,
	k_platform_error_ERANGE = 34,
	k_platform_error_EDEADLK = 35,
	k_platform_error_EDEADLOCK = 35,
	k_platform_error_ENAMETOOLONG = 36,
	k_platform_error_ENOLCK = 37,
	k_platform_error_ENOSYS = 38,
	k_platform_error_ENOTEMPTY = 39,
	k_platform_error_ELOOP = 40,
	k_platform_error_ENOMSG = 42,
	k_platform_error_EIDRM = 43,
	k_platform_error_ECHRNG = 44,
	k_platform_error_EL2NSYNC = 45,
	k_platform_error_EL3HLT = 46,
	k_platform_error_EL3RST = 47,
	k_platform_error_ELNRNG = 48,
	k_platform_error_EUNATCH = 49,
	k_platform_error_ENOCSI = 50,
	k_platform_error_EL2HLT = 51,
	k_platform_error_EBADE = 52,
	k_platform_error_EBADR = 53,
	k_platform_error_EXFULL = 54,
	k_platform_error_ENOANO = 55,
	k_platform_error_EBADRQC = 56,
	k_platform_error_EBADSLT = 57,
	k_platform_error_EBFONT = 59,
	k_platform_error_ENOSTR = 60,
	k_platform_error_ENODATA = 61,
	k_platform_error_ETIME = 62,
	k_platform_error_ENOSR = 63,
	k_platform_error_ENONET = 64,
	k_platform_error_ENOPKG = 65,
	k_platform_error_EREMOTE = 66,
	k_platform_error_ENOLINK = 67,
	k_platform_error_EADV = 68,
	k_platform_error_ESRMNT = 69,
	k_platform_error_ECOMM = 70,
	k_platform_error_EPROTO = 71,
	k_platform_error_EMULTIHOP = 72,
	k_platform_error_EDOTDOT = 73,
	k_platform_error_EBADMSG = 74,
	k_platform_error_EOVERFLOW = 75,
	k_platform_error_ENOTUNIQ = 76,
	k_platform_error_EBADFD = 77,
	k_platform_error_EREMCHG = 78,
	k_platform_error_ELIBACC = 79,
	k_platform_error_ELIBBAD = 80,
	k_platform_error_ELIBSCN = 81,
	k_platform_error_ELIBMAX = 82,
	k_platform_error_ELIBEXEC = 83,
	k_platform_error_EILSEQ = 84,
	k_platform_error_ERESTART = 85,
	k_platform_error_ESTRPIPE = 86,
	k_platform_error_EUSERS = 87,
	k_platform_error_ENOTSOCK = 88,
	k_platform_error_EDESTADDRREQ = 89,
	k_platform_error_EMSGSIZE = 90,
	k_platform_error_EPROTOTYPE = 91,
	k_platform_error_ENOPROTOOPT = 92,
	k_platform_error_EPROTONOSUPPORT = 93,
	k_platform_error_ESOCKTNOSUPPORT = 94,
	k_platform_error_EOPNOTSUPP = 95,
	k_platform_error_EPFNOSUPPORT = 96,
	k_platform_error_EAFNOSUPPORT = 97,
	k_platform_error_EADDRINUSE = 98,
	k_platform_error_EADDRNOTAVAIL = 99,
	k_platform_error_ENETDOWN = 100,
	k_platform_error_ENETUNREACH = 101,
	k_platform_error_ENETRESET = 102,
	k_platform_error_ECONNABORTED = 103,
	k_platform_error_ECONNRESET = 104,
	k_platform_error_ENOBUFS = 105,
	k_platform_error_EISCONN = 106,
	k_platform_error_ENOTCONN = 107,
	k_platform_error_ESHUTDOWN = 108,
	k_platform_error_ETOOMANYREFS = 109,
	k_platform_error_ETIMEDOUT = 110,
	k_platform_error_ECONNREFUSED = 111,
	k_platform_error_EHOSTDOWN = 112,
	k_platform_error_EHOSTUNREACH = 113,
	k_platform_error_EALREADY = 114,
	k_platform_error_EINPROGRESS = 115,
	k_platform_error_ESTALE = 116,
	k_platform_error_EUCLEAN = 117,
	k_platform_error_ENOTNAM = 118,
	k_platform_error_ENAVAIL = 119,
	k_platform_error_EISNAM = 120,
	k_platform_error_EREMOTEIO = 121,
	k_platform_error_EDQUOT = 122,
	k_platform_error_ENOMEDIUM = 123,
	k_platform_error_EMEDIUMTYPE = 124,
	k_platform_error_ECANCELED = 125,
	k_platform_error_ENOKEY = 126,
	k_platform_error_EKEYEXPIRED = 127,
	k_platform_error_EKEYREVOKED = 128,
	k_platform_error_EKEYREJECTED = 129,
	k_platform_error_EOWNERDEAD = 130,
	k_platform_error_ENOTRECOVERABLE = 131,
	k_platform_error_ERFKILL = 132,
	k_platform_error_EHWPOISON = 133,

};

#endif

Added arch/arm.lin.64/error_table.tbl version [206e6b2419].











































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
EPERM 1
ENOENT 2
ESRCH 3
EINTR 4
EIO 5
ENXIO 6
E2BIG 7
ENOEXEC 8
EBADF 9
ECHILD 10
EAGAIN 11
EWOULDBLOCK 11
ENOMEM 12
EACCES 13
EFAULT 14
ENOTBLK 15
EBUSY 16
EEXIST 17
EXDEV 18
ENODEV 19
ENOTDIR 20
EISDIR 21
EINVAL 22
ENFILE 23
EMFILE 24
ENOTTY 25
ETXTBSY 26
EFBIG 27
ENOSPC 28
ESPIPE 29
EROFS 30
EMLINK 31
EPIPE 32
EDOM 33
ERANGE 34
EDEADLK 35
EDEADLOCK 35
ENAMETOOLONG 36
ENOLCK 37
ENOSYS 38
ENOTEMPTY 39
ELOOP 40
ENOMSG 42
EIDRM 43
ECHRNG 44
EL2NSYNC 45
EL3HLT 46
EL3RST 47
ELNRNG 48
EUNATCH 49
ENOCSI 50
EL2HLT 51
EBADE 52
EBADR 53
EXFULL 54
ENOANO 55
EBADRQC 56
EBADSLT 57
EBFONT 59
ENOSTR 60
ENODATA 61
ETIME 62
ENOSR 63
ENONET 64
ENOPKG 65
EREMOTE 66
ENOLINK 67
EADV 68
ESRMNT 69
ECOMM 70
EPROTO 71
EMULTIHOP 72
EDOTDOT 73
EBADMSG 74
EOVERFLOW 75
ENOTUNIQ 76
EBADFD 77
EREMCHG 78
ELIBACC 79
ELIBBAD 80
ELIBSCN 81
ELIBMAX 82
ELIBEXEC 83
EILSEQ 84
ERESTART 85
ESTRPIPE 86
EUSERS 87
ENOTSOCK 88
EDESTADDRREQ 89
EMSGSIZE 90
EPROTOTYPE 91
ENOPROTOOPT 92
EPROTONOSUPPORT 93
ESOCKTNOSUPPORT 94
EOPNOTSUPP 95
EPFNOSUPPORT 96
EAFNOSUPPORT 97
EADDRINUSE 98
EADDRNOTAVAIL 99
ENETDOWN 100
ENETUNREACH 101
ENETRESET 102
ECONNABORTED 103
ECONNRESET 104
ENOBUFS 105
EISCONN 106
ENOTCONN 107
ESHUTDOWN 108
ETOOMANYREFS 109
ETIMEDOUT 110
ECONNREFUSED 111
EHOSTDOWN 112
EHOSTUNREACH 113
EALREADY 114
EINPROGRESS 115
ESTALE 116
EUCLEAN 117
ENOTNAM 118
ENAVAIL 119
EISNAM 120
EREMOTEIO 121
EDQUOT 122
ENOMEDIUM 123
EMEDIUMTYPE 124
ECANCELED 125
ENOKEY 126
EKEYEXPIRED 127
EKEYREVOKED 128
EKEYREJECTED 129
EOWNERDEAD 130
ENOTRECOVERABLE 131
ERFKILL 132
EHWPOISON 133

Added arch/arm.lin.64/system_calls.h version [ec4dc4b50d].



































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#ifndef KIplatform_syscall
#define KIplatform_syscall

enum k_platform_syscall {

	k_platform_syscall_setup = 0,
	k_platform_syscall_destroy = 1,
	k_platform_syscall_submit = 2,
	k_platform_syscall_cancel = 3,
	k_platform_syscall_getevents = 4,
	k_platform_syscall_setxattr = 5,
	k_platform_syscall_lsetxattr = 6,
	k_platform_syscall_fsetxattr = 7,
	k_platform_syscall_getxattr = 8,
	k_platform_syscall_lgetxattr = 9,
	k_platform_syscall_fgetxattr = 10,
	k_platform_syscall_listxattr = 11,
	k_platform_syscall_llistxattr = 12,
	k_platform_syscall_flistxattr = 13,
	k_platform_syscall_removexattr = 14,
	k_platform_syscall_lremovexattr = 15,
	k_platform_syscall_fremovexattr = 16,
	k_platform_syscall_getcwd = 17,
	k_platform_syscall_dcookie = 18,
	k_platform_syscall_eventfd2 = 19,
	k_platform_syscall_create1 = 20,
	k_platform_syscall_ctl = 21,
	k_platform_syscall_pwait = 22,
	k_platform_syscall_dup = 23,
	k_platform_syscall_dup3 = 24,
	k_platform_syscall_fcntl = 25,
	k_platform_syscall_fcntl = 25,
	k_platform_syscall_init1 = 26,
	k_platform_syscall_watch = 27,
	k_platform_syscall_watch = 28,
	k_platform_syscall_ioctl = 29,
	k_platform_syscall_set = 30,
	k_platform_syscall_get = 31,
	k_platform_syscall_flock = 32,
	k_platform_syscall_mknodat = 33,
	k_platform_syscall_mkdirat = 34,
	k_platform_syscall_unlinkat = 35,
	k_platform_syscall_symlinkat = 36,
	k_platform_syscall_linkat = 37,
	k_platform_syscall_umount2 = 39,
	k_platform_syscall_mount = 40,
	k_platform_syscall_root = 41,
	k_platform_syscall_nfsservctl = 42,
	k_platform_syscall_statfs = 43,
	k_platform_syscall_statfs = 43,
	k_platform_syscall_fstatfs = 44,
	k_platform_syscall_fstatfs = 44,
	k_platform_syscall_truncate = 45,
	k_platform_syscall_truncate = 45,
	k_platform_syscall_ftruncate = 46,
	k_platform_syscall_ftruncate = 46,
	k_platform_syscall_fallocate = 47,
	k_platform_syscall_faccessat = 48,
	k_platform_syscall_chdir = 49,
	k_platform_syscall_fchdir = 50,
	k_platform_syscall_chroot = 51,
	k_platform_syscall_fchmod = 52,
	k_platform_syscall_fchmodat = 53,
	k_platform_syscall_fchownat = 54,
	k_platform_syscall_fchown = 55,
	k_platform_syscall_openat = 56,
	k_platform_syscall_close = 57,
	k_platform_syscall_vhangup = 58,
	k_platform_syscall_pipe2 = 59,
	k_platform_syscall_quotactl = 60,
	k_platform_syscall_getdents64 = 61,
	k_platform_syscall_lseek = 62,
	k_platform_syscall_lseek = 62,
	k_platform_syscall_read = 63,
	k_platform_syscall_write = 64,
	k_platform_syscall_readv = 65,
	k_platform_syscall_writev = 66,
	k_platform_syscall_pread64 = 67,
	k_platform_syscall_pwrite64 = 68,
	k_platform_syscall_preadv = 69,
	k_platform_syscall_pwritev = 70,
	k_platform_syscall_sendfile = 71,
	k_platform_syscall_sendfile = 71,
	k_platform_syscall_pselect6 = 72,
	k_platform_syscall_ppoll = 73,
	k_platform_syscall_signalfd4 = 74,
	k_platform_syscall_vmsplice = 75,
	k_platform_syscall_splice = 76,
	k_platform_syscall_tee = 77,
	k_platform_syscall_readlinkat = 78,
	k_platform_syscall_sync = 81,
	k_platform_syscall_fsync = 82,
	k_platform_syscall_fdatasync = 83,
	k_platform_syscall_range = 84,
	k_platform_syscall_create = 85,
	k_platform_syscall_settime = 86,
	k_platform_syscall_gettime = 87,
	k_platform_syscall_utimensat = 88,
	k_platform_syscall_acct = 89,
	k_platform_syscall_capget = 90,
	k_platform_syscall_capset = 91,
	k_platform_syscall_personality = 92,
	k_platform_syscall_exit = 93,
	k_platform_syscall_group = 94,
	k_platform_syscall_waitid = 95,
	k_platform_syscall_address = 96,
	k_platform_syscall_unshare = 97,
	k_platform_syscall_futex = 98,
	k_platform_syscall_list = 99,
	k_platform_syscall_list = 100,
	k_platform_syscall_nanosleep = 101,
	k_platform_syscall_getitimer = 102,
	k_platform_syscall_setitimer = 103,
	k_platform_syscall_load = 104,
	k_platform_syscall_module = 105,
	k_platform_syscall_module = 106,
	k_platform_syscall_create = 107,
	k_platform_syscall_gettime = 108,
	k_platform_syscall_getoverrun = 109,
	k_platform_syscall_settime = 110,
	k_platform_syscall_delete = 111,
	k_platform_syscall_settime = 112,
	k_platform_syscall_gettime = 113,
	k_platform_syscall_getres = 114,
	k_platform_syscall_nanosleep = 115,
	k_platform_syscall_syslog = 116,
	k_platform_syscall_ptrace = 117,
	k_platform_syscall_setparam = 118,
	k_platform_syscall_setscheduler = 119,
	k_platform_syscall_getscheduler = 120,
	k_platform_syscall_getparam = 121,
	k_platform_syscall_setaffinity = 122,
	k_platform_syscall_getaffinity = 123,
	k_platform_syscall_yield = 124,
	k_platform_syscall_max = 125,
	k_platform_syscall_min = 126,
	k_platform_syscall_interval = 127,
	k_platform_syscall_syscall = 128,
	k_platform_syscall_kill = 129,
	k_platform_syscall_tkill = 130,
	k_platform_syscall_tgkill = 131,
	k_platform_syscall_sigaltstack = 132,
	k_platform_syscall_sigsuspend = 133,
	k_platform_syscall_sigaction = 134,
	k_platform_syscall_sigprocmask = 135,
	k_platform_syscall_sigpending = 136,
	k_platform_syscall_sigtimedwait = 137,
	k_platform_syscall_sigqueueinfo = 138,
	k_platform_syscall_sigreturn = 139,
	k_platform_syscall_setpriority = 140,
	k_platform_syscall_getpriority = 141,
	k_platform_syscall_reboot = 142,
	k_platform_syscall_setregid = 143,
	k_platform_syscall_setgid = 144,
	k_platform_syscall_setreuid = 145,
	k_platform_syscall_setuid = 146,
	k_platform_syscall_setresuid = 147,
	k_platform_syscall_getresuid = 148,
	k_platform_syscall_setresgid = 149,
	k_platform_syscall_getresgid = 150,
	k_platform_syscall_setfsuid = 151,
	k_platform_syscall_setfsgid = 152,
	k_platform_syscall_times = 153,
	k_platform_syscall_setpgid = 154,
	k_platform_syscall_getpgid = 155,
	k_platform_syscall_getsid = 156,
	k_platform_syscall_setsid = 157,
	k_platform_syscall_getgroups = 158,
	k_platform_syscall_setgroups = 159,
	k_platform_syscall_uname = 160,
	k_platform_syscall_sethostname = 161,
	k_platform_syscall_setdomainname = 162,
	k_platform_syscall_getrusage = 165,
	k_platform_syscall_umask = 166,
	k_platform_syscall_prctl = 167,
	k_platform_syscall_getcpu = 168,
	k_platform_syscall_gettimeofday = 169,
	k_platform_syscall_settimeofday = 170,
	k_platform_syscall_adjtimex = 171,
	k_platform_syscall_getpid = 172,
	k_platform_syscall_getppid = 173,
	k_platform_syscall_getuid = 174,
	k_platform_syscall_geteuid = 175,
	k_platform_syscall_getgid = 176,
	k_platform_syscall_getegid = 177,
	k_platform_syscall_gettid = 178,
	k_platform_syscall_sysinfo = 179,
	k_platform_syscall_open = 180,
	k_platform_syscall_unlink = 181,
	k_platform_syscall_timedsend = 182,
	k_platform_syscall_timedreceive = 183,
	k_platform_syscall_notify = 184,
	k_platform_syscall_getsetattr = 185,
	k_platform_syscall_msgget = 186,
	k_platform_syscall_msgctl = 187,
	k_platform_syscall_msgrcv = 188,
	k_platform_syscall_msgsnd = 189,
	k_platform_syscall_semget = 190,
	k_platform_syscall_semctl = 191,
	k_platform_syscall_semtimedop = 192,
	k_platform_syscall_semop = 193,
	k_platform_syscall_shmget = 194,
	k_platform_syscall_shmctl = 195,
	k_platform_syscall_shmat = 196,
	k_platform_syscall_shmdt = 197,
	k_platform_syscall_socket = 198,
	k_platform_syscall_socketpair = 199,
	k_platform_syscall_bind = 200,
	k_platform_syscall_listen = 201,
	k_platform_syscall_accept = 202,
	k_platform_syscall_connect = 203,
	k_platform_syscall_getsockname = 204,
	k_platform_syscall_getpeername = 205,
	k_platform_syscall_sendto = 206,
	k_platform_syscall_recvfrom = 207,
	k_platform_syscall_setsockopt = 208,
	k_platform_syscall_getsockopt = 209,
	k_platform_syscall_shutdown = 210,
	k_platform_syscall_sendmsg = 211,
	k_platform_syscall_recvmsg = 212,
	k_platform_syscall_readahead = 213,
	k_platform_syscall_brk = 214,
	k_platform_syscall_munmap = 215,
	k_platform_syscall_mremap = 216,
	k_platform_syscall_key = 217,
	k_platform_syscall_key = 218,
	k_platform_syscall_keyctl = 219,
	k_platform_syscall_clone = 220,
	k_platform_syscall_execve = 221,
	k_platform_syscall_mmap = 222,
	k_platform_syscall_mmap = 222,
	k_platform_syscall_fadvise64 = 223,
	k_platform_syscall_fadvise64 = 223,
	k_platform_syscall_swapon = 224,
	k_platform_syscall_swapoff = 225,
	k_platform_syscall_mprotect = 226,
	k_platform_syscall_msync = 227,
	k_platform_syscall_mlock = 228,
	k_platform_syscall_munlock = 229,
	k_platform_syscall_mlockall = 230,
	k_platform_syscall_munlockall = 231,
	k_platform_syscall_mincore = 232,
	k_platform_syscall_madvise = 233,
	k_platform_syscall_pages = 234,
	k_platform_syscall_mbind = 235,
	k_platform_syscall_mempolicy = 236,
	k_platform_syscall_mempolicy = 237,
	k_platform_syscall_pages = 238,
	k_platform_syscall_pages = 239,
	k_platform_syscall_tgsigqueueinfo = 240,
	k_platform_syscall_open = 241,
	k_platform_syscall_accept4 = 242,
	k_platform_syscall_recvmmsg = 243,
	k_platform_syscall_syscall = 244,
	k_platform_syscall_wait4 = 260,
	k_platform_syscall_prlimit64 = 261,
	k_platform_syscall_init = 262,
	k_platform_syscall_mark = 263,
	k_platform_syscall_at = 264,
	k_platform_syscall_at = 265,
	k_platform_syscall_adjtime = 266,
	k_platform_syscall_syncfs = 267,
	k_platform_syscall_setns = 268,
	k_platform_syscall_sendmmsg = 269,
	k_platform_syscall_readv = 270,
	k_platform_syscall_writev = 271,
	k_platform_syscall_kcmp = 272,
	k_platform_syscall_module = 273,
	k_platform_syscall_setattr = 274,
	k_platform_syscall_getattr = 275,
	k_platform_syscall_renameat2 = 276,
	k_platform_syscall_seccomp = 277,
	k_platform_syscall_getrandom = 278,
	k_platform_syscall_create = 279,
	k_platform_syscall_bpf = 280,
	k_platform_syscall_execveat = 281,
	k_platform_syscall_userfaultfd = 282,
	k_platform_syscall_membarrier = 283,
	k_platform_syscall_mlock2 = 284,
	k_platform_syscall_range = 285,
	k_platform_syscall_preadv2 = 286,
	k_platform_syscall_pwritev2 = 287,
	k_platform_syscall_mprotect = 288,
	k_platform_syscall_alloc = 289,
	k_platform_syscall_free = 290,
	k_platform_syscall_statx = 291,
	k_platform_syscall_pgetevents = 292,
	k_platform_syscall_rseq = 293,
	k_platform_syscall_load = 294,
	k_platform_syscall_signal = 424,
	k_platform_syscall_setup = 425,
	k_platform_syscall_enter = 426,
	k_platform_syscall_register = 427,
	k_platform_syscall_tree = 428,
	k_platform_syscall_mount = 429,
	k_platform_syscall_fsopen = 430,
	k_platform_syscall_fsconfig = 431,
	k_platform_syscall_fsmount = 432,
	k_platform_syscall_fspick = 433,
	k_platform_syscall_syscalls = 434,

};

#endif

Added arch/arm.lin.64/system_calls.tbl version [982f97727a].















































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
0	common	setup
1	common	destroy
2	common	submit
3	common	cancel
4	common	getevents
5	common	setxattr
6	common	lsetxattr
7	common	fsetxattr
8	common	getxattr
9	common	lgetxattr
10	common	fgetxattr
11	common	listxattr
12	common	llistxattr
13	common	flistxattr
14	common	removexattr
15	common	lremovexattr
16	common	fremovexattr
17	common	getcwd
18	common	dcookie
19	common	eventfd2
20	common	create1
21	common	ctl
22	common	pwait
23	common	dup
24	common	dup3
25	common	fcntl
25	common	fcntl
26	common	init1
27	common	watch
28	common	watch
29	common	ioctl
30	common	set
31	common	get
32	common	flock
33	common	mknodat
34	common	mkdirat
35	common	unlinkat
36	common	symlinkat
37	common	linkat
39	common	umount2
40	common	mount
41	common	root
42	common	nfsservctl
43	common	statfs
43	common	statfs
44	common	fstatfs
44	common	fstatfs
45	common	truncate
45	common	truncate
46	common	ftruncate
46	common	ftruncate
47	common	fallocate
48	common	faccessat
49	common	chdir
50	common	fchdir
51	common	chroot
52	common	fchmod
53	common	fchmodat
54	common	fchownat
55	common	fchown
56	common	openat
57	common	close
58	common	vhangup
59	common	pipe2
60	common	quotactl
61	common	getdents64
62	common	lseek
62	common	lseek
63	common	read
64	common	write
65	common	readv
66	common	writev
67	common	pread64
68	common	pwrite64
69	common	preadv
70	common	pwritev
71	common	sendfile
71	common	sendfile
72	common	pselect6
73	common	ppoll
74	common	signalfd4
75	common	vmsplice
76	common	splice
77	common	tee
78	common	readlinkat
81	common	sync
82	common	fsync
83	common	fdatasync
84	common	range
85	common	create
86	common	settime
87	common	gettime
88	common	utimensat
89	common	acct
90	common	capget
91	common	capset
92	common	personality
93	common	exit
94	common	group
95	common	waitid
96	common	address
97	common	unshare
98	common	futex
99	common	list
100	common	list
101	common	nanosleep
102	common	getitimer
103	common	setitimer
104	common	load
105	common	module
106	common	module
107	common	create
108	common	gettime
109	common	getoverrun
110	common	settime
111	common	delete
112	common	settime
113	common	gettime
114	common	getres
115	common	nanosleep
116	common	syslog
117	common	ptrace
118	common	setparam
119	common	setscheduler
120	common	getscheduler
121	common	getparam
122	common	setaffinity
123	common	getaffinity
124	common	yield
125	common	max
126	common	min
127	common	interval
128	common	syscall
129	common	kill
130	common	tkill
131	common	tgkill
132	common	sigaltstack
133	common	sigsuspend
134	common	sigaction
135	common	sigprocmask
136	common	sigpending
137	common	sigtimedwait
138	common	sigqueueinfo
139	common	sigreturn
140	common	setpriority
141	common	getpriority
142	common	reboot
143	common	setregid
144	common	setgid
145	common	setreuid
146	common	setuid
147	common	setresuid
148	common	getresuid
149	common	setresgid
150	common	getresgid
151	common	setfsuid
152	common	setfsgid
153	common	times
154	common	setpgid
155	common	getpgid
156	common	getsid
157	common	setsid
158	common	getgroups
159	common	setgroups
160	common	uname
161	common	sethostname
162	common	setdomainname
165	common	getrusage
166	common	umask
167	common	prctl
168	common	getcpu
169	common	gettimeofday
170	common	settimeofday
171	common	adjtimex
172	common	getpid
173	common	getppid
174	common	getuid
175	common	geteuid
176	common	getgid
177	common	getegid
178	common	gettid
179	common	sysinfo
180	common	open
181	common	unlink
182	common	timedsend
183	common	timedreceive
184	common	notify
185	common	getsetattr
186	common	msgget
187	common	msgctl
188	common	msgrcv
189	common	msgsnd
190	common	semget
191	common	semctl
192	common	semtimedop
193	common	semop
194	common	shmget
195	common	shmctl
196	common	shmat
197	common	shmdt
198	common	socket
199	common	socketpair
200	common	bind
201	common	listen
202	common	accept
203	common	connect
204	common	getsockname
205	common	getpeername
206	common	sendto
207	common	recvfrom
208	common	setsockopt
209	common	getsockopt
210	common	shutdown
211	common	sendmsg
212	common	recvmsg
213	common	readahead
214	common	brk
215	common	munmap
216	common	mremap
217	common	key
218	common	key
219	common	keyctl
220	common	clone
221	common	execve
222	common	mmap
222	common	mmap
223	common	fadvise64
223	common	fadvise64
224	common	swapon
225	common	swapoff
226	common	mprotect
227	common	msync
228	common	mlock
229	common	munlock
230	common	mlockall
231	common	munlockall
232	common	mincore
233	common	madvise
234	common	pages
235	common	mbind
236	common	mempolicy
237	common	mempolicy
238	common	pages
239	common	pages
240	common	tgsigqueueinfo
241	common	open
242	common	accept4
243	common	recvmmsg
244	common	syscall
260	common	wait4
261	common	prlimit64
262	common	init
263	common	mark
264	common	at
265	common	at
266	common	adjtime
267	common	syncfs
268	common	setns
269	common	sendmmsg
270	common	readv
271	common	writev
272	common	kcmp
273	common	module
274	common	setattr
275	common	getattr
276	common	renameat2
277	common	seccomp
278	common	getrandom
279	common	create
280	common	bpf
281	common	execveat
282	common	userfaultfd
283	common	membarrier
284	common	mlock2
285	common	range
286	common	preadv2
287	common	pwritev2
288	common	mprotect
289	common	alloc
290	common	free
291	common	statx
292	common	pgetevents
293	common	rseq
294	common	load
424	common	signal
425	common	setup
426	common	enter
427	common	register
428	common	tree
429	common	mount
430	common	fsopen
431	common	fsconfig
432	common	fsmount
433	common	fspick
434	common	syscalls

Name change from arch/mktbl.errno.linux.sh to arch/mktbl.linux.errno.sh.

Added arch/mktbl.linux.syscall.sh version [736d8ba137].



































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
set -eu

OUTDIR=$1
ABI=$2

INC_DEF=/usr/src/linux
p_include="${LINUX_SRC:-$INC_DEF}"
p_uapi="$p_include/tools/include/uapi"

cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm-generic/unistd.h" | sort -nrk3 | awk -F' ' '{
if ($2 ~ "__NR") {
	ids[$2]=$3;
	sub("^.*_", "", $2);
	if ($3 ~ /^[0-9]+$/) val=$3;
	else val=ids[$3];
	print val "\tcommon\t" $2}}' | sort -n > "$OUTDIR/system_calls.tbl"

Modified arch/readme.md from [1fee89bb29] to [64fc8029a6].

6
7
8
9
10
11
12
13

## structure
each subdirectory should be named for a specific target tuple. the top level is reserved for development tools and files of relevance to more than one architecture; for instance, the standardized x86-64 SysV syscall ABI is kept at `/arch/x86.syscall.64.s`. these files should not be included directly from any files under the `/mod` directory; rather, they should be included from stub files in the appropriate target directory. this provides a consistent header selection mechanism.

## scripts
arch contains a number of shell scripts. unlike the shell scripts in /global, the shell scripts in /arch are not part of the build process; they are simply developer tools, usually for generating syscall tables for new architectures. the output of the scripts is written directly to the appropriate target directory; these files should be added to the source tree and committed.

- `mktbl.posix.sh <target> <ABI>`: generates the C headers for a particular target based on the system_calls.h and error_table.h files in its directory. the ABI parameter controls which syscalls are included; the ABI is the second column in the kernel system calls table.
- `mktbl.errno.linux.sh <target> <ABI>`: generates the errno table for a given architecture and ABI. requires the kernel source tree to be installed on the host system.








|
>
6
7
8
9
10
11
12
13
14
## structure
each subdirectory should be named for a specific target tuple. the top level is reserved for development tools and files of relevance to more than one architecture; for instance, the standardized x86-64 SysV syscall ABI is kept at `/arch/x86.syscall.64.s`. these files should not be included directly from any files under the `/mod` directory; rather, they should be included from stub files in the appropriate target directory. this provides a consistent header selection mechanism.

## scripts
arch contains a number of shell scripts. unlike the shell scripts in /global, the shell scripts in /arch are not part of the build process; they are simply developer tools, usually for generating syscall tables for new architectures. the output of the scripts is written directly to the appropriate target directory; these files should be added to the source tree and committed.

- `mktbl.posix.sh <target> <ABI>`: generates the C headers for a particular target based on the system_calls.h and error_table.h files in its directory. the ABI parameter controls which syscalls are included; the ABI is the second column in the kernel system calls table.
- `mktbl.linux.errno.sh <target> <ABI>`: generates the errno table for a given architecture and ABI. requires the kernel source tree to be installed on the host system.
- `mktbl.linux.syscall.sh <target> <ABI>`: generates the syscall table for a given architecture and ABI. requires the kernel source tree to be installed on the host system. note that some architectures like x86 have separate, architecture-specific tables. this script is not meant to be used with these architectures.