mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 18:39:16 +00:00
Merge remote-tracking branch 'Kernel/master'
This commit is contained in:
381
Kernel/subsystem/linux/include/defs.hpp
Normal file
381
Kernel/subsystem/linux/include/defs.hpp
Normal 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_DEFS_H__
|
||||
#define __FENNIX_KERNEL_LINUX_DEFS_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#define linux_SEEK_SET 0
|
||||
#define linux_SEEK_CUR 1
|
||||
#define linux_SEEK_END 2
|
||||
|
||||
#define linux_ARCH_SET_GS 0x1001
|
||||
#define linux_ARCH_SET_FS 0x1002
|
||||
#define linux_ARCH_GET_FS 0x1003
|
||||
#define linux_ARCH_GET_GS 0x1004
|
||||
|
||||
#define linux_ARCH_GET_CPUID 0x1011
|
||||
#define linux_ARCH_SET_CPUID 0x1012
|
||||
|
||||
#define linux_ARCH_GET_XCOMP_SUPP 0x1021
|
||||
#define linux_ARCH_GET_XCOMP_PERM 0x1022
|
||||
#define linux_ARCH_REQ_XCOMP_PERM 0x1023
|
||||
#define linux_ARCH_GET_XCOMP_GUEST_PERM 0x1024
|
||||
#define linux_ARCH_REQ_XCOMP_GUEST_PERM 0x1025
|
||||
|
||||
#define linux_ARCH_XCOMP_TILECFG 17
|
||||
#define linux_ARCH_XCOMP_TILEDATA 18
|
||||
|
||||
#define linux_ARCH_MAP_VDSO_X32 0x2001
|
||||
#define linux_ARCH_MAP_VDSO_32 0x2002
|
||||
#define linux_ARCH_MAP_VDSO_64 0x2003
|
||||
|
||||
#define linux_ARCH_GET_UNTAG_MASK 0x4001
|
||||
#define linux_ARCH_ENABLE_TAGGED_ADDR 0x4002
|
||||
#define linux_ARCH_GET_MAX_TAG_BITS 0x4003
|
||||
#define linux_ARCH_FORCE_TAGGED_SVA 0x4004
|
||||
|
||||
#define linux_PROT_NONE 0
|
||||
#define linux_PROT_READ 1
|
||||
#define linux_PROT_WRITE 2
|
||||
#define linux_PROT_EXEC 4
|
||||
#define linux_PROT_GROWSDOWN 0x01000000
|
||||
#define linux_PROT_GROWSUP 0x02000000
|
||||
|
||||
#define linux_MAP_TYPE 0x0f
|
||||
|
||||
#define linux_MAP_FILE 0
|
||||
#define linux_MAP_SHARED 0x01
|
||||
#define linux_MAP_PRIVATE 0x02
|
||||
#define linux_MAP_SHARED_VALIDATE 0x03
|
||||
#define linux_MAP_FIXED 0x10
|
||||
#define linux_MAP_ANONYMOUS 0x20
|
||||
#define linux_MAP_NORESERVE 0x4000
|
||||
#define linux_MAP_GROWSDOWN 0x0100
|
||||
#define linux_MAP_DENYWRITE 0x0800
|
||||
#define linux_MAP_EXECUTABLE 0x1000
|
||||
#define linux_MAP_LOCKED 0x2000
|
||||
#define linux_MAP_POPULATE 0x8000
|
||||
#define linux_MAP_NONBLOCK 0x10000
|
||||
#define linux_MAP_STACK 0x20000
|
||||
#define linux_MAP_HUGETLB 0x40000
|
||||
#define linux_MAP_SYNC 0x80000
|
||||
#define linux_MAP_FIXED_NOREPLACE 0x100000
|
||||
|
||||
#define linux_CLOCK_REALTIME 0
|
||||
#define linux_CLOCK_MONOTONIC 1
|
||||
#define linux_CLOCK_PROCESS_CPUTIME_ID 2
|
||||
#define linux_CLOCK_THREAD_CPUTIME_ID 3
|
||||
#define linux_CLOCK_MONOTONIC_RAW 4
|
||||
#define linux_CLOCK_REALTIME_COARSE 5
|
||||
#define linux_CLOCK_MONOTONIC_COARSE 6
|
||||
#define linux_CLOCK_BOOTTIME 7
|
||||
#define linux_CLOCK_REALTIME_ALARM 8
|
||||
#define linux_CLOCK_BOOTTIME_ALARM 9
|
||||
#define linux_CLOCK_SGI_CYCLE 10
|
||||
#define linux_CLOCK_TAI 11
|
||||
|
||||
#define linux_GRND_NONBLOCK 0x1
|
||||
#define linux_GRND_RANDOM 0x2
|
||||
#define linux_GRND_INSECURE 0x4
|
||||
|
||||
#define linux_RLIMIT_CPU 0
|
||||
#define linux_RLIMIT_FSIZE 1
|
||||
#define linux_RLIMIT_DATA 2
|
||||
#define linux_RLIMIT_STACK 3
|
||||
#define linux_RLIMIT_CORE 4
|
||||
#define linux_RLIMIT_RSS 5
|
||||
#define linux_RLIMIT_NPROC 6
|
||||
#define linux_RLIMIT_NOFILE 7
|
||||
#define linux_RLIMIT_MEMLOCK 8
|
||||
#define linux_RLIMIT_AS 9
|
||||
#define linux_RLIMIT_LOCKS 10
|
||||
#define linux_RLIMIT_SIGPENDING 11
|
||||
#define linux_RLIMIT_MSGQUEUE 12
|
||||
#define linux_RLIMIT_NICE 13
|
||||
#define linux_RLIMIT_RTPRIO 14
|
||||
#define linux_RLIMIT_RTTIME 15
|
||||
#define linux_RLIMIT_NLIMITS 16
|
||||
|
||||
#define linux_F_DUPFD 0
|
||||
#define linux_F_GETFD 1
|
||||
#define linux_F_SETFD 2
|
||||
#define linux_F_GETFL 3
|
||||
#define linux_F_SETFL 4
|
||||
|
||||
#define linux_F_SETOWN 8
|
||||
#define linux_F_GETOWN 9
|
||||
#define linux_F_SETSIG 10
|
||||
#define linux_F_GETSIG 11
|
||||
|
||||
#if __LONG_MAX == 0x7fffffffL
|
||||
#define linux_F_GETLK 12
|
||||
#define linux_F_SETLK 13
|
||||
#define linux_F_SETLKW 14
|
||||
#else
|
||||
#define linux_F_GETLK 5
|
||||
#define linux_F_SETLK 6
|
||||
#define linux_F_SETLKW 7
|
||||
#endif
|
||||
|
||||
#define linux_F_SETOWN_EX 15
|
||||
#define linux_F_GETOWN_EX 16
|
||||
#define linux_F_GETOWNER_UIDS 17
|
||||
|
||||
#define linux_F_OFD_GETLK 36
|
||||
#define linux_F_OFD_SETLK 37
|
||||
#define linux_F_OFD_SETLKW 38
|
||||
|
||||
#define linux_F_DUPFD_CLOEXEC 1030
|
||||
|
||||
#define linux_FD_CLOEXEC 1
|
||||
|
||||
#define linux_DT_UNKNOWN 0
|
||||
#define linux_DT_FIFO 1
|
||||
#define linux_DT_CHR 2
|
||||
#define linux_DT_DIR 4
|
||||
#define linux_DT_BLK 6
|
||||
#define linux_DT_REG 8
|
||||
#define linux_DT_LNK 10
|
||||
#define linux_DT_SOCK 12
|
||||
#define linux_DT_WHT 14
|
||||
|
||||
#define linux_AT_FDCWD (-100)
|
||||
#define linux_AT_SYMLINK_NOFOLLOW 0x100
|
||||
#define linux_AT_REMOVEDIR 0x200
|
||||
#define linux_AT_SYMLINK_FOLLOW 0x400
|
||||
#define linux_AT_EACCESS 0x200
|
||||
#define linux_AT_NO_AUTOMOUNT 0x800
|
||||
#define linux_AT_EMPTY_PATH 0x1000
|
||||
#define linux_AT_STATX_SYNC_TYPE 0x6000
|
||||
#define linux_AT_STATX_SYNC_AS_STAT 0x0000
|
||||
#define linux_AT_STATX_FORCE_SYNC 0x2000
|
||||
#define linux_AT_STATX_DONT_SYNC 0x4000
|
||||
#define linux_AT_RECURSIVE 0x8000
|
||||
|
||||
#define linux_LINUX_REBOOT_MAGIC1 0xfee1dead
|
||||
#define linux_LINUX_REBOOT_MAGIC2 0x28121969
|
||||
#define linux_LINUX_REBOOT_MAGIC2A 0x05121996
|
||||
#define linux_LINUX_REBOOT_MAGIC2B 0x16041998
|
||||
#define linux_LINUX_REBOOT_MAGIC2C 0x20112000
|
||||
|
||||
#define linux_LINUX_REBOOT_CMD_RESTART 0x01234567
|
||||
#define linux_LINUX_REBOOT_CMD_HALT 0xCDEF0123
|
||||
#define linux_LINUX_REBOOT_CMD_CAD_ON 0x89ABCDEF
|
||||
#define linux_LINUX_REBOOT_CMD_CAD_OFF 0x00000000
|
||||
#define linux_LINUX_REBOOT_CMD_POWER_OFF 0x4321FEDC
|
||||
#define linux_LINUX_REBOOT_CMD_RESTART2 0xA1B2C3D4
|
||||
#define linux_LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2
|
||||
#define linux_LINUX_REBOOT_CMD_KEXEC 0x45584543
|
||||
|
||||
#define linux_SA_IMMUTABLE 0x00800000
|
||||
|
||||
#define linux_ITIMER_REAL 0
|
||||
#define linux_ITIMER_VIRTUAL 1
|
||||
#define linux_ITIMER_PROF 2
|
||||
|
||||
#define linux_RUSAGE_SELF 0
|
||||
#define linux_RUSAGE_CHILDREN (-1)
|
||||
#define linux_RUSAGE_THREAD 1
|
||||
|
||||
typedef long __kernel_long_t;
|
||||
typedef unsigned long __kernel_ulong_t;
|
||||
typedef long __kernel_old_time_t;
|
||||
typedef long __kernel_suseconds_t;
|
||||
typedef unsigned long timeu64_t;
|
||||
typedef int clockid_t;
|
||||
typedef long time64_t;
|
||||
|
||||
struct f_owner_ex
|
||||
{
|
||||
int type;
|
||||
pid_t pid;
|
||||
};
|
||||
|
||||
struct iovec
|
||||
{
|
||||
void *iov_base;
|
||||
size_t iov_len;
|
||||
};
|
||||
|
||||
struct timeval
|
||||
{
|
||||
__kernel_old_time_t tv_sec;
|
||||
__kernel_suseconds_t tv_usec;
|
||||
};
|
||||
|
||||
struct timespec64
|
||||
{
|
||||
time64_t tv_sec;
|
||||
long tv_nsec;
|
||||
};
|
||||
|
||||
struct itimerspec64
|
||||
{
|
||||
struct timespec64 it_interval;
|
||||
struct timespec64 it_value;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
struct linux_dirent
|
||||
{
|
||||
unsigned long d_ino;
|
||||
unsigned long d_off;
|
||||
unsigned short d_reclen;
|
||||
char d_name[];
|
||||
/**
|
||||
* Getting d_type is not the same as linux_dirent64:
|
||||
* https://github.com/torvalds/linux/blob/bfa8f18691ed2e978e4dd51190569c434f93e268/fs/readdir.c#L296
|
||||
* "man 2 getdents" also is helpful
|
||||
*/
|
||||
};
|
||||
|
||||
struct linux_dirent64
|
||||
{
|
||||
ino64_t d_ino;
|
||||
off64_t d_off;
|
||||
unsigned short d_reclen;
|
||||
unsigned char d_type;
|
||||
char d_name[];
|
||||
};
|
||||
|
||||
struct linux_kstat
|
||||
{
|
||||
#if defined(a64)
|
||||
__kernel_ulong_t st_dev;
|
||||
__kernel_ulong_t st_ino;
|
||||
__kernel_ulong_t st_nlink;
|
||||
unsigned int st_mode;
|
||||
unsigned int st_uid;
|
||||
unsigned int st_gid;
|
||||
unsigned int __pad0;
|
||||
__kernel_ulong_t st_rdev;
|
||||
__kernel_long_t st_size;
|
||||
__kernel_long_t st_blksize;
|
||||
__kernel_long_t st_blocks;
|
||||
__kernel_ulong_t st_atime;
|
||||
__kernel_ulong_t st_atime_nsec;
|
||||
__kernel_ulong_t st_mtime;
|
||||
__kernel_ulong_t st_mtime_nsec;
|
||||
__kernel_ulong_t st_ctime;
|
||||
__kernel_ulong_t st_ctime_nsec;
|
||||
#undef __unused
|
||||
__kernel_long_t __unused[3];
|
||||
#elif defined(a32)
|
||||
unsigned long st_dev;
|
||||
unsigned long st_ino;
|
||||
unsigned short st_mode;
|
||||
unsigned short st_nlink;
|
||||
unsigned short st_uid;
|
||||
unsigned short st_gid;
|
||||
unsigned long st_rdev;
|
||||
unsigned long st_size;
|
||||
unsigned long st_blksize;
|
||||
unsigned long st_blocks;
|
||||
unsigned long st_atime;
|
||||
unsigned long st_atime_nsec;
|
||||
unsigned long st_mtime;
|
||||
unsigned long st_mtime_nsec;
|
||||
unsigned long st_ctime;
|
||||
unsigned long st_ctime_nsec;
|
||||
unsigned long __unused4;
|
||||
unsigned long __unused5;
|
||||
#else
|
||||
#error "Unsupported architecture"
|
||||
#endif
|
||||
};
|
||||
|
||||
struct linux_kstat64
|
||||
{
|
||||
unsigned long long st_dev;
|
||||
unsigned char __pad0[4];
|
||||
unsigned long __st_ino;
|
||||
unsigned int st_mode;
|
||||
unsigned int st_nlink;
|
||||
unsigned long st_uid;
|
||||
unsigned long st_gid;
|
||||
unsigned long long st_rdev;
|
||||
unsigned char __pad3[4];
|
||||
long long st_size;
|
||||
unsigned long st_blksize;
|
||||
unsigned long long st_blocks;
|
||||
unsigned long st_atime;
|
||||
unsigned long st_atime_nsec;
|
||||
unsigned long st_mtime;
|
||||
unsigned int st_mtime_nsec;
|
||||
unsigned long st_ctime;
|
||||
unsigned long st_ctime_nsec;
|
||||
unsigned long long st_ino;
|
||||
};
|
||||
|
||||
struct __old_kernel_stat
|
||||
{
|
||||
unsigned short st_dev;
|
||||
unsigned short st_ino;
|
||||
unsigned short st_mode;
|
||||
unsigned short st_nlink;
|
||||
unsigned short st_uid;
|
||||
unsigned short st_gid;
|
||||
unsigned short st_rdev;
|
||||
#ifdef __i386__
|
||||
unsigned long st_size;
|
||||
unsigned long st_atime;
|
||||
unsigned long st_mtime;
|
||||
unsigned long st_ctime;
|
||||
#else
|
||||
unsigned int st_size;
|
||||
unsigned int st_atime;
|
||||
unsigned int st_mtime;
|
||||
unsigned int st_ctime;
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct cpu_set_t
|
||||
{
|
||||
unsigned long __bits[128 / sizeof(long)];
|
||||
} cpu_set_t;
|
||||
|
||||
#define CPU_SETSIZE 1024
|
||||
|
||||
#define CPU_BIT_OP(i, size, set, operation) \
|
||||
((i) / 8U >= (size) ? 0 : (((unsigned long *)(set))[(i) / (8 * sizeof(unsigned long))] operation(1UL << ((i) % (8 * sizeof(unsigned long))))))
|
||||
|
||||
#define CPU_ISSET(i, set) CPU_BIT_OP(i, sizeof(cpu_set_t), set, &)
|
||||
#define CPU_SET(i, set) CPU_BIT_OP(i, sizeof(cpu_set_t), set, |=)
|
||||
#define CPU_ZERO(set) (memset((set), 0, sizeof(cpu_set_t)))
|
||||
|
||||
#endif // !__FENNIX_KERNEL_LINUX_DEFS_H__
|
408
Kernel/subsystem/linux/include/errno.h
Normal file
408
Kernel/subsystem/linux/include/errno.h
Normal file
@ -0,0 +1,408 @@
|
||||
/*
|
||||
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_ERRNO_H__
|
||||
#define __FENNIX_KERNEL_LINUX_ERRNO_H__
|
||||
|
||||
/** Operation not permitted */
|
||||
#define linux_EPERM 1
|
||||
|
||||
/** No such file or directory */
|
||||
#define linux_ENOENT 2
|
||||
|
||||
/** No such process */
|
||||
#define linux_ESRCH 3
|
||||
|
||||
/** Interrupted system call */
|
||||
#define linux_EINTR 4
|
||||
|
||||
/** I/O error */
|
||||
#define linux_EIO 5
|
||||
|
||||
/** No such device or address */
|
||||
#define linux_ENXIO 6
|
||||
|
||||
/** Argument list too long */
|
||||
#define linux_E2BIG 7
|
||||
|
||||
/** Exec format error */
|
||||
#define linux_ENOEXEC 8
|
||||
|
||||
/** Bad file number */
|
||||
#define linux_EBADF 9
|
||||
|
||||
/** No child processes */
|
||||
#define linux_ECHILD 10
|
||||
|
||||
/** Try again */
|
||||
#define linux_EAGAIN 11
|
||||
|
||||
/** Out of memory */
|
||||
#define linux_ENOMEM 12
|
||||
|
||||
/** Permission denied */
|
||||
#define linux_EACCES 13
|
||||
|
||||
/** Bad address */
|
||||
#define linux_EFAULT 14
|
||||
|
||||
/** Block device required */
|
||||
#define linux_ENOTBLK 15
|
||||
|
||||
/** Device or resource busy */
|
||||
#define linux_EBUSY 16
|
||||
|
||||
/** File exists */
|
||||
#define linux_EEXIST 17
|
||||
|
||||
/** Cross-device link */
|
||||
#define linux_EXDEV 18
|
||||
|
||||
/** No such device */
|
||||
#define linux_ENODEV 19
|
||||
|
||||
/** Not a directory */
|
||||
#define linux_ENOTDIR 20
|
||||
|
||||
/** Is a directory */
|
||||
#define linux_EISDIR 21
|
||||
|
||||
/** Invalid argument */
|
||||
#define linux_EINVAL 22
|
||||
|
||||
/** File table overflow */
|
||||
#define linux_ENFILE 23
|
||||
|
||||
/** Too many open files */
|
||||
#define linux_EMFILE 24
|
||||
|
||||
/** Not a typewriter */
|
||||
#define linux_ENOTTY 25
|
||||
|
||||
/** Text file busy */
|
||||
#define linux_ETXTBSY 26
|
||||
|
||||
/** File too large */
|
||||
#define linux_EFBIG 27
|
||||
|
||||
/** No space left on device */
|
||||
#define linux_ENOSPC 28
|
||||
|
||||
/** Illegal seek */
|
||||
#define linux_ESPIPE 29
|
||||
|
||||
/** Read-only file system */
|
||||
#define linux_EROFS 30
|
||||
|
||||
/** Too many links */
|
||||
#define linux_EMLINK 31
|
||||
|
||||
/** Broken pipe */
|
||||
#define linux_EPIPE 32
|
||||
|
||||
/** Math argument out of domain of func */
|
||||
#define linux_EDOM 33
|
||||
|
||||
/** Math result not representable */
|
||||
#define linux_ERANGE 34
|
||||
|
||||
/** Resource deadlock would occur */
|
||||
#define linux_EDEADLK 35
|
||||
|
||||
/** File name too long */
|
||||
#define linux_ENAMETOOLONG 36
|
||||
|
||||
/** No record locks available */
|
||||
#define linux_ENOLCK 37
|
||||
|
||||
/** Function not implemented */
|
||||
#define linux_ENOSYS 38
|
||||
|
||||
/** Directory not empty */
|
||||
#define linux_ENOTEMPTY 39
|
||||
|
||||
/** Too many symbolic links encountered */
|
||||
#define linux_ELOOP 40
|
||||
|
||||
/** No message of desired type */
|
||||
#define linux_ENOMSG 42
|
||||
|
||||
/** Identifier removed */
|
||||
#define linux_EIDRM 43
|
||||
|
||||
/** Channel number out of range */
|
||||
#define linux_ECHRNG 44
|
||||
|
||||
/** Level 2 not synchronized */
|
||||
#define linux_EL2NSYNC 45
|
||||
|
||||
/** Level 3 halted */
|
||||
#define linux_EL3HLT 46
|
||||
|
||||
/** Level 3 reset */
|
||||
#define linux_EL3RST 47
|
||||
|
||||
/** Link number out of range */
|
||||
#define linux_ELNRNG 48
|
||||
|
||||
/** Protocol driver not attached */
|
||||
#define linux_EUNATCH 49
|
||||
|
||||
/** No CSI structure available */
|
||||
#define linux_ENOCSI 50
|
||||
|
||||
/** Level 2 halted */
|
||||
#define linux_EL2HLT 51
|
||||
|
||||
/** Invalid exchange */
|
||||
#define linux_EBADE 52
|
||||
|
||||
/** Invalid request descriptor */
|
||||
#define linux_EBADR 53
|
||||
|
||||
/** Exchange full */
|
||||
#define linux_EXFULL 54
|
||||
|
||||
/** No anode */
|
||||
#define linux_ENOANO 55
|
||||
|
||||
/** Invalid request code */
|
||||
#define linux_EBADRQC 56
|
||||
|
||||
/** Invalid slot */
|
||||
#define linux_EBADSLT 57
|
||||
|
||||
/** Bad font file format */
|
||||
#define linux_EBFONT 59
|
||||
|
||||
/** Device not a stream */
|
||||
#define linux_ENOSTR 60
|
||||
|
||||
/** No data available */
|
||||
#define linux_ENODATA 61
|
||||
|
||||
/** Timer expired */
|
||||
#define linux_ETIME 62
|
||||
|
||||
/** Out of streams resources */
|
||||
#define linux_ENOSR 63
|
||||
|
||||
/** Machine is not on the network */
|
||||
#define linux_ENONET 64
|
||||
|
||||
/** Package not installed */
|
||||
#define linux_ENOPKG 65
|
||||
|
||||
/** Object is remote */
|
||||
#define linux_EREMOTE 66
|
||||
|
||||
/** Link has been severed */
|
||||
#define linux_ENOLINK 67
|
||||
|
||||
/** Advertise error */
|
||||
#define linux_EADV 68
|
||||
|
||||
/** Srmount error */
|
||||
#define linux_ESRMNT 69
|
||||
|
||||
/** Communication error on send */
|
||||
#define linux_ECOMM 70
|
||||
|
||||
/** Protocol error */
|
||||
#define linux_EPROTO 71
|
||||
|
||||
/** Multihop attempted */
|
||||
#define linux_EMULTIHOP 72
|
||||
|
||||
/** RFS specific error */
|
||||
#define linux_EDOTDOT 73
|
||||
|
||||
/** Not a data message */
|
||||
#define linux_EBADMSG 74
|
||||
|
||||
/** Value too large for defined data type */
|
||||
#define linux_EOVERFLOW 75
|
||||
|
||||
/** Name not unique on network */
|
||||
#define linux_ENOTUNIQ 76
|
||||
|
||||
/** File descriptor in bad state */
|
||||
#define linux_EBADFD 77
|
||||
|
||||
/** Remote address changed */
|
||||
#define linux_EREMCHG 78
|
||||
|
||||
/** Can not access a needed shared library */
|
||||
#define linux_ELIBACC 79
|
||||
|
||||
/** Accessing a corrupted shared library */
|
||||
#define linux_ELIBBAD 80
|
||||
|
||||
/** .lib section in a.out corrupted */
|
||||
#define linux_ELIBSCN 81
|
||||
|
||||
/** Attempting to link in too many shared libraries */
|
||||
#define linux_ELIBMAX 82
|
||||
|
||||
/** Cannot exec a shared library directly */
|
||||
#define linux_ELIBEXEC 83
|
||||
|
||||
/** Illegal byte sequence */
|
||||
#define linux_EILSEQ 84
|
||||
|
||||
/** Interrupted system call should be restarted */
|
||||
#define linux_ERESTART 85
|
||||
|
||||
/** Streams pipe error */
|
||||
#define linux_ESTRPIPE 86
|
||||
|
||||
/** Too many users */
|
||||
#define linux_EUSERS 87
|
||||
|
||||
/** Socket operation on non-socket */
|
||||
#define linux_ENOTSOCK 88
|
||||
|
||||
/** Destination address required */
|
||||
#define linux_EDESTADDRREQ 89
|
||||
|
||||
/** Message too long */
|
||||
#define linux_EMSGSIZE 90
|
||||
|
||||
/** Protocol wrong type for socket */
|
||||
#define linux_EPROTOTYPE 91
|
||||
|
||||
/** Protocol not available */
|
||||
#define linux_ENOPROTOOPT 92
|
||||
|
||||
/** Protocol not supported */
|
||||
#define linux_EPROTONOSUPPORT 93
|
||||
|
||||
/** Socket type not supported */
|
||||
#define linux_ESOCKTNOSUPPORT 94
|
||||
|
||||
/** Operation not supported on transport endpoint */
|
||||
#define linux_EOPNOTSUPP 95
|
||||
|
||||
/** Protocol family not supported */
|
||||
#define linux_EPFNOSUPPORT 96
|
||||
|
||||
/** Address family not supported by protocol */
|
||||
#define linux_EAFNOSUPPORT 97
|
||||
|
||||
/** Address already in use */
|
||||
#define linux_EADDRINUSE 98
|
||||
|
||||
/** Cannot assign requested address */
|
||||
#define linux_EADDRNOTAVAIL 99
|
||||
|
||||
/** Network is down */
|
||||
#define linux_ENETDOWN 100
|
||||
|
||||
/** Network is unreachable */
|
||||
#define linux_ENETUNREACH 101
|
||||
|
||||
/** Network dropped connection because of reset */
|
||||
#define linux_ENETRESET 102
|
||||
|
||||
/** Software caused connection abort */
|
||||
#define linux_ECONNABORTED 103
|
||||
|
||||
/** Connection reset by peer */
|
||||
#define linux_ECONNRESET 104
|
||||
|
||||
/** No buffer space available */
|
||||
#define linux_ENOBUFS 105
|
||||
|
||||
/** Transport endpoint is already connected */
|
||||
#define linux_EISCONN 106
|
||||
|
||||
/** Transport endpoint is not connected */
|
||||
#define linux_ENOTCONN 107
|
||||
|
||||
/** Cannot send after transport endpoint shutdown */
|
||||
#define linux_ESHUTDOWN 108
|
||||
|
||||
/** Too many references: cannot splice */
|
||||
#define linux_ETOOMANYREFS 109
|
||||
|
||||
/** Connection timed out */
|
||||
#define linux_ETIMEDOUT 110
|
||||
|
||||
/** Connection refused */
|
||||
#define linux_ECONNREFUSED 111
|
||||
|
||||
/** Host is down */
|
||||
#define linux_EHOSTDOWN 112
|
||||
|
||||
/** No route to host */
|
||||
#define linux_EHOSTUNREACH 113
|
||||
|
||||
/** Operation already in progress */
|
||||
#define linux_EALREADY 114
|
||||
|
||||
/** Operation now in progress */
|
||||
#define linux_EINPROGRESS 115
|
||||
|
||||
/** Stale NFS file handle */
|
||||
#define linux_ESTALE 116
|
||||
|
||||
/** Structure needs cleaning */
|
||||
#define linux_EUCLEAN 117
|
||||
|
||||
/** Not a XENIX named type file */
|
||||
#define linux_ENOTNAM 118
|
||||
|
||||
/** No XENIX semaphores available */
|
||||
#define linux_ENAVAIL 119
|
||||
|
||||
/** Is a named type file */
|
||||
#define linux_EISNAM 120
|
||||
|
||||
/** Remote I/O error */
|
||||
#define linux_EREMOTEIO 121
|
||||
|
||||
/** Quota exceeded */
|
||||
#define linux_EDQUOT 122
|
||||
|
||||
/** No medium found */
|
||||
#define linux_ENOMEDIUM 123
|
||||
|
||||
/** Wrong medium type */
|
||||
#define linux_EMEDIUMTYPE 124
|
||||
|
||||
/** Operation Canceled */
|
||||
#define linux_ECANCELED 125
|
||||
|
||||
/** Required key not available */
|
||||
#define linux_ENOKEY 126
|
||||
|
||||
/** Key has expired */
|
||||
#define linux_EKEYEXPIRED 127
|
||||
|
||||
/** Key has been revoked */
|
||||
#define linux_EKEYREVOKED 128
|
||||
|
||||
/** Key was rejected by service */
|
||||
#define linux_EKEYREJECTED 129
|
||||
|
||||
/** Owner died */
|
||||
#define linux_EOWNERDEAD 130
|
||||
|
||||
/** State not recoverable */
|
||||
#define linux_ENOTRECOVERABLE 131
|
||||
|
||||
#endif // !__FENNIX_KERNEL_LINUX_ERRNO_H__
|
67
Kernel/subsystem/linux/include/signals.hpp
Normal file
67
Kernel/subsystem/linux/include/signals.hpp
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
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__
|
||||
|
||||
#define linux_NSIG 64
|
||||
|
||||
#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
|
||||
|
||||
#define linux_SIGRTMIN 32
|
||||
#define linux_SIGRTMAX linux_NSIG
|
||||
|
||||
struct k_sigaction
|
||||
{
|
||||
void (*handler)(int);
|
||||
unsigned long flags;
|
||||
void (*restorer)(void);
|
||||
unsigned mask[2];
|
||||
};
|
||||
|
||||
#endif // !__FENNIX_KERNEL_LINUX_SIGNALS_H__
|
379
Kernel/subsystem/linux/include/syscalls_amd64.hpp
Normal file
379
Kernel/subsystem/linux/include/syscalls_amd64.hpp
Normal file
@ -0,0 +1,379 @@
|
||||
/*
|
||||
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__
|
||||
|
||||
#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__
|
459
Kernel/subsystem/linux/include/syscalls_i386.hpp
Normal file
459
Kernel/subsystem/linux/include/syscalls_i386.hpp
Normal 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__
|
18
Kernel/subsystem/linux/rootfs.cpp
Normal file
18
Kernel/subsystem/linux/rootfs.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#include "../../kernel.h"
|
4332
Kernel/subsystem/linux/syscall.cpp
Normal file
4332
Kernel/subsystem/linux/syscall.cpp
Normal file
File diff suppressed because it is too large
Load Diff
18
Kernel/subsystem/windows/rootfs.cpp
Normal file
18
Kernel/subsystem/windows/rootfs.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#include "../../kernel.h"
|
Reference in New Issue
Block a user