xref: /DragonOS/kernel/src/arch/riscv64/syscall/nr.rs (revision da152319797436368304cbc3f85a3b9ec049134b)
1 #![allow(dead_code)]
2 #![allow(non_upper_case_globals)]
3 pub const SYS_ACCEPT: usize = 202;
4 pub const SYS_ACCEPT4: usize = 242;
5 pub const SYS_ACCT: usize = 89;
6 pub const SYS_ADD_KEY: usize = 217;
7 pub const SYS_ADJTIMEX: usize = 171;
8 pub const SYS_ARCH_SPECIFIC_SYSCALL: usize = 244;
9 pub const SYS_BIND: usize = 200;
10 pub const SYS_BPF: usize = 280;
11 pub const SYS_BRK: usize = 214;
12 pub const SYS_CAPGET: usize = 90;
13 pub const SYS_CAPSET: usize = 91;
14 pub const SYS_CHDIR: usize = 49;
15 pub const SYS_CHROOT: usize = 51;
16 pub const SYS_CLOCK_ADJTIME: usize = 266;
17 pub const SYS_CLOCK_GETRES: usize = 114;
18 pub const SYS_CLOCK_GETTIME: usize = 113;
19 pub const SYS_CLOCK_NANOSLEEP: usize = 115;
20 pub const SYS_CLOCK_SETTIME: usize = 112;
21 pub const SYS_CLONE: usize = 220;
22 pub const SYS_CLONE3: usize = 435;
23 pub const SYS_CLOSE: usize = 57;
24 pub const SYS_CLOSE_RANGE: usize = 436;
25 pub const SYS_CONNECT: usize = 203;
26 pub const SYS_COPY_FILE_RANGE: usize = 285;
27 pub const SYS_DELETE_MODULE: usize = 106;
28 pub const SYS_DUP: usize = 23;
29 pub const SYS_DUP3: usize = 24;
30 pub const SYS_EPOLL_CREATE1: usize = 20;
31 pub const SYS_EPOLL_CTL: usize = 21;
32 pub const SYS_EPOLL_PWAIT: usize = 22;
33 pub const SYS_EPOLL_PWAIT2: usize = 441;
34 pub const SYS_EVENTFD2: usize = 19;
35 pub const SYS_EXECVE: usize = 221;
36 pub const SYS_EXECVEAT: usize = 281;
37 pub const SYS_EXIT: usize = 93;
38 pub const SYS_EXIT_GROUP: usize = 94;
39 pub const SYS_FACCESSAT: usize = 48;
40 pub const SYS_FACCESSAT2: usize = 439;
41 pub const SYS_FADVISE64: usize = 223;
42 pub const SYS_FALLOCATE: usize = 47;
43 pub const SYS_FANOTIFY_INIT: usize = 262;
44 pub const SYS_FANOTIFY_MARK: usize = 263;
45 pub const SYS_FCHDIR: usize = 50;
46 pub const SYS_FCHMOD: usize = 52;
47 pub const SYS_FCHMODAT: usize = 53;
48 pub const SYS_FCHOWN: usize = 55;
49 pub const SYS_FCHOWNAT: usize = 54;
50 pub const SYS_FCNTL: usize = 25;
51 pub const SYS_FDATASYNC: usize = 83;
52 pub const SYS_FGETXATTR: usize = 10;
53 pub const SYS_FINIT_MODULE: usize = 273;
54 pub const SYS_FLISTXATTR: usize = 13;
55 pub const SYS_FLOCK: usize = 32;
56 pub const SYS_FREMOVEXATTR: usize = 16;
57 pub const SYS_FSCONFIG: usize = 431;
58 pub const SYS_FSETXATTR: usize = 7;
59 pub const SYS_FSMOUNT: usize = 432;
60 pub const SYS_FSOPEN: usize = 430;
61 pub const SYS_FSPICK: usize = 433;
62 pub const SYS_FSTAT: usize = 80;
63 pub const SYS_FSTATFS: usize = 44;
64 pub const SYS_FSYNC: usize = 82;
65 pub const SYS_FTRUNCATE: usize = 46;
66 pub const SYS_FUTEX: usize = 98;
67 pub const SYS_GET_MEMPOLICY: usize = 236;
68 pub const SYS_GET_ROBUST_LIST: usize = 100;
69 pub const SYS_GETCPU: usize = 168;
70 pub const SYS_GETCWD: usize = 17;
71 pub const SYS_GETDENTS64: usize = 61;
72 pub const SYS_GETEGID: usize = 177;
73 pub const SYS_GETEUID: usize = 175;
74 pub const SYS_GETGID: usize = 176;
75 pub const SYS_GETGROUPS: usize = 158;
76 pub const SYS_GETITIMER: usize = 102;
77 pub const SYS_GETPEERNAME: usize = 205;
78 pub const SYS_GETPGID: usize = 155;
79 pub const SYS_GETPID: usize = 172;
80 pub const SYS_GETPPID: usize = 173;
81 pub const SYS_GETPRIORITY: usize = 141;
82 pub const SYS_GETRANDOM: usize = 278;
83 pub const SYS_GETRESGID: usize = 150;
84 pub const SYS_GETRESUID: usize = 148;
85 pub const SYS_GETRLIMIT: usize = 163;
86 pub const SYS_GETRUSAGE: usize = 165;
87 pub const SYS_GETSID: usize = 156;
88 pub const SYS_GETSOCKNAME: usize = 204;
89 pub const SYS_GETSOCKOPT: usize = 209;
90 pub const SYS_GETTID: usize = 178;
91 pub const SYS_GETTIMEOFDAY: usize = 169;
92 pub const SYS_GETUID: usize = 174;
93 pub const SYS_GETXATTR: usize = 8;
94 pub const SYS_INIT_MODULE: usize = 105;
95 pub const SYS_INOTIFY_ADD_WATCH: usize = 27;
96 pub const SYS_INOTIFY_INIT1: usize = 26;
97 pub const SYS_INOTIFY_RM_WATCH: usize = 28;
98 pub const SYS_IO_CANCEL: usize = 3;
99 pub const SYS_IO_DESTROY: usize = 1;
100 pub const SYS_IO_GETEVENTS: usize = 4;
101 pub const SYS_IO_PGETEVENTS: usize = 292;
102 pub const SYS_IO_SETUP: usize = 0;
103 pub const SYS_IO_SUBMIT: usize = 2;
104 pub const SYS_IO_URING_ENTER: usize = 426;
105 pub const SYS_IO_URING_REGISTER: usize = 427;
106 pub const SYS_IO_URING_SETUP: usize = 425;
107 pub const SYS_IOCTL: usize = 29;
108 pub const SYS_IOPRIO_GET: usize = 31;
109 pub const SYS_IOPRIO_SET: usize = 30;
110 pub const SYS_KCMP: usize = 272;
111 pub const SYS_KEXEC_FILE_LOAD: usize = 294;
112 pub const SYS_KEXEC_LOAD: usize = 104;
113 pub const SYS_KEYCTL: usize = 219;
114 pub const SYS_KILL: usize = 129;
115 pub const SYS_LGETXATTR: usize = 9;
116 pub const SYS_LINKAT: usize = 37;
117 pub const SYS_LISTEN: usize = 201;
118 pub const SYS_LISTXATTR: usize = 11;
119 pub const SYS_LLISTXATTR: usize = 12;
120 pub const SYS_LOOKUP_DCOOKIE: usize = 18;
121 pub const SYS_LREMOVEXATTR: usize = 15;
122 pub const SYS_LSEEK: usize = 62;
123 pub const SYS_LSETXATTR: usize = 6;
124 pub const SYS_MADVISE: usize = 233;
125 pub const SYS_MBIND: usize = 235;
126 pub const SYS_MEMBARRIER: usize = 283;
127 pub const SYS_MEMFD_CREATE: usize = 279;
128 pub const SYS_MIGRATE_PAGES: usize = 238;
129 pub const SYS_MINCORE: usize = 232;
130 pub const SYS_MKDIRAT: usize = 34;
131 pub const SYS_MKNODAT: usize = 33;
132 pub const SYS_MLOCK: usize = 228;
133 pub const SYS_MLOCK2: usize = 284;
134 pub const SYS_MLOCKALL: usize = 230;
135 pub const SYS_MMAP: usize = 222;
136 pub const SYS_MOUNT: usize = 40;
137 pub const SYS_MOUNT_SETATTR: usize = 442;
138 pub const SYS_MOVE_MOUNT: usize = 429;
139 pub const SYS_MOVE_PAGES: usize = 239;
140 pub const SYS_MPROTECT: usize = 226;
141 pub const SYS_MQ_GETSETATTR: usize = 185;
142 pub const SYS_MQ_NOTIFY: usize = 184;
143 pub const SYS_MQ_OPEN: usize = 180;
144 pub const SYS_MQ_TIMEDRECEIVE: usize = 183;
145 pub const SYS_MQ_TIMEDSEND: usize = 182;
146 pub const SYS_MQ_UNLINK: usize = 181;
147 pub const SYS_MREMAP: usize = 216;
148 pub const SYS_MSGCTL: usize = 187;
149 pub const SYS_MSGGET: usize = 186;
150 pub const SYS_MSGRCV: usize = 188;
151 pub const SYS_MSGSND: usize = 189;
152 pub const SYS_MSYNC: usize = 227;
153 pub const SYS_MUNLOCK: usize = 229;
154 pub const SYS_MUNLOCKALL: usize = 231;
155 pub const SYS_MUNMAP: usize = 215;
156 pub const SYS_NAME_TO_HANDLE_AT: usize = 264;
157 pub const SYS_NANOSLEEP: usize = 101;
158 pub const SYS_NEWFSTATAT: usize = 79;
159 pub const SYS_NFSSERVCTL: usize = 42;
160 pub const SYS_OPEN_BY_HANDLE_AT: usize = 265;
161 pub const SYS_OPEN_TREE: usize = 428;
162 pub const SYS_OPENAT: usize = 56;
163 pub const SYS_OPENAT2: usize = 437;
164 pub const SYS_PERF_EVENT_OPEN: usize = 241;
165 pub const SYS_PERSONALITY: usize = 92;
166 pub const SYS_PIDFD_GETFD: usize = 438;
167 pub const SYS_PIDFD_OPEN: usize = 434;
168 pub const SYS_PIDFD_SEND_SIGNAL: usize = 424;
169 pub const SYS_PIPE2: usize = 59;
170 pub const SYS_PIVOT_ROOT: usize = 41;
171 pub const SYS_PKEY_ALLOC: usize = 289;
172 pub const SYS_PKEY_FREE: usize = 290;
173 pub const SYS_PKEY_MPROTECT: usize = 288;
174 pub const SYS_PPOLL: usize = 73;
175 pub const SYS_PRCTL: usize = 167;
176 pub const SYS_PREAD64: usize = 67;
177 pub const SYS_PREADV: usize = 69;
178 pub const SYS_PREADV2: usize = 286;
179 pub const SYS_PRLIMIT64: usize = 261;
180 pub const SYS_PROCESS_MADVISE: usize = 440;
181 pub const SYS_PROCESS_VM_READV: usize = 270;
182 pub const SYS_PROCESS_VM_WRITEV: usize = 271;
183 pub const SYS_PSELECT6: usize = 72;
184 pub const SYS_PTRACE: usize = 117;
185 pub const SYS_PWRITE64: usize = 68;
186 pub const SYS_PWRITEV: usize = 70;
187 pub const SYS_PWRITEV2: usize = 287;
188 pub const SYS_QUOTACTL: usize = 60;
189 pub const SYS_READ: usize = 63;
190 pub const SYS_READAHEAD: usize = 213;
191 pub const SYS_READLINKAT: usize = 78;
192 pub const SYS_READV: usize = 65;
193 pub const SYS_REBOOT: usize = 142;
194 pub const SYS_RECVFROM: usize = 207;
195 pub const SYS_RECVMMSG: usize = 243;
196 pub const SYS_RECVMSG: usize = 212;
197 pub const SYS_REMAP_FILE_PAGES: usize = 234;
198 pub const SYS_REMOVEXATTR: usize = 14;
199 pub const SYS_RENAMEAT2: usize = 276;
200 pub const SYS_REQUEST_KEY: usize = 218;
201 pub const SYS_RESTART_SYSCALL: usize = 128;
202 pub const SYS_RISCV_FLUSH_ICACHE: usize = 259;
203 pub const SYS_RSEQ: usize = 293;
204 pub const SYS_RT_SIGACTION: usize = 134;
205 pub const SYS_RT_SIGPENDING: usize = 136;
206 pub const SYS_RT_SIGPROCMASK: usize = 135;
207 pub const SYS_RT_SIGQUEUEINFO: usize = 138;
208 pub const SYS_RT_SIGRETURN: usize = 139;
209 pub const SYS_RT_SIGSUSPEND: usize = 133;
210 pub const SYS_RT_SIGTIMEDWAIT: usize = 137;
211 pub const SYS_RT_TGSIGQUEUEINFO: usize = 240;
212 pub const SYS_SCHED_GET_PRIORITY_MAX: usize = 125;
213 pub const SYS_SCHED_GET_PRIORITY_MIN: usize = 126;
214 pub const SYS_SCHED_GETAFFINITY: usize = 123;
215 pub const SYS_SCHED_GETATTR: usize = 275;
216 pub const SYS_SCHED_GETPARAM: usize = 121;
217 pub const SYS_SCHED_GETSCHEDULER: usize = 120;
218 pub const SYS_SCHED_RR_GET_INTERVAL: usize = 127;
219 pub const SYS_SCHED_SETAFFINITY: usize = 122;
220 pub const SYS_SCHED_SETATTR: usize = 274;
221 pub const SYS_SCHED_SETPARAM: usize = 118;
222 pub const SYS_SCHED_SETSCHEDULER: usize = 119;
223 pub const SYS_SCHED_YIELD: usize = 124;
224 pub const SYS_SECCOMP: usize = 277;
225 pub const SYS_SEMCTL: usize = 191;
226 pub const SYS_SEMGET: usize = 190;
227 pub const SYS_SEMOP: usize = 193;
228 pub const SYS_SEMTIMEDOP: usize = 192;
229 pub const SYS_SENDFILE: usize = 71;
230 pub const SYS_SENDMMSG: usize = 269;
231 pub const SYS_SENDMSG: usize = 211;
232 pub const SYS_SENDTO: usize = 206;
233 pub const SYS_SET_MEMPOLICY: usize = 237;
234 pub const SYS_SET_ROBUST_LIST: usize = 99;
235 pub const SYS_SET_TID_ADDRESS: usize = 96;
236 pub const SYS_SETDOMAINNAME: usize = 162;
237 pub const SYS_SETFSGID: usize = 152;
238 pub const SYS_SETFSUID: usize = 151;
239 pub const SYS_SETGID: usize = 144;
240 pub const SYS_SETGROUPS: usize = 159;
241 pub const SYS_SETHOSTNAME: usize = 161;
242 pub const SYS_SETITIMER: usize = 103;
243 pub const SYS_SETNS: usize = 268;
244 pub const SYS_SETPGID: usize = 154;
245 pub const SYS_SETPRIORITY: usize = 140;
246 pub const SYS_SETREGID: usize = 143;
247 pub const SYS_SETRESGID: usize = 149;
248 pub const SYS_SETRESUID: usize = 147;
249 pub const SYS_SETREUID: usize = 145;
250 pub const SYS_SETRLIMIT: usize = 164;
251 pub const SYS_SETSID: usize = 157;
252 pub const SYS_SETSOCKOPT: usize = 208;
253 pub const SYS_SETTIMEOFDAY: usize = 170;
254 pub const SYS_SETUID: usize = 146;
255 pub const SYS_SETXATTR: usize = 5;
256 pub const SYS_SHMAT: usize = 196;
257 pub const SYS_SHMCTL: usize = 195;
258 pub const SYS_SHMDT: usize = 197;
259 pub const SYS_SHMGET: usize = 194;
260 pub const SYS_SHUTDOWN: usize = 210;
261 pub const SYS_SIGALTSTACK: usize = 132;
262 pub const SYS_SIGNALFD4: usize = 74;
263 pub const SYS_SOCKET: usize = 198;
264 pub const SYS_SOCKETPAIR: usize = 199;
265 pub const SYS_SPLICE: usize = 76;
266 pub const SYS_STATFS: usize = 43;
267 pub const SYS_STATX: usize = 291;
268 pub const SYS_SWAPOFF: usize = 225;
269 pub const SYS_SWAPON: usize = 224;
270 pub const SYS_SYMLINKAT: usize = 36;
271 pub const SYS_SYNC: usize = 81;
272 pub const SYS_SYNC_FILE_RANGE: usize = 84;
273 pub const SYS_SYNCFS: usize = 267;
274 pub const SYS_SYSCALLS: usize = 443;
275 pub const SYS_SYSINFO: usize = 179;
276 pub const SYS_SYSLOG: usize = 116;
277 pub const SYS_TEE: usize = 77;
278 pub const SYS_TGKILL: usize = 131;
279 pub const SYS_TIMER_CREATE: usize = 107;
280 pub const SYS_TIMER_DELETE: usize = 111;
281 pub const SYS_TIMER_GETOVERRUN: usize = 109;
282 pub const SYS_TIMER_GETTIME: usize = 108;
283 pub const SYS_TIMER_SETTIME: usize = 110;
284 pub const SYS_TIMERFD_CREATE: usize = 85;
285 pub const SYS_TIMERFD_GETTIME: usize = 87;
286 pub const SYS_TIMERFD_SETTIME: usize = 86;
287 pub const SYS_TIMES: usize = 153;
288 pub const SYS_TKILL: usize = 130;
289 pub const SYS_TRUNCATE: usize = 45;
290 pub const SYS_UMASK: usize = 166;
291 pub const SYS_UMOUNT2: usize = 39;
292 pub const SYS_UNAME: usize = 160;
293 pub const SYS_UNLINKAT: usize = 35;
294 pub const SYS_UNSHARE: usize = 97;
295 pub const SYS_USERFAULTFD: usize = 282;
296 pub const SYS_UTIMENSAT: usize = 88;
297 pub const SYS_VHANGUP: usize = 58;
298 pub const SYS_VMSPLICE: usize = 75;
299 pub const SYS_WAIT4: usize = 260;
300 pub const SYS_WAITID: usize = 95;
301 pub const SYS_WRITE: usize = 64;
302 pub const SYS_WRITEV: usize = 66;
303 
304 // ===以下是为了代码一致性,才定义的调用号===
305 
306 pub const SYS_GETDENTS: usize = SYS_GETDENTS64;
307