forked from jborza/emuriscv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux_syscalls.h
316 lines (316 loc) · 9.22 KB
/
linux_syscalls.h
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
306
307
308
309
310
311
312
313
314
315
316
SYSCALL(0, compat_sys_io_setup)
SYSCALL(1, sys_io_destroy)
SYSCALL(2, compat_sys_io_submit)
SYSCALL(3, sys_io_cancel)
SYSCALL(4, sys_io_getevents)
SYSCALL(5, sys_setxattr)
SYSCALL(6, sys_lsetxattr)
SYSCALL(7, sys_fsetxattr)
SYSCALL(8, sys_getxattr)
SYSCALL(9, sys_lgetxattr)
SYSCALL(10, sys_fgetxattr)
SYSCALL(11, sys_listxattr)
SYSCALL(12, sys_llistxattr)
SYSCALL(13, sys_flistxattr)
SYSCALL(14, sys_removexattr)
SYSCALL(15, sys_lremovexattr)
SYSCALL(16, sys_fremovexattr)
SYSCALL(17, sys_getcwd)
SYSCALL(18, compat_sys_lookup_dcookie)
SYSCALL(19, sys_eventfd2)
SYSCALL(20, sys_epoll_create1)
SYSCALL(21, sys_epoll_ctl)
SYSCALL(22, compat_sys_epoll_pwait)
SYSCALL(23, sys_dup)
SYSCALL(24, sys_dup3)
SYSCALL(25, compat_sys_fcntl64)
SYSCALL(26, sys_inotify_init1)
SYSCALL(27, sys_inotify_add_watch)
SYSCALL(28, sys_inotify_rm_watch)
SYSCALL(29, compat_sys_ioctl)
SYSCALL(30, sys_ioprio_set)
SYSCALL(31, sys_ioprio_get)
SYSCALL(32, sys_flock)
SYSCALL(33, sys_mknodat)
SYSCALL(34, sys_mkdirat)
SYSCALL(35, sys_unlinkat)
SYSCALL(36, sys_symlinkat)
SYSCALL(37, sys_linkat)
SYSCALL(38, sys_renameat)
SYSCALL(39, sys_umount)
SYSCALL(40, sys_mount)
SYSCALL(41, sys_pivot_root)
SYSCALL(42, sys_ni_syscall)
SYSCALL(43, compat_sys_statfs64)
SYSCALL(44, compat_sys_fstatfs64)
SYSCALL(45, compat_sys_truncate64)
SYSCALL(46, compat_sys_ftruncate64)
SYSCALL(47, compat_sys_fallocate)
SYSCALL(48, sys_faccessat)
SYSCALL(49, sys_chdir)
SYSCALL(50, sys_fchdir)
SYSCALL(51, sys_chroot)
SYSCALL(52, sys_fchmod)
SYSCALL(53, sys_fchmodat)
SYSCALL(54, sys_fchownat)
SYSCALL(55, sys_fchown)
SYSCALL(56, sys_openat)
SYSCALL(57, sys_close)
SYSCALL(58, sys_vhangup)
SYSCALL(59, sys_pipe2)
SYSCALL(60, sys_quotactl)
SYSCALL(61, sys_getdents64)
SYSCALL(62, sys_lseek)
SYSCALL(63, sys_read)
SYSCALL(64, sys_write)
SYSCALL(65, sys_readv)
SYSCALL(66, sys_writev)
SYSCALL(67, compat_sys_pread64)
SYSCALL(68, compat_sys_pwrite64)
SYSCALL(69, compat_sys_preadv)
SYSCALL(70, compat_sys_pwritev)
SYSCALL(71, sys_sendfile64)
SYSCALL(72, compat_sys_pselect6_time32)
SYSCALL(73, compat_sys_ppoll_time32)
SYSCALL(74, compat_sys_signalfd4)
SYSCALL(75, sys_vmsplice)
SYSCALL(76, sys_splice)
SYSCALL(77, sys_tee)
SYSCALL(78, sys_readlinkat)
SYSCALL(79, sys_newfstatat)
SYSCALL(80, sys_newfstat)
SYSCALL(81, sys_sync)
SYSCALL(82, sys_fsync)
SYSCALL(83, sys_fdatasync)
SYSCALL(84, compat_sys_sync_file_range)
SYSCALL(85, sys_timerfd_create)
SYSCALL(86, sys_timerfd_settime)
SYSCALL(87, sys_timerfd_gettime)
SYSCALL(88, sys_utimensat)
SYSCALL(89, sys_acct)
SYSCALL(90, sys_capget)
SYSCALL(91, sys_capset)
SYSCALL(92, sys_personality)
SYSCALL(93, sys_exit)
SYSCALL(94, sys_exit_group)
SYSCALL(95, compat_sys_waitid)
SYSCALL(96, sys_set_tid_address)
SYSCALL(97, sys_unshare)
SYSCALL(98, sys_futex)
SYSCALL(99, compat_sys_set_robust_list)
SYSCALL(100, compat_sys_get_robust_list)
SYSCALL(101, sys_nanosleep)
SYSCALL(102, compat_sys_getitimer)
SYSCALL(103, compat_sys_setitimer)
SYSCALL(104, compat_sys_kexec_load)
SYSCALL(105, sys_init_module)
SYSCALL(106, sys_delete_module)
SYSCALL(107, compat_sys_timer_create)
SYSCALL(108, sys_timer_gettime)
SYSCALL(109, sys_timer_getoverrun)
SYSCALL(110, sys_timer_settime)
SYSCALL(111, sys_timer_delete)
SYSCALL(112, sys_clock_settime)
SYSCALL(113, sys_clock_gettime)
SYSCALL(114, sys_clock_getres)
SYSCALL(115, sys_clock_nanosleep)
SYSCALL(116, sys_syslog)
SYSCALL(117, sys_ptrace)
SYSCALL(118, sys_sched_setparam)
SYSCALL(119, sys_sched_setscheduler)
SYSCALL(120, sys_sched_getscheduler)
SYSCALL(121, sys_sched_getparam)
SYSCALL(122, compat_sys_sched_setaffinity)
SYSCALL(123, compat_sys_sched_getaffinity)
SYSCALL(124, sys_sched_yield)
SYSCALL(125, sys_sched_get_priority_max)
SYSCALL(126, sys_sched_get_priority_min)
SYSCALL(127, sys_sched_rr_get_interval)
SYSCALL(128, sys_restart_syscall)
SYSCALL(129, sys_kill)
SYSCALL(130, sys_tkill)
SYSCALL(131, sys_tgkill)
SYSCALL(132, compat_sys_sigaltstack)
SYSCALL(133, compat_sys_rt_sigsuspend)
SYSCALL(134, compat_sys_rt_sigaction)
SYSCALL(135, compat_sys_rt_sigprocmask)
SYSCALL(136, compat_sys_rt_sigpending)
SYSCALL(137, compat_sys_rt_sigtimedwait_time32)
SYSCALL(138, compat_sys_rt_sigqueueinfo)
SYSCALL(139, compat_sys_rt_sigreturn)
SYSCALL(140, sys_setpriority)
SYSCALL(141, sys_getpriority)
SYSCALL(142, sys_reboot)
SYSCALL(143, sys_setregid)
SYSCALL(144, sys_setgid)
SYSCALL(145, sys_setreuid)
SYSCALL(146, sys_setuid)
SYSCALL(147, sys_setresuid)
SYSCALL(148, sys_getresuid)
SYSCALL(149, sys_setresgid)
SYSCALL(150, sys_getresgid)
SYSCALL(151, sys_setfsuid)
SYSCALL(152, sys_setfsgid)
SYSCALL(153, compat_sys_times)
SYSCALL(154, sys_setpgid)
SYSCALL(155, sys_getpgid)
SYSCALL(156, sys_getsid)
SYSCALL(157, sys_setsid)
SYSCALL(158, sys_getgroups)
SYSCALL(159, sys_setgroups)
SYSCALL(160, sys_newuname)
SYSCALL(161, sys_sethostname)
SYSCALL(162, sys_setdomainname)
SYSCALL(163, compat_sys_getrlimit)
SYSCALL(164, compat_sys_setrlimit)
SYSCALL(165, compat_sys_getrusage)
SYSCALL(166, sys_umask)
SYSCALL(167, sys_prctl)
SYSCALL(168, sys_getcpu)
SYSCALL(169, compat_sys_gettimeofday)
SYSCALL(170, compat_sys_settimeofday)
SYSCALL(171, sys_adjtimex)
SYSCALL(172, sys_getpid)
SYSCALL(173, sys_getppid)
SYSCALL(174, sys_getuid)
SYSCALL(175, sys_geteuid)
SYSCALL(176, sys_getgid)
SYSCALL(177, sys_getegid)
SYSCALL(178, sys_gettid)
SYSCALL(179, compat_sys_sysinfo)
SYSCALL(180, compat_sys_mq_open)
SYSCALL(181, sys_mq_unlink)
SYSCALL(182, sys_mq_timedsend)
SYSCALL(183, sys_mq_timedreceive)
SYSCALL(184, compat_sys_mq_notify)
SYSCALL(185, compat_sys_mq_getsetattr)
SYSCALL(186, sys_msgget)
SYSCALL(187, compat_sys_msgctl)
SYSCALL(188, compat_sys_msgrcv)
SYSCALL(189, compat_sys_msgsnd)
SYSCALL(190, sys_semget)
SYSCALL(191, compat_sys_semctl)
SYSCALL(192, sys_semtimedop)
SYSCALL(193, sys_semop)
SYSCALL(194, sys_shmget)
SYSCALL(195, compat_sys_shmctl)
SYSCALL(196, compat_sys_shmat)
SYSCALL(197, sys_shmdt)
SYSCALL(198, sys_socket)
SYSCALL(199, sys_socketpair)
SYSCALL(200, sys_bind)
SYSCALL(201, sys_listen)
SYSCALL(202, sys_accept)
SYSCALL(203, sys_connect)
SYSCALL(204, sys_getsockname)
SYSCALL(205, sys_getpeername)
SYSCALL(206, sys_sendto)
SYSCALL(207, compat_sys_recvfrom)
SYSCALL(208, sys_setsockopt)
SYSCALL(209, sys_getsockopt)
SYSCALL(210, sys_shutdown)
SYSCALL(211, compat_sys_sendmsg)
SYSCALL(212, compat_sys_recvmsg)
SYSCALL(213, compat_sys_readahead)
SYSCALL(214, sys_brk)
SYSCALL(215, sys_munmap)
SYSCALL(216, sys_mremap)
SYSCALL(217, sys_add_key)
SYSCALL(218, sys_request_key)
SYSCALL(219, compat_sys_keyctl)
SYSCALL(220, sys_clone)
SYSCALL(221, compat_sys_execve)
SYSCALL(222, sys_mmap)
SYSCALL(223, compat_sys_fadvise64_64)
SYSCALL(224, sys_swapon)
SYSCALL(225, sys_swapoff)
SYSCALL(226, sys_mprotect)
SYSCALL(227, sys_msync)
SYSCALL(228, sys_mlock)
SYSCALL(229, sys_munlock)
SYSCALL(230, sys_mlockall)
SYSCALL(231, sys_munlockall)
SYSCALL(232, sys_mincore)
SYSCALL(233, sys_madvise)
SYSCALL(234, sys_remap_file_pages)
SYSCALL(235, compat_sys_mbind)
SYSCALL(236, compat_sys_get_mempolicy)
SYSCALL(237, compat_sys_set_mempolicy)
SYSCALL(238, compat_sys_migrate_pages)
SYSCALL(239, compat_sys_move_pages)
SYSCALL(240, compat_sys_rt_tgsigqueueinfo)
SYSCALL(241, sys_perf_event_open)
SYSCALL(242, sys_accept4)
SYSCALL(243, compat_sys_recvmmsg_time32)
SYSCALL(260, compat_sys_wait4)
SYSCALL(261, sys_prlimit64)
SYSCALL(262, sys_fanotify_init)
SYSCALL(263, sys_fanotify_mark)
SYSCALL(264, sys_name_to_handle_at)
SYSCALL(265, sys_open_by_handle_at)
SYSCALL(266, sys_clock_adjtime)
SYSCALL(267, sys_syncfs)
SYSCALL(268, sys_setns)
SYSCALL(269, compat_sys_sendmmsg)
SYSCALL(270, sys_process_vm_readv)
SYSCALL(271, sys_process_vm_writev)
SYSCALL(272, sys_kcmp)
SYSCALL(273, sys_finit_module)
SYSCALL(274, sys_sched_setattr)
SYSCALL(275, sys_sched_getattr)
SYSCALL(276, sys_renameat2)
SYSCALL(277, sys_seccomp)
SYSCALL(278, sys_getrandom)
SYSCALL(279, sys_memfd_create)
SYSCALL(280, sys_bpf)
SYSCALL(281, compat_sys_execveat)
SYSCALL(282, sys_userfaultfd)
SYSCALL(283, sys_membarrier)
SYSCALL(284, sys_mlock2)
SYSCALL(285, sys_copy_file_range)
SYSCALL(286, compat_sys_preadv2)
SYSCALL(287, compat_sys_pwritev2)
SYSCALL(288, sys_pkey_mprotect)
SYSCALL(289, sys_pkey_alloc)
SYSCALL(290, sys_pkey_free)
SYSCALL(291, sys_statx)
SYSCALL(292, compat_sys_io_pgetevents)
SYSCALL(293, sys_rseq)
SYSCALL(294, sys_kexec_file_load)
SYSCALL(403, sys_clock_gettime)
SYSCALL(404, sys_clock_settime)
SYSCALL(405, sys_clock_adjtime)
SYSCALL(406, sys_clock_getres)
SYSCALL(407, sys_clock_nanosleep)
SYSCALL(408, sys_timer_gettime)
SYSCALL(409, sys_timer_settime)
SYSCALL(410, sys_timerfd_gettime)
SYSCALL(411, sys_timerfd_settime)
SYSCALL(412, sys_utimensat)
SYSCALL(413, compat_sys_pselect6_time64)
SYSCALL(414, compat_sys_ppoll_time64)
SYSCALL(416, sys_io_pgetevents)
SYSCALL(417, compat_sys_recvmmsg_time64)
SYSCALL(418, sys_mq_timedsend)
SYSCALL(419, sys_mq_timedreceive)
SYSCALL(420, sys_semtimedop)
SYSCALL(421, compat_sys_rt_sigtimedwait_time64)
SYSCALL(422, sys_futex)
SYSCALL(423, sys_sched_rr_get_interval)
SYSCALL(424, sys_pidfd_send_signal)
SYSCALL(425, sys_io_uring_setup)
SYSCALL(426, sys_io_uring_enter)
SYSCALL(427, sys_io_uring_register)
SYSCALL(428, sys_open_tree)
SYSCALL(429, sys_move_mount)
SYSCALL(430, sys_fsopen)
SYSCALL(431, sys_fsconfig)
SYSCALL(432, sys_fsmount)
SYSCALL(433, sys_fspick)
SYSCALL(434, sys_pidfd_open)
SYSCALL(435, sys_clone3)
SYSCALL(436, sys_close_range)
SYSCALL(437, sys_openat2)
SYSCALL(438, sys_pidfd_getfd)
SYSCALL(439, sys_faccessat2)
SYSCALL(440, sys_process_madvise)