Update kernel

This commit is contained in:
EnderIce2
2024-01-19 06:47:42 +02:00
parent fd15592608
commit 96daa43d38
282 changed files with 25486 additions and 15700 deletions

View File

@ -0,0 +1,233 @@
/*
This file is part of Fennix Kernel.
Fennix Kernel is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Fennix Kernel is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __FENNIX_KERNEL_LINUX_DEFS_H__
#define __FENNIX_KERNEL_LINUX_DEFS_H__
#include <types.h>
#define ARCH_SET_GS 0x1001
#define ARCH_SET_FS 0x1002
#define ARCH_GET_FS 0x1003
#define ARCH_GET_GS 0x1004
#define ARCH_GET_CPUID 0x1011
#define ARCH_SET_CPUID 0x1012
#define ARCH_GET_XCOMP_SUPP 0x1021
#define ARCH_GET_XCOMP_PERM 0x1022
#define ARCH_REQ_XCOMP_PERM 0x1023
#define ARCH_GET_XCOMP_GUEST_PERM 0x1024
#define ARCH_REQ_XCOMP_GUEST_PERM 0x1025
#define ARCH_XCOMP_TILECFG 17
#define ARCH_XCOMP_TILEDATA 18
#define ARCH_MAP_VDSO_X32 0x2001
#define ARCH_MAP_VDSO_32 0x2002
#define ARCH_MAP_VDSO_64 0x2003
#define ARCH_GET_UNTAG_MASK 0x4001
#define ARCH_ENABLE_TAGGED_ADDR 0x4002
#define ARCH_GET_MAX_TAG_BITS 0x4003
#define ARCH_FORCE_TAGGED_SVA 0x4004
#define PROT_NONE 0
#define PROT_READ 1
#define PROT_WRITE 2
#define PROT_EXEC 4
#define PROT_GROWSDOWN 0x01000000
#define PROT_GROWSUP 0x02000000
#define MAP_TYPE 0x0f
#define MAP_FILE 0
#define MAP_SHARED 0x01
#define MAP_PRIVATE 0x02
#define MAP_SHARED_VALIDATE 0x03
#define MAP_FIXED 0x10
#define MAP_ANONYMOUS 0x20
#define MAP_NORESERVE 0x4000
#define MAP_GROWSDOWN 0x0100
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define MAP_POPULATE 0x8000
#define MAP_NONBLOCK 0x10000
#define MAP_STACK 0x20000
#define MAP_HUGETLB 0x40000
#define MAP_SYNC 0x80000
#define MAP_FIXED_NOREPLACE 0x100000
#define CLOCK_REALTIME 0
#define CLOCK_MONOTONIC 1
#define CLOCK_PROCESS_CPUTIME_ID 2
#define CLOCK_THREAD_CPUTIME_ID 3
#define CLOCK_MONOTONIC_RAW 4
#define CLOCK_REALTIME_COARSE 5
#define CLOCK_MONOTONIC_COARSE 6
#define CLOCK_BOOTTIME 7
#define CLOCK_REALTIME_ALARM 8
#define CLOCK_BOOTTIME_ALARM 9
#define CLOCK_SGI_CYCLE 10
#define CLOCK_TAI 11
#define GRND_NONBLOCK 0x1
#define GRND_RANDOM 0x2
#define GRND_INSECURE 0x4
#define RLIMIT_CPU 0
#define RLIMIT_FSIZE 1
#define RLIMIT_DATA 2
#define RLIMIT_STACK 3
#define RLIMIT_CORE 4
#define RLIMIT_RSS 5
#define RLIMIT_NPROC 6
#define RLIMIT_NOFILE 7
#define RLIMIT_MEMLOCK 8
#define RLIMIT_AS 9
#define RLIMIT_LOCKS 10
#define RLIMIT_SIGPENDING 11
#define RLIMIT_MSGQUEUE 12
#define RLIMIT_NICE 13
#define RLIMIT_RTPRIO 14
#define RLIMIT_RTTIME 15
#define RLIMIT_NLIMITS 16
#define F_DUPFD 0
#define F_GETFD 1
#define F_SETFD 2
#define F_GETFL 3
#define F_SETFL 4
#define F_SETOWN 8
#define F_GETOWN 9
#define F_SETSIG 10
#define F_GETSIG 11
#if __LONG_MAX == 0x7fffffffL
#define F_GETLK 12
#define F_SETLK 13
#define F_SETLKW 14
#else
#define F_GETLK 5
#define F_SETLK 6
#define F_SETLKW 7
#endif
#define F_SETOWN_EX 15
#define F_GETOWN_EX 16
#define DT_UNKNOWN 0
#define DT_FIFO 1
#define DT_CHR 2
#define DT_DIR 4
#define DT_BLK 6
#define DT_REG 8
#define DT_LNK 10
#define DT_SOCK 12
#define DT_WHT 14
#define AT_FDCWD (-100)
#define AT_SYMLINK_NOFOLLOW 0x100
#define AT_REMOVEDIR 0x200
#define AT_SYMLINK_FOLLOW 0x400
#define AT_EACCESS 0x200
#define AT_NO_AUTOMOUNT 0x800
#define AT_EMPTY_PATH 0x1000
#define AT_STATX_SYNC_TYPE 0x6000
#define AT_STATX_SYNC_AS_STAT 0x0000
#define AT_STATX_FORCE_SYNC 0x2000
#define AT_STATX_DONT_SYNC 0x4000
#define AT_RECURSIVE 0x8000
#define LINUX_REBOOT_MAGIC1 0xfee1dead
#define LINUX_REBOOT_MAGIC2 0x28121969
#define LINUX_REBOOT_MAGIC2A 0x05121996
#define LINUX_REBOOT_MAGIC2B 0x16041998
#define LINUX_REBOOT_MAGIC2C 0x20112000
#define LINUX_REBOOT_CMD_RESTART 0x01234567
#define LINUX_REBOOT_CMD_HALT 0xCDEF0123
#define LINUX_REBOOT_CMD_CAD_ON 0x89ABCDEF
#define LINUX_REBOOT_CMD_CAD_OFF 0x00000000
#define LINUX_REBOOT_CMD_POWER_OFF 0x4321FEDC
#define LINUX_REBOOT_CMD_RESTART2 0xA1B2C3D4
#define LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2
#define LINUX_REBOOT_CMD_KEXEC 0x45584543
typedef long __kernel_old_time_t;
typedef long __kernel_suseconds_t;
typedef int clockid_t;
struct iovec
{
void *iov_base;
size_t iov_len;
};
struct timeval
{
__kernel_old_time_t tv_sec;
__kernel_suseconds_t tv_usec;
};
struct rusage
{
struct timeval ru_utime;
struct timeval ru_stime;
long ru_maxrss;
long ru_ixrss;
long ru_idrss;
long ru_isrss;
long ru_minflt;
long ru_majflt;
long ru_nswap;
long ru_inblock;
long ru_oublock;
long ru_msgsnd;
long ru_msgrcv;
long ru_nsignals;
long ru_nvcsw;
long ru_nivcsw;
};
typedef unsigned long rlim_t;
struct rlimit
{
rlim_t rlim_cur; /* Soft limit */
rlim_t rlim_max; /* Hard limit (ceiling for rlim_cur) */
};
struct linux_dirent
{
unsigned long d_ino; /* Inode number */
unsigned long d_off; /* Offset to next linux_dirent */
unsigned short d_reclen; /* Length of this linux_dirent */
char d_name[]; /* Filename (null-terminated) */
};
struct linux_dirent64
{
ino64_t d_ino; /* 64-bit inode number */
off64_t d_off; /* 64-bit offset to next structure */
unsigned short d_reclen; /* Size of this dirent */
unsigned char d_type; /* File type */
char d_name[]; /* Filename (null-terminated) */
};
#endif // !__FENNIX_KERNEL_LINUX_DEFS_H__

