devela/sys/os/linux/consts/syscall/
x86_64.rs

1// devela::sys::os::linux::consts::syscall::x86_64
2//
3//!
4//
5// - https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/
6
7/// Linux `sys/syscall.h` constants for `x86_64`.
8#[allow(non_camel_case_types)]
9pub struct LINUX_SYS_X86_64;
10
11#[allow(missing_docs)]
12impl LINUX_SYS_X86_64 {
13    pub const ACCEPT4: isize = 288;
14    pub const ACCEPT: isize = 43;
15    pub const ACCESS: isize = 21;
16    pub const ACCT: isize = 163;
17    pub const ADD_KEY: isize = 248;
18    pub const ADJTIMEX: isize = 159;
19    pub const AFS_SYSCALL: isize = 183;
20    pub const ALARM: isize = 37;
21    pub const ARCH_PRCTL: isize = 158;
22    pub const BIND: isize = 49;
23    pub const BPF: isize = 321;
24    pub const BRK: isize = 12;
25    pub const CAPGET: isize = 125;
26    pub const CAPSET: isize = 126;
27    pub const CHDIR: isize = 80;
28    pub const CHMOD: isize = 90;
29    pub const CHOWN: isize = 92;
30    pub const CHROOT: isize = 161;
31    pub const CLOCK_ADJTIME: isize = 305;
32    pub const CLOCK_GETRES: isize = 229;
33    pub const CLOCK_GETTIME: isize = 228;
34    pub const CLOCK_NANOSLEEP: isize = 230;
35    pub const CLOCK_SETTIME: isize = 227;
36    pub const CLONE3: isize = 435;
37    pub const CLONE: isize = 56;
38    pub const CLOSE: isize = 3;
39    pub const CLOSE_RANGE: isize = 436;
40    pub const CONNECT: isize = 42;
41    pub const COPY_FILE_RANGE: isize = 326;
42    pub const CREAT: isize = 85;
43    pub const CREATE_MODULE: isize = 174;
44    pub const DELETE_MODULE: isize = 176;
45    pub const DUP2: isize = 33;
46    pub const DUP: isize = 32;
47    pub const DUP3: isize = 292;
48    pub const EPOLL_CREATE1: isize = 291;
49    pub const EPOLL_CREATE: isize = 213;
50    pub const EPOLL_CTL: isize = 233;
51    pub const EPOLL_CTL_OLD: isize = 214;
52    pub const EPOLL_PWAIT2: isize = 441;
53    pub const EPOLL_PWAIT: isize = 281;
54    pub const EPOLL_WAIT: isize = 232;
55    pub const EPOLL_WAIT_OLD: isize = 215;
56    pub const EVENTFD2: isize = 290;
57    pub const EVENTFD: isize = 284;
58    pub const EXECVE: isize = 59;
59    pub const EXECVEAT: isize = 322;
60    pub const EXIT: isize = 60;
61    pub const EXIT_GROUP: isize = 231;
62    pub const FACCESSAT2: isize = 439;
63    pub const FACCESSAT: isize = 269;
64    pub const FADVISE64: isize = 221;
65    pub const FALLOCATE: isize = 285;
66    pub const FANOTIFY_INIT: isize = 300;
67    pub const FANOTIFY_MARK: isize = 301;
68    pub const FCHDIR: isize = 81;
69    pub const FCHMOD: isize = 91;
70    pub const FCHMODAT: isize = 268;
71    pub const FCHOWN: isize = 93;
72    pub const FCHOWNAT: isize = 260;
73    pub const FCNTL: isize = 72;
74    pub const FDATASYNC: isize = 75;
75    pub const FGETXATTR: isize = 193;
76    pub const FINIT_MODULE: isize = 313;
77    pub const FLISTXATTR: isize = 196;
78    pub const FLOCK: isize = 73;
79    pub const FORK: isize = 57;
80    pub const FREMOVEXATTR: isize = 199;
81    pub const FSCONFIG: isize = 431;
82    pub const FSETXATTR: isize = 190;
83    pub const FSMOUNT: isize = 432;
84    pub const FSOPEN: isize = 430;
85    pub const FSPICK: isize = 433;
86    pub const FSTAT: isize = 5;
87    pub const FSTATFS: isize = 138;
88    pub const FSYNC: isize = 74;
89    pub const FTRUNCATE: isize = 77;
90    pub const FUTEX: isize = 202;
91    pub const FUTIMESAT: isize = 261;
92    pub const GETCPU: isize = 309;
93    pub const GETCWD: isize = 79;
94    pub const GETDENTS64: isize = 217;
95    pub const GETDENTS: isize = 78;
96    pub const GETEGID: isize = 108;
97    pub const GETEUID: isize = 107;
98    pub const GETGID: isize = 104;
99    pub const GETGROUPS: isize = 115;
100    pub const GETITIMER: isize = 36;
101    pub const GET_KERNEL_SYMS: isize = 177;
102    pub const GET_MEMPOLICY: isize = 239;
103    pub const GETPEERNAME: isize = 52;
104    pub const GETPGID: isize = 121;
105    pub const GETPGRP: isize = 111;
106    pub const GETPID: isize = 39;
107    pub const GETPMSG: isize = 181;
108    pub const GETPPID: isize = 110;
109    pub const GETPRIORITY: isize = 140;
110    pub const GETRANDOM: isize = 318;
111    pub const GETRESGID: isize = 120;
112    pub const GETRESUID: isize = 118;
113    pub const GETRLIMIT: isize = 97;
114    pub const GET_ROBUST_LIST: isize = 274;
115    pub const GETRUSAGE: isize = 98;
116    pub const GETSID: isize = 124;
117    pub const GETSOCKNAME: isize = 51;
118    pub const GETSOCKOPT: isize = 55;
119    pub const GET_THREAD_AREA: isize = 211;
120    pub const GETTID: isize = 186;
121    pub const GETTIMEOFDAY: isize = 96;
122    pub const GETUID: isize = 102;
123    pub const GETXATTR: isize = 191;
124    pub const INIT_MODULE: isize = 175;
125    pub const INOTIFY_ADD_WATCH: isize = 254;
126    pub const INOTIFY_INIT1: isize = 294;
127    pub const INOTIFY_INIT: isize = 253;
128    pub const INOTIFY_RM_WATCH: isize = 255;
129    pub const IO_CANCEL: isize = 210;
130    pub const IOCTL: isize = 16;
131    pub const IO_DESTROY: isize = 207;
132    pub const IO_GETEVENTS: isize = 208;
133    pub const IOPERM: isize = 173;
134    pub const IO_PGETEVENTS: isize = 333;
135    pub const IOPL: isize = 172;
136    pub const IOPRIO_GET: isize = 252;
137    pub const IOPRIO_SET: isize = 251;
138    pub const IO_SETUP: isize = 206;
139    pub const IO_SUBMIT: isize = 209;
140    pub const IO_URING_ENTER: isize = 426;
141    pub const IO_URING_REGISTER: isize = 427;
142    pub const IO_URING_SETUP: isize = 425;
143    pub const KCMP: isize = 312;
144    pub const KEXEC_FILE_LOAD: isize = 320;
145    pub const KEXEC_LOAD: isize = 246;
146    pub const KEYCTL: isize = 250;
147    pub const KILL: isize = 62;
148    pub const LANDLOCK_ADD_RULE: isize = 445;
149    pub const LANDLOCK_CREATE_RULESET: isize = 444;
150    pub const LANDLOCK_RESTRICT_SELF: isize = 446;
151    pub const LCHOWN: isize = 94;
152    pub const LGETXATTR: isize = 192;
153    pub const LINK: isize = 86;
154    pub const LINKAT: isize = 265;
155    pub const LISTEN: isize = 50;
156    pub const LISTXATTR: isize = 194;
157    pub const LLISTXATTR: isize = 195;
158    pub const LOOKUP_DCOOKIE: isize = 212;
159    pub const LREMOVEXATTR: isize = 198;
160    pub const LSEEK: isize = 8;
161    pub const LSETXATTR: isize = 189;
162    pub const LSTAT: isize = 6;
163    pub const MADVISE: isize = 28;
164    pub const MBIND: isize = 237;
165    pub const MEMBARRIER: isize = 324;
166    pub const MEMFD_CREATE: isize = 319;
167    pub const MEMFD_SECRET: isize = 447;
168    pub const MIGRATE_PAGES: isize = 256;
169    pub const MINCORE: isize = 27;
170    pub const MKDIR: isize = 83;
171    pub const MKDIRAT: isize = 258;
172    pub const MKNOD: isize = 133;
173    pub const MKNODAT: isize = 259;
174    pub const MLOCK: isize = 149;
175    pub const MLOCK2: isize = 325;
176    pub const MLOCKALL: isize = 151;
177    pub const MMAP: isize = 9;
178    pub const MODIFY_LDT: isize = 154;
179    pub const MOUNT: isize = 165;
180    pub const MOUNT_SETATTR: isize = 442;
181    pub const MOVE_MOUNT: isize = 429;
182    pub const MOVE_PAGES: isize = 279;
183    pub const MPROTECT: isize = 10;
184    pub const MQ_GETSETATTR: isize = 245;
185    pub const MQ_NOTIFY: isize = 244;
186    pub const MQ_OPEN: isize = 240;
187    pub const MQ_TIMEDRECEIVE: isize = 243;
188    pub const MQ_TIMEDSEND: isize = 242;
189    pub const MQ_UNLINK: isize = 241;
190    pub const MREMAP: isize = 25;
191    pub const MSGCTL: isize = 71;
192    pub const MSGGET: isize = 68;
193    pub const MSGRCV: isize = 70;
194    pub const MSGSND: isize = 69;
195    pub const MSYNC: isize = 26;
196    pub const MUNLOCK: isize = 150;
197    pub const MUNLOCKALL: isize = 152;
198    pub const MUNMAP: isize = 11;
199    pub const NAME_TO_HANDLE_AT: isize = 303;
200    pub const NANOSLEEP: isize = 35;
201    pub const NEWFSTATAT: isize = 262;
202    pub const NFSSERVCTL: isize = 180;
203    pub const OPEN: isize = 2;
204    pub const OPENAT2: isize = 437;
205    pub const OPENAT: isize = 257;
206    pub const OPEN_BY_HANDLE_AT: isize = 304;
207    pub const OPEN_TREE: isize = 428;
208    pub const PAUSE: isize = 34;
209    pub const PERF_EVENT_OPEN: isize = 298;
210    pub const PERSONALITY: isize = 135;
211    pub const PIDFD_GETFD: isize = 438;
212    pub const PIDFD_OPEN: isize = 434;
213    pub const PIDFD_SEND_SIGNAL: isize = 424;
214    pub const PIPE: isize = 22;
215    pub const PIPE2: isize = 293;
216    pub const PIVOT_ROOT: isize = 155;
217    pub const PKEY_ALLOC: isize = 330;
218    pub const PKEY_FREE: isize = 331;
219    pub const PKEY_MPROTECT: isize = 329;
220    pub const POLL: isize = 7;
221    pub const PPOLL: isize = 271;
222    pub const PRCTL: isize = 157;
223    pub const PREAD64: isize = 17;
224    pub const PREADV2: isize = 327;
225    pub const PREADV: isize = 295;
226    pub const PRLIMIT64: isize = 302;
227    pub const PROCESS_MADVISE: isize = 440;
228    pub const PROCESS_MRELEASE: isize = 448;
229    pub const PROCESS_VM_READV: isize = 310;
230    pub const PROCESS_VM_WRITEV: isize = 311;
231    pub const PSELECT6: isize = 270;
232    pub const PTRACE: isize = 101;
233    pub const PUTPMSG: isize = 182;
234    pub const PWRITE64: isize = 18;
235    pub const PWRITEV2: isize = 328;
236    pub const PWRITEV: isize = 296;
237    pub const QUERY_MODULE: isize = 178;
238    pub const QUOTACTL: isize = 179;
239    pub const QUOTACTL_FD: isize = 443;
240    pub const READ: isize = 0;
241    pub const READAHEAD: isize = 187;
242    pub const READLINK: isize = 89;
243    pub const READLINKAT: isize = 267;
244    pub const READV: isize = 19;
245    pub const REBOOT: isize = 169;
246    pub const RECVFROM: isize = 45;
247    pub const RECVMMSG: isize = 299;
248    pub const RECVMSG: isize = 47;
249    pub const REMAP_FILE_PAGES: isize = 216;
250    pub const REMOVEXATTR: isize = 197;
251    pub const RENAME: isize = 82;
252    pub const RENAMEAT2: isize = 316;
253    pub const RENAMEAT: isize = 264;
254    pub const REQUEST_KEY: isize = 249;
255    pub const RESTART_SYSCALL: isize = 219;
256    pub const RMDIR: isize = 84;
257    pub const RSEQ: isize = 334;
258    pub const RT_SIGACTION: isize = 13;
259    pub const RT_SIGPENDING: isize = 127;
260    pub const RT_SIGPROCMASK: isize = 14;
261    pub const RT_SIGQUEUEINFO: isize = 129;
262    pub const RT_SIGRETURN: isize = 15;
263    pub const RT_SIGSUSPEND: isize = 130;
264    pub const RT_SIGTIMEDWAIT: isize = 128;
265    pub const RT_TGSIGQUEUEINFO: isize = 297;
266    pub const SCHED_GETAFFINITY: isize = 204;
267    pub const SCHED_GETATTR: isize = 315;
268    pub const SCHED_GETPARAM: isize = 143;
269    pub const SCHED_GET_PRIORITY_MAX: isize = 146;
270    pub const SCHED_GET_PRIORITY_MIN: isize = 147;
271    pub const SCHED_GETSCHEDULER: isize = 145;
272    pub const SCHED_RR_GET_INTERVAL: isize = 148;
273    pub const SCHED_SETAFFINITY: isize = 203;
274    pub const SCHED_SETATTR: isize = 314;
275    pub const SCHED_SETPARAM: isize = 142;
276    pub const SCHED_SETSCHEDULER: isize = 144;
277    pub const SCHED_YIELD: isize = 24;
278    pub const SECCOMP: isize = 317;
279    pub const SECURITY: isize = 185;
280    pub const SELECT: isize = 23;
281    pub const SEMCTL: isize = 66;
282    pub const SEMGET: isize = 64;
283    pub const SEMOP: isize = 65;
284    pub const SEMTIMEDOP: isize = 220;
285    pub const SENDFILE: isize = 40;
286    pub const SENDMMSG: isize = 307;
287    pub const SENDMSG: isize = 46;
288    pub const SENDTO: isize = 44;
289    pub const SETDOMAINNAME: isize = 171;
290    pub const SETFSGID: isize = 123;
291    pub const SETFSUID: isize = 122;
292    pub const SETGID: isize = 106;
293    pub const SETGROUPS: isize = 116;
294    pub const SETHOSTNAME: isize = 170;
295    pub const SETITIMER: isize = 38;
296    pub const SET_MEMPOLICY: isize = 238;
297    pub const SETNS: isize = 308;
298    pub const SETPGID: isize = 109;
299    pub const SETPRIORITY: isize = 141;
300    pub const SETREGID: isize = 114;
301    pub const SETRESGID: isize = 119;
302    pub const SETRESUID: isize = 117;
303    pub const SETREUID: isize = 113;
304    pub const SETRLIMIT: isize = 160;
305    pub const SET_ROBUST_LIST: isize = 273;
306    pub const SETSID: isize = 112;
307    pub const SETSOCKOPT: isize = 54;
308    pub const SET_THREAD_AREA: isize = 205;
309    pub const SET_TID_ADDRESS: isize = 218;
310    pub const SETTIMEOFDAY: isize = 164;
311    pub const SETUID: isize = 105;
312    pub const SETXATTR: isize = 188;
313    pub const SHMAT: isize = 30;
314    pub const SHMCTL: isize = 31;
315    pub const SHMDT: isize = 67;
316    pub const SHMGET: isize = 29;
317    pub const SHUTDOWN: isize = 48;
318    pub const SIGALTSTACK: isize = 131;
319    pub const SIGNALFD: isize = 282;
320    pub const SIGNALFD4: isize = 289;
321    pub const SOCKET: isize = 41;
322    pub const SOCKETPAIR: isize = 53;
323    pub const SPLICE: isize = 275;
324    pub const STAT: isize = 4;
325    pub const STATFS: isize = 137;
326    pub const STATX: isize = 332;
327    pub const SWAPOFF: isize = 168;
328    pub const SWAPON: isize = 167;
329    pub const SYMLINK: isize = 88;
330    pub const SYMLINKAT: isize = 266;
331    pub const SYNC: isize = 162;
332    pub const SYNC_FILE_RANGE: isize = 277;
333    pub const SYNCFS: isize = 306;
334    pub const _SYSCTL: isize = 156;
335    pub const SYSFS: isize = 139;
336    pub const SYSINFO: isize = 99;
337    pub const SYSLOG: isize = 103;
338    pub const TEE: isize = 276;
339    pub const TGKILL: isize = 234;
340    pub const TIME: isize = 201;
341    pub const TIMER_CREATE: isize = 222;
342    pub const TIMER_DELETE: isize = 226;
343    pub const TIMERFD_CREATE: isize = 283;
344    pub const TIMERFD_GETTIME: isize = 287;
345    pub const TIMERFD_SETTIME: isize = 286;
346    pub const TIMER_GETOVERRUN: isize = 225;
347    pub const TIMER_GETTIME: isize = 224;
348    pub const TIMER_SETTIME: isize = 223;
349    pub const TIMES: isize = 100;
350    pub const TKILL: isize = 200;
351    pub const TRUNCATE: isize = 76;
352    pub const TUXCALL: isize = 184;
353    pub const UMASK: isize = 95;
354    pub const UMOUNT2: isize = 166;
355    pub const UNAME: isize = 63;
356    pub const UNLINK: isize = 87;
357    pub const UNLINKAT: isize = 263;
358    pub const UNSHARE: isize = 272;
359    pub const USELIB: isize = 134;
360    pub const USERFAULTFD: isize = 323;
361    pub const USTAT: isize = 136;
362    pub const UTIME: isize = 132;
363    pub const UTIMENSAT: isize = 280;
364    pub const UTIMES: isize = 235;
365    pub const VFORK: isize = 58;
366    pub const VHANGUP: isize = 153;
367    pub const VMSPLICE: isize = 278;
368    pub const VSERVER: isize = 236;
369    pub const WAIT4: isize = 61;
370    pub const WAITID: isize = 247;
371    pub const WRITE: isize = 1;
372    pub const WRITEV: isize = 20;
373}