View File

@ -0,0 +1,56 @@
/*
This file is part of Fennix Kernel.
Fennix Kernel is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Fennix Kernel is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __FENNIX_KERNEL_LINUX_SIGNALS_H__
#define __FENNIX_KERNEL_LINUX_SIGNALS_H__
#include <types.h>
#define linux_SIGHUP 1
#define linux_SIGINT 2
#define linux_SIGQUIT 3
#define linux_SIGILL 4
#define linux_SIGTRAP 5
#define linux_SIGABRT 6
#define linux_SIGBUS 7
#define linux_SIGFPE 8
#define linux_SIGKILL 9
#define linux_SIGUSR1 10
#define linux_SIGSEGV 11
#define linux_SIGUSR2 12
#define linux_SIGPIPE 13
#define linux_SIGALRM 14
#define linux_SIGTERM 15
#define linux_SIGSTKFLT 16
#define linux_SIGCHLD 17
#define linux_SIGCONT 18
#define linux_SIGSTOP 19
#define linux_SIGTSTP 20
#define linux_SIGTTIN 21
#define linux_SIGTTOU 22
#define linux_SIGURG 23
#define linux_SIGXCPU 24
#define linux_SIGXFSZ 25
#define linux_SIGVTALRM 26
#define linux_SIGPROF 27
#define linux_SIGWINCH 28
#define linux_SIGPOLL 29
#define linux_SIGPWR 30
#define linux_SIGSYS 31
#define linux_SIGUNUSED linux_SIGSYS
#endif // !__FENNIX_KERNEL_LINUX_SIGNALS_H__

View File

@ -0,0 +1,381 @@
/*
This file is part of Fennix Kernel.
Fennix Kernel is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Fennix Kernel is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __FENNIX_KERNEL_LINUX_SYSCALLS_x64_H__
#define __FENNIX_KERNEL_LINUX_SYSCALLS_x64_H__
#include <types.h>
#define __NR_amd64_read 0
#define __NR_amd64_write 1
#define __NR_amd64_open 2
#define __NR_amd64_close 3
#define __NR_amd64_stat 4
#define __NR_amd64_fstat 5
#define __NR_amd64_lstat 6
#define __NR_amd64_poll 7
#define __NR_amd64_lseek 8
#define __NR_amd64_mmap 9
#define __NR_amd64_mprotect 10
#define __NR_amd64_munmap 11
#define __NR_amd64_brk 12
#define __NR_amd64_rt_sigaction 13
#define __NR_amd64_rt_sigprocmask 14
#define __NR_amd64_rt_sigreturn 15
#define __NR_amd64_ioctl 16
#define __NR_amd64_pread64 17
#define __NR_amd64_pwrite64 18
#define __NR_amd64_readv 19
#define __NR_amd64_writev 20
#define __NR_amd64_access 21
#define __NR_amd64_pipe 22
#define __NR_amd64_select 23
#define __NR_amd64_sched_yield 24
#define __NR_amd64_mremap 25
#define __NR_amd64_msync 26
#define __NR_amd64_mincore 27
#define __NR_amd64_madvise 28
#define __NR_amd64_shmget 29
#define __NR_amd64_shmat 30
#define __NR_amd64_shmctl 31
#define __NR_amd64_dup 32
#define __NR_amd64_dup2 33
#define __NR_amd64_pause 34
#define __NR_amd64_nanosleep 35
#define __NR_amd64_getitimer 36
#define __NR_amd64_alarm 37
#define __NR_amd64_setitimer 38
#define __NR_amd64_getpid 39
#define __NR_amd64_sendfile 40
#define __NR_amd64_socket 41
#define __NR_amd64_connect 42
#define __NR_amd64_accept 43
#define __NR_amd64_sendto 44
#define __NR_amd64_recvfrom 45
#define __NR_amd64_sendmsg 46
#define __NR_amd64_recvmsg 47
#define __NR_amd64_shutdown 48
#define __NR_amd64_bind 49
#define __NR_amd64_listen 50
#define __NR_amd64_getsockname 51
#define __NR_amd64_getpeername 52
#define __NR_amd64_socketpair 53
#define __NR_amd64_setsockopt 54
#define __NR_amd64_getsockopt 55
#define __NR_amd64_clone 56
#define __NR_amd64_fork 57
#define __NR_amd64_vfork 58
#define __NR_amd64_execve 59
#define __NR_amd64_exit 60
#define __NR_amd64_wait4 61
#define __NR_amd64_kill 62
#define __NR_amd64_uname 63
#define __NR_amd64_semget 64
#define __NR_amd64_semop 65
#define __NR_amd64_semctl 66
#define __NR_amd64_shmdt 67
#define __NR_amd64_msgget 68
#define __NR_amd64_msgsnd 69
#define __NR_amd64_msgrcv 70
#define __NR_amd64_msgctl 71
#define __NR_amd64_fcntl 72
#define __NR_amd64_flock 73
#define __NR_amd64_fsync 74
#define __NR_amd64_fdatasync 75
#define __NR_amd64_truncate 76
#define __NR_amd64_ftruncate 77
#define __NR_amd64_getdents 78
#define __NR_amd64_getcwd 79
#define __NR_amd64_chdir 80
#define __NR_amd64_fchdir 81
#define __NR_amd64_rename 82
#define __NR_amd64_mkdir 83
#define __NR_amd64_rmdir 84
#define __NR_amd64_creat 85
#define __NR_amd64_link 86
#define __NR_amd64_unlink 87
#define __NR_amd64_symlink 88
#define __NR_amd64_readlink 89
#define __NR_amd64_chmod 90
#define __NR_amd64_fchmod 91
#define __NR_amd64_chown 92
#define __NR_amd64_fchown 93
#define __NR_amd64_lchown 94
#define __NR_amd64_umask 95
#define __NR_amd64_gettimeofday 96
#define __NR_amd64_getrlimit 97
#define __NR_amd64_getrusage 98
#define __NR_amd64_sysinfo 99
#define __NR_amd64_times 100
#define __NR_amd64_ptrace 101
#define __NR_amd64_getuid 102
#define __NR_amd64_syslog 103
#define __NR_amd64_getgid 104
#define __NR_amd64_setuid 105
#define __NR_amd64_setgid 106
#define __NR_amd64_geteuid 107
#define __NR_amd64_getegid 108
#define __NR_amd64_setpgid 109
#define __NR_amd64_getppid 110
#define __NR_amd64_getpgrp 111
#define __NR_amd64_setsid 112
#define __NR_amd64_setreuid 113
#define __NR_amd64_setregid 114
#define __NR_amd64_getgroups 115
#define __NR_amd64_setgroups 116
#define __NR_amd64_setresuid 117
#define __NR_amd64_getresuid 118
#define __NR_amd64_setresgid 119
#define __NR_amd64_getresgid 120
#define __NR_amd64_getpgid 121
#define __NR_amd64_setfsuid 122
#define __NR_amd64_setfsgid 123
#define __NR_amd64_getsid 124
#define __NR_amd64_capget 125
#define __NR_amd64_capset 126
#define __NR_amd64_rt_sigpending 127
#define __NR_amd64_rt_sigtimedwait 128
#define __NR_amd64_rt_sigqueueinfo 129
#define __NR_amd64_rt_sigsuspend 130
#define __NR_amd64_sigaltstack 131
#define __NR_amd64_utime 132
#define __NR_amd64_mknod 133
#define __NR_amd64_uselib 134
#define __NR_amd64_personality 135
#define __NR_amd64_ustat 136
#define __NR_amd64_statfs 137
#define __NR_amd64_fstatfs 138
#define __NR_amd64_sysfs 139
#define __NR_amd64_getpriority 140
#define __NR_amd64_setpriority 141
#define __NR_amd64_sched_setparam 142
#define __NR_amd64_sched_getparam 143
#define __NR_amd64_sched_setscheduler 144
#define __NR_amd64_sched_getscheduler 145
#define __NR_amd64_sched_get_priority_max 146
#define __NR_amd64_sched_get_priority_min 147
#define __NR_amd64_sched_rr_get_interval 148
#define __NR_amd64_mlock 149
#define __NR_amd64_munlock 150
#define __NR_amd64_mlockall 151
#define __NR_amd64_munlockall 152
#define __NR_amd64_vhangup 153
#define __NR_amd64_modify_ldt 154
#define __NR_amd64_pivot_root 155
#define __NR_amd64__sysctl 156
#define __NR_amd64_prctl 157
#define __NR_amd64_arch_prctl 158
#define __NR_amd64_adjtimex 159
#define __NR_amd64_setrlimit 160
#define __NR_amd64_chroot 161
#define __NR_amd64_sync 162
#define __NR_amd64_acct 163
#define __NR_amd64_settimeofday 164
#define __NR_amd64_mount 165
#define __NR_amd64_umount2 166
#define __NR_amd64_swapon 167
#define __NR_amd64_swapoff 168
#define __NR_amd64_reboot 169
#define __NR_amd64_sethostname 170
#define __NR_amd64_setdomainname 171
#define __NR_amd64_iopl 172
#define __NR_amd64_ioperm 173
#define __NR_amd64_create_module 174
#define __NR_amd64_init_module 175
#define __NR_amd64_delete_module 176
#define __NR_amd64_get_kernel_syms 177
#define __NR_amd64_query_module 178
#define __NR_amd64_quotactl 179
#define __NR_amd64_nfsservctl 180
#define __NR_amd64_getpmsg 181
#define __NR_amd64_putpmsg 182
#define __NR_amd64_afs_syscall 183
#define __NR_amd64_tuxcall 184
#define __NR_amd64_security 185
#define __NR_amd64_gettid 186
#define __NR_amd64_readahead 187
#define __NR_amd64_setxattr 188
#define __NR_amd64_lsetxattr 189
#define __NR_amd64_fsetxattr 190
#define __NR_amd64_getxattr 191
#define __NR_amd64_lgetxattr 192
#define __NR_amd64_fgetxattr 193
#define __NR_amd64_listxattr 194
#define __NR_amd64_llistxattr 195
#define __NR_amd64_flistxattr 196
#define __NR_amd64_removexattr 197
#define __NR_amd64_lremovexattr 198
#define __NR_amd64_fremovexattr 199
#define __NR_amd64_tkill 200
#define __NR_amd64_time 201
#define __NR_amd64_futex 202
#define __NR_amd64_sched_setaffinity 203
#define __NR_amd64_sched_getaffinity 204
#define __NR_amd64_set_thread_area 205
#define __NR_amd64_io_setup 206
#define __NR_amd64_io_destroy 207
#define __NR_amd64_io_getevents 208
#define __NR_amd64_io_submit 209
#define __NR_amd64_io_cancel 210
#define __NR_amd64_get_thread_area 211
#define __NR_amd64_lookup_dcookie 212
#define __NR_amd64_epoll_create 213
#define __NR_amd64_epoll_ctl_old 214
#define __NR_amd64_epoll_wait_old 215
#define __NR_amd64_remap_file_pages 216
#define __NR_amd64_getdents64 217
#define __NR_amd64_set_tid_address 218
#define __NR_amd64_restart_syscall 219
#define __NR_amd64_semtimedop 220
#define __NR_amd64_fadvise64 221
#define __NR_amd64_timer_create 222
#define __NR_amd64_timer_settime 223
#define __NR_amd64_timer_gettime 224
#define __NR_amd64_timer_getoverrun 225
#define __NR_amd64_timer_delete 226
#define __NR_amd64_clock_settime 227
#define __NR_amd64_clock_gettime 228
#define __NR_amd64_clock_getres 229
#define __NR_amd64_clock_nanosleep 230
#define __NR_amd64_exit_group 231
#define __NR_amd64_epoll_wait 232
#define __NR_amd64_epoll_ctl 233
#define __NR_amd64_tgkill 234
#define __NR_amd64_utimes 235
#define __NR_amd64_vserver 236
#define __NR_amd64_mbind 237
#define __NR_amd64_set_mempolicy 238
#define __NR_amd64_get_mempolicy 239
#define __NR_amd64_mq_open 240
#define __NR_amd64_mq_unlink 241
#define __NR_amd64_mq_timedsend 242
#define __NR_amd64_mq_timedreceive 243
#define __NR_amd64_mq_notify 244
#define __NR_amd64_mq_getsetattr 245
#define __NR_amd64_kexec_load 246
#define __NR_amd64_waitid 247
#define __NR_amd64_add_key 248
#define __NR_amd64_request_key 249
#define __NR_amd64_keyctl 250
#define __NR_amd64_ioprio_set 251
#define __NR_amd64_ioprio_get 252
#define __NR_amd64_inotify_init 253
#define __NR_amd64_inotify_add_watch 254
#define __NR_amd64_inotify_rm_watch 255
#define __NR_amd64_migrate_pages 256
#define __NR_amd64_openat 257
#define __NR_amd64_mkdirat 258
#define __NR_amd64_mknodat 259
#define __NR_amd64_fchownat 260
#define __NR_amd64_futimesat 261
#define __NR_amd64_newfstatat 262
#define __NR_amd64_unlinkat 263
#define __NR_amd64_renameat 264
#define __NR_amd64_linkat 265
#define __NR_amd64_symlinkat 266
#define __NR_amd64_readlinkat 267
#define __NR_amd64_fchmodat 268
#define __NR_amd64_faccessat 269
#define __NR_amd64_pselect6 270
#define __NR_amd64_ppoll 271
#define __NR_amd64_unshare 272
#define __NR_amd64_set_robust_list 273
#define __NR_amd64_get_robust_list 274
#define __NR_amd64_splice 275
#define __NR_amd64_tee 276
#define __NR_amd64_sync_file_range 277
#define __NR_amd64_vmsplice 278
#define __NR_amd64_move_pages 279
#define __NR_amd64_utimensat 280
#define __NR_amd64_epoll_pwait 281
#define __NR_amd64_signalfd 282
#define __NR_amd64_timerfd_create 283
#define __NR_amd64_eventfd 284
#define __NR_amd64_fallocate 285
#define __NR_amd64_timerfd_settime 286
#define __NR_amd64_timerfd_gettime 287
#define __NR_amd64_accept4 288
#define __NR_amd64_signalfd4 289
#define __NR_amd64_eventfd2 290
#define __NR_amd64_epoll_create1 291
#define __NR_amd64_dup3 292
#define __NR_amd64_pipe2 293
#define __NR_amd64_inotify_init1 294
#define __NR_amd64_preadv 295
#define __NR_amd64_pwritev 296
#define __NR_amd64_rt_tgsigqueueinfo 297
#define __NR_amd64_perf_event_open 298
#define __NR_amd64_recvmmsg 299
#define __NR_amd64_fanotify_init 300
#define __NR_amd64_fanotify_mark 301
#define __NR_amd64_prlimit64 302
#define __NR_amd64_name_to_handle_at 303
#define __NR_amd64_open_by_handle_at 304
#define __NR_amd64_clock_adjtime 305
#define __NR_amd64_syncfs 306
#define __NR_amd64_sendmmsg 307
#define __NR_amd64_setns 308
#define __NR_amd64_getcpu 309
#define __NR_amd64_process_vm_readv 310
#define __NR_amd64_process_vm_writev 311
#define __NR_amd64_kcmp 312
#define __NR_amd64_finit_module 313
#define __NR_amd64_sched_setattr 314
#define __NR_amd64_sched_getattr 315
#define __NR_amd64_renameat2 316
#define __NR_amd64_seccomp 317
#define __NR_amd64_getrandom 318
#define __NR_amd64_memfd_create 319
#define __NR_amd64_kexec_file_load 320
#define __NR_amd64_bpf 321
#define __NR_amd64_execveat 322
#define __NR_amd64_userfaultfd 323
#define __NR_amd64_membarrier 324
#define __NR_amd64_mlock2 325
#define __NR_amd64_copy_file_range 326
#define __NR_amd64_preadv2 327
#define __NR_amd64_pwritev2 328
#define __NR_amd64_pkey_mprotect 329
#define __NR_amd64_pkey_alloc 330
#define __NR_amd64_pkey_free 331
#define __NR_amd64_statx 332
#define __NR_amd64_io_pgetevents 333
#define __NR_amd64_rseq 334
#define __NR_amd64_pidfd_send_signal 424
#define __NR_amd64_io_uring_setup 425
#define __NR_amd64_io_uring_enter 426
#define __NR_amd64_io_uring_register 427
#define __NR_amd64_open_tree 428
#define __NR_amd64_move_mount 429
#define __NR_amd64_fsopen 430
#define __NR_amd64_fsconfig 431
#define __NR_amd64_fsmount 432
#define __NR_amd64_fspick 433
#define __NR_amd64_pidfd_open 434
#define __NR_amd64_clone3 435
#define __NR_amd64_close_range 436
#define __NR_amd64_openat2 437
#define __NR_amd64_pidfd_getfd 438
#define __NR_amd64_faccessat2 439
#define __NR_amd64_process_madvise 440
#define __NR_amd64_epoll_pwait2 441
#define __NR_amd64_mount_setattr 442
#define __NR_amd64_landlock_create_ruleset 444
#define __NR_amd64_landlock_add_rule 445
#define __NR_amd64_landlock_restrict_self 446
#endif // !__FENNIX_KERNEL_LINUX_SYSCALLS_x64_H__

View File

@ -0,0 +1,459 @@
/*
This file is part of Fennix Kernel.
Fennix Kernel is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Fennix Kernel is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __FENNIX_KERNEL_LINUX_SYSCALLS_I386_H__
#define __FENNIX_KERNEL_LINUX_SYSCALLS_I386_H__
#define __NR_i386_restart_syscall 0
#define __NR_i386_exit 1
#define __NR_i386_fork 2
#define __NR_i386_read 3
#define __NR_i386_write 4
#define __NR_i386_open 5
#define __NR_i386_close 6
#define __NR_i386_waitpid 7
#define __NR_i386_creat 8
#define __NR_i386_link 9
#define __NR_i386_unlink 10
#define __NR_i386_execve 11
#define __NR_i386_chdir 12
#define __NR_i386_time 13
#define __NR_i386_mknod 14
#define __NR_i386_chmod 15
#define __NR_i386_lchown 16
#define __NR_i386_break 17
#define __NR_i386_oldstat 18
#define __NR_i386_lseek 19
#define __NR_i386_getpid 20
#define __NR_i386_mount 21
#define __NR_i386_umount 22
#define __NR_i386_setuid 23
#define __NR_i386_getuid 24
#define __NR_i386_stime 25
#define __NR_i386_ptrace 26
#define __NR_i386_alarm 27
#define __NR_i386_oldfstat 28
#define __NR_i386_pause 29
#define __NR_i386_utime 30
#define __NR_i386_stty 31
#define __NR_i386_gtty 32
#define __NR_i386_access 33
#define __NR_i386_nice 34
#define __NR_i386_ftime 35
#define __NR_i386_sync 36
#define __NR_i386_kill 37
#define __NR_i386_rename 38
#define __NR_i386_mkdir 39
#define __NR_i386_rmdir 40
#define __NR_i386_dup 41
#define __NR_i386_pipe 42
#define __NR_i386_times 43
#define __NR_i386_prof 44
#define __NR_i386_brk 45
#define __NR_i386_setgid 46
#define __NR_i386_getgid 47
#define __NR_i386_signal 48
#define __NR_i386_geteuid 49
#define __NR_i386_getegid 50
#define __NR_i386_acct 51
#define __NR_i386_umount2 52
#define __NR_i386_lock 53
#define __NR_i386_ioctl 54
#define __NR_i386_fcntl 55
#define __NR_i386_mpx 56
#define __NR_i386_setpgid 57
#define __NR_i386_ulimit 58
#define __NR_i386_oldolduname 59
#define __NR_i386_umask 60
#define __NR_i386_chroot 61
#define __NR_i386_ustat 62
#define __NR_i386_dup2 63
#define __NR_i386_getppid 64
#define __NR_i386_getpgrp 65
#define __NR_i386_setsid 66
#define __NR_i386_sigaction 67
#define __NR_i386_sgetmask 68
#define __NR_i386_ssetmask 69
#define __NR_i386_setreuid 70
#define __NR_i386_setregid 71
#define __NR_i386_sigsuspend 72
#define __NR_i386_sigpending 73
#define __NR_i386_sethostname 74
#define __NR_i386_setrlimit 75
#define __NR_i386_getrlimit 76
#define __NR_i386_getrusage 77
#define __NR_i386_gettimeofday_time32 78
#define __NR_i386_settimeofday_time32 79
#define __NR_i386_getgroups 80
#define __NR_i386_setgroups 81
#define __NR_i386_select 82
#define __NR_i386_symlink 83
#define __NR_i386_oldlstat 84
#define __NR_i386_readlink 85
#define __NR_i386_uselib 86
#define __NR_i386_swapon 87
#define __NR_i386_reboot 88
#define __NR_i386_readdir 89
#define __NR_i386_mmap 90
#define __NR_i386_munmap 91
#define __NR_i386_truncate 92
#define __NR_i386_ftruncate 93
#define __NR_i386_fchmod 94
#define __NR_i386_fchown 95
#define __NR_i386_getpriority 96
#define __NR_i386_setpriority 97
#define __NR_i386_profil 98
#define __NR_i386_statfs 99
#define __NR_i386_fstatfs 100
#define __NR_i386_ioperm 101
#define __NR_i386_socketcall 102
#define __NR_i386_syslog 103
#define __NR_i386_setitimer 104
#define __NR_i386_getitimer 105
#define __NR_i386_stat 106
#define __NR_i386_lstat 107
#define __NR_i386_fstat 108
#define __NR_i386_olduname 109
#define __NR_i386_iopl 110
#define __NR_i386_vhangup 111
#define __NR_i386_idle 112
#define __NR_i386_vm86old 113
#define __NR_i386_wait4 114
#define __NR_i386_swapoff 115
#define __NR_i386_sysinfo 116
#define __NR_i386_ipc 117
#define __NR_i386_fsync 118
#define __NR_i386_sigreturn 119
#define __NR_i386_clone 120
#define __NR_i386_setdomainname 121
#define __NR_i386_uname 122
#define __NR_i386_modify_ldt 123
#define __NR_i386_adjtimex 124
#define __NR_i386_mprotect 125
#define __NR_i386_sigprocmask 126
#define __NR_i386_create_module 127
#define __NR_i386_init_module 128
#define __NR_i386_delete_module 129
#define __NR_i386_get_kernel_syms 130
#define __NR_i386_quotactl 131
#define __NR_i386_getpgid 132
#define __NR_i386_fchdir 133
#define __NR_i386_bdflush 134
#define __NR_i386_sysfs 135
#define __NR_i386_personality 136
#define __NR_i386_afs_syscall 137
#define __NR_i386_setfsuid 138
#define __NR_i386_setfsgid 139
#define __NR_i386__llseek 140
#define __NR_i386_getdents 141
#define __NR_i386__newselect 142
#define __NR_i386_flock 143
#define __NR_i386_msync 144
#define __NR_i386_readv 145
#define __NR_i386_writev 146
#define __NR_i386_getsid 147
#define __NR_i386_fdatasync 148
#define __NR_i386__sysctl 149
#define __NR_i386_mlock 150
#define __NR_i386_munlock 151
#define __NR_i386_mlockall 152
#define __NR_i386_munlockall 153
#define __NR_i386_sched_setparam 154
#define __NR_i386_sched_getparam 155
#define __NR_i386_sched_setscheduler 156
#define __NR_i386_sched_getscheduler 157
#define __NR_i386_sched_yield 158
#define __NR_i386_sched_get_priority_max 159
#define __NR_i386_sched_get_priority_min 160
#define __NR_i386_sched_rr_get_interval 161
#define __NR_i386_nanosleep 162
#define __NR_i386_mremap 163
#define __NR_i386_setresuid 164
#define __NR_i386_getresuid 165
#define __NR_i386_vm86 166
#define __NR_i386_query_module 167
#define __NR_i386_poll 168
#define __NR_i386_nfsservctl 169
#define __NR_i386_setresgid 170
#define __NR_i386_getresgid 171
#define __NR_i386_prctl 172
#define __NR_i386_rt_sigreturn 173
#define __NR_i386_rt_sigaction 174
#define __NR_i386_rt_sigprocmask 175
#define __NR_i386_rt_sigpending 176
#define __NR_i386_rt_sigtimedwait 177
#define __NR_i386_rt_sigqueueinfo 178
#define __NR_i386_rt_sigsuspend 179
#define __NR_i386_pread64 180
#define __NR_i386_pwrite64 181
#define __NR_i386_chown 182
#define __NR_i386_getcwd 183
#define __NR_i386_capget 184
#define __NR_i386_capset 185
#define __NR_i386_sigaltstack 186
#define __NR_i386_sendfile 187
#define __NR_i386_getpmsg 188
#define __NR_i386_putpmsg 189
#define __NR_i386_vfork 190
#define __NR_i386_ugetrlimit 191
#define __NR_i386_mmap2 192
#define __NR_i386_truncate64 193
#define __NR_i386_ftruncate64 194
#define __NR_i386_stat64 195
#define __NR_i386_lstat64 196
#define __NR_i386_fstat64 197
#define __NR_i386_lchown32 198
#define __NR_i386_getuid32 199
#define __NR_i386_getgid32 200
#define __NR_i386_geteuid32 201
#define __NR_i386_getegid32 202
#define __NR_i386_setreuid32 203
#define __NR_i386_setregid32 204
#define __NR_i386_getgroups32 205
#define __NR_i386_setgroups32 206
#define __NR_i386_fchown32 207
#define __NR_i386_setresuid32 208
#define __NR_i386_getresuid32 209
#define __NR_i386_setresgid32 210
#define __NR_i386_getresgid32 211
#define __NR_i386_chown32 212
#define __NR_i386_setuid32 213
#define __NR_i386_setgid32 214
#define __NR_i386_setfsuid32 215
#define __NR_i386_setfsgid32 216
#define __NR_i386_pivot_root 217
#define __NR_i386_mincore 218
#define __NR_i386_madvise 219
#define __NR_i386_getdents64 220
#define __NR_i386_fcntl64 221
#define __NR_i386_gettid 224
#define __NR_i386_readahead 225
#define __NR_i386_setxattr 226
#define __NR_i386_lsetxattr 227
#define __NR_i386_fsetxattr 228
#define __NR_i386_getxattr 229
#define __NR_i386_lgetxattr 230
#define __NR_i386_fgetxattr 231
#define __NR_i386_listxattr 232
#define __NR_i386_llistxattr 233
#define __NR_i386_flistxattr 234
#define __NR_i386_removexattr 235
#define __NR_i386_lremovexattr 236
#define __NR_i386_fremovexattr 237
#define __NR_i386_tkill 238
#define __NR_i386_sendfile64 239
#define __NR_i386_futex 240
#define __NR_i386_sched_setaffinity 241
#define __NR_i386_sched_getaffinity 242
#define __NR_i386_set_thread_area 243
#define __NR_i386_get_thread_area 244
#define __NR_i386_io_setup 245
#define __NR_i386_io_destroy 246
#define __NR_i386_io_getevents 247
#define __NR_i386_io_submit 248
#define __NR_i386_io_cancel 249
#define __NR_i386_fadvise64 250
#define __NR_i386_set_zone_reclaim 251 /* removed in 2.6.16 */
#define __NR_i386_exit_group 252
#define __NR_i386_lookup_dcookie 253
#define __NR_i386_epoll_create 254
#define __NR_i386_epoll_ctl 255
#define __NR_i386_epoll_wait 256
#define __NR_i386_remap_file_pages 257
#define __NR_i386_set_tid_address 258
#define __NR_i386_timer_create 259
#define __NR_i386_timer_settime32 260
#define __NR_i386_timer_gettime32 261
#define __NR_i386_timer_getoverrun 262
#define __NR_i386_timer_delete 263
#define __NR_i386_clock_settime32 264
#define __NR_i386_clock_gettime32 265
#define __NR_i386_clock_getres_time32 266
#define __NR_i386_clock_nanosleep_time32 267
#define __NR_i386_statfs64 268
#define __NR_i386_fstatfs64 269
#define __NR_i386_tgkill 270
#define __NR_i386_utimes 271
#define __NR_i386_fadvise64_64 272
#define __NR_i386_vserver 273
#define __NR_i386_mbind 274
#define __NR_i386_get_mempolicy 275
#define __NR_i386_set_mempolicy 276
#define __NR_i386_mq_open 277
#define __NR_i386_mq_unlink 278
#define __NR_i386_mq_timedsend 279
#define __NR_i386_mq_timedreceive 280
#define __NR_i386_mq_notify 281
#define __NR_i386_mq_getsetattr 282
#define __NR_i386_kexec_load 283
#define __NR_i386_waitid 284
#define __NR_i386_sys_setaltroot 285
#define __NR_i386_add_key 286
#define __NR_i386_request_key 287
#define __NR_i386_keyctl 288
#define __NR_i386_ioprio_set 289
#define __NR_i386_ioprio_get 290
#define __NR_i386_inotify_init 291
#define __NR_i386_inotify_add_watch 292
#define __NR_i386_inotify_rm_watch 293
#define __NR_i386_migrate_pages 294
#define __NR_i386_openat 295
#define __NR_i386_mkdirat 296
#define __NR_i386_mknodat 297
#define __NR_i386_fchownat 298
#define __NR_i386_futimesat 299
#define __NR_i386_fstatat64 300
#define __NR_i386_unlinkat 301
#define __NR_i386_renameat 302
#define __NR_i386_linkat 303
#define __NR_i386_symlinkat 304
#define __NR_i386_readlinkat 305
#define __NR_i386_fchmodat 306
#define __NR_i386_faccessat 307
#define __NR_i386_pselect6 308
#define __NR_i386_ppoll 309
#define __NR_i386_unshare 310
#define __NR_i386_set_robust_list 311
#define __NR_i386_get_robust_list 312
#define __NR_i386_splice 313
#define __NR_i386_sync_file_range 314
#define __NR_i386_tee 315
#define __NR_i386_vmsplice 316
#define __NR_i386_move_pages 317
#define __NR_i386_getcpu 318
#define __NR_i386_epoll_pwait 319
#define __NR_i386_utimensat 320
#define __NR_i386_signalfd 321
#define __NR_i386_timerfd_create 322
#define __NR_i386_eventfd 323
#define __NR_i386_fallocate 324
#define __NR_i386_timerfd_settime32 325
#define __NR_i386_timerfd_gettime32 326
#define __NR_i386_signalfd4 327
#define __NR_i386_eventfd2 328
#define __NR_i386_epoll_create1 329
#define __NR_i386_dup3 330
#define __NR_i386_pipe2 331
#define __NR_i386_inotify_init1 332
#define __NR_i386_preadv 333
#define __NR_i386_pwritev 334
#define __NR_i386_rt_tgsigqueueinfo 335
#define __NR_i386_perf_event_open 336
#define __NR_i386_recvmmsg 337
#define __NR_i386_fanotify_init 338
#define __NR_i386_fanotify_mark 339
#define __NR_i386_prlimit64 340
#define __NR_i386_name_to_handle_at 341
#define __NR_i386_open_by_handle_at 342
#define __NR_i386_clock_adjtime 343
#define __NR_i386_syncfs 344
#define __NR_i386_sendmmsg 345
#define __NR_i386_setns 346
#define __NR_i386_process_vm_readv 347
#define __NR_i386_process_vm_writev 348
#define __NR_i386_kcmp 349
#define __NR_i386_finit_module 350
#define __NR_i386_sched_setattr 351
#define __NR_i386_sched_getattr 352
#define __NR_i386_renameat2 353
#define __NR_i386_seccomp 354
#define __NR_i386_getrandom 355
#define __NR_i386_memfd_create 356
#define __NR_i386_bpf 357
#define __NR_i386_execveat 358
#define __NR_i386_socket 359
#define __NR_i386_socketpair 360
#define __NR_i386_bind 361
#define __NR_i386_connect 362
#define __NR_i386_listen 363
#define __NR_i386_accept4 364
#define __NR_i386_getsockopt 365
#define __NR_i386_setsockopt 366
#define __NR_i386_getsockname 367
#define __NR_i386_getpeername 368
#define __NR_i386_sendto 369
#define __NR_i386_sendmsg 370
#define __NR_i386_recvfrom 371
#define __NR_i386_recvmsg 372
#define __NR_i386_shutdown 373
#define __NR_i386_userfaultfd 374
#define __NR_i386_membarrier 375
#define __NR_i386_mlock2 376
#define __NR_i386_copy_file_range 377
#define __NR_i386_preadv2 378
#define __NR_i386_pwritev2 379
#define __NR_i386_pkey_mprotect 380
#define __NR_i386_pkey_alloc 381
#define __NR_i386_pkey_free 382
#define __NR_i386_statx 383
#define __NR_i386_arch_prctl 384
#define __NR_i386_io_pgetevents 385
#define __NR_i386_rseq 386
#define __NR_i386_semget 393
#define __NR_i386_semctl 394
#define __NR_i386_shmget 395
#define __NR_i386_shmctl 396
#define __NR_i386_shmat 397
#define __NR_i386_shmdt 398
#define __NR_i386_msgget 399
#define __NR_i386_msgsnd 400
#define __NR_i386_msgrcv 401
#define __NR_i386_msgctl 402
#define __NR_i386_clock_gettime64 403
#define __NR_i386_clock_settime64 404
#define __NR_i386_clock_adjtime64 405
#define __NR_i386_clock_getres_time64 406
#define __NR_i386_clock_nanosleep_time64 407
#define __NR_i386_timer_gettime64 408
#define __NR_i386_timer_settime64 409
#define __NR_i386_timerfd_gettime64 410
#define __NR_i386_timerfd_settime64 411
#define __NR_i386_utimensat_time64 412
#define __NR_i386_pselect6_time64 413
#define __NR_i386_ppoll_time64 414
#define __NR_i386_io_pgetevents_time64 416
#define __NR_i386_recvmmsg_time64 417
#define __NR_i386_mq_timedsend_time64 418
#define __NR_i386_mq_timedreceive_time64 419
#define __NR_i386_semtimedop_time64 420
#define __NR_i386_rt_sigtimedwait_time64 421
#define __NR_i386_futex_time64 422
#define __NR_i386_sched_rr_get_interval_time64 423
#define __NR_i386_pidfd_send_signal 424
#define __NR_i386_io_uring_setup 425
#define __NR_i386_io_uring_enter 426
#define __NR_i386_io_uring_register 427
#define __NR_i386_open_tree 428
#define __NR_i386_move_mount 429
#define __NR_i386_fsopen 430
#define __NR_i386_fsconfig 431
#define __NR_i386_fsmount 432
#define __NR_i386_fspick 433
#define __NR_i386_pidfd_open 434
#define __NR_i386_clone3 435
#define __NR_i386_close_range 436
#define __NR_i386_openat2 437
#define __NR_i386_pidfd_getfd 438
#define __NR_i386_faccessat2 439
#define __NR_i386_process_madvise 440
#define __NR_i386_epoll_pwait2 441
#define __NR_i386_mount_setattr 442
#define __NR_i386_landlock_create_ruleset 444
#define __NR_i386_landlock_add_rule 445
#define __NR_i386_landlock_restrict_self 446
#endif // !__FENNIX_KERNEL_LINUX_SYSCALLS_I386_H__