mes/lib/linux
W. J. van der Laan 04e6fdad13 lib: General Linux RISC-V64 syscall support.
* include/linux/riscv32/kernel-stat.h,
include/linux/riscv64/kernel-stat.h: New files.
* include/fcntl.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Add
necessary constants.
* include/stdint.h: Integer size defines for RISC-V.
* include/sys/stat.h: "stat" struct for RISC-V.
* lib/linux/_open3.c (_open3)[!SYS_open]: Use SYS_openat.
* lib/linux/access.c (access)[!SYS_access]: Use SYS_faccessat.
* lib/linux/chmod.c (chmod)[!SYS_chmod]: Use SYS_fchmodat.
* lib/linux/dup2.c (dup2)[!SYS_dup2]: Use if SYS_dup3.
* lib/linux/fork.c (fork)[!SYS_fork]: Use SYS_clone.
* lib/linux/getdents.c (getdents)[!SYS_getdents]: Use SYS_getdents64.
* lib/linux/link.c (link)[!SYS_link]: Use SYS_linkat.
* lib/linux/lstat.c (lstat)[!SYS_lstat]: Use SYS_newfstatat.
* lib/linux/mkdir.c (mkdir)[!SYS_mkdir]: Use SYS_mkdirat.
* lib/linux/mknod.c (mknod)[!SYS_mknod]: Use SYS_mknodat.
* lib/linux/pipe.c (pipe)[!SYS_pipe]: Use SYS_pipe2.
* lib/linux/readlink.c (readlink)[!SYS_readlinkat]: Use SYS_readlinkat.
* lib/linux/rename.c (rename)[!SYS_rename]: Use SYS_renameat2.
* lib/linux/rmdir.c (rmdir)[!SYS_rmdir]: Use SYS_unlinkat.
* lib/linux/signal.c (_restorer_for_siginfo): Remove unused function
that causes compilation issue.
* lib/linux/stat.c (stat)[!SYS_stat]: Use SYS_newfstatat.
* lib/linux/symlink.c (symlink)[!SYS_symlinkat]: Use SYS_symlink.
* lib/linux/unlink.c (unlink)[!SYS_unlink]: Use SYS_unlinkat.
2023-11-05 09:39:29 +01:00
..
arm-mes Add ARM linker support files. 2020-06-02 20:27:52 +02:00
arm-mes-gcc mescc: Mes C Library: ARM: syscall.c: Inline fake asm. 2021-01-23 08:43:46 +01:00
arm-mes-m2 ARM: build: Cater for M2-Planet. 2022-04-30 22:51:42 +02:00
arm-mes-mescc mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
riscv64-mes lib: Make Linux scaffold work for RISC-V64. 2023-11-05 09:39:29 +01:00
riscv64-mes-gcc lib: Add _sys_call_5 for Linux RISC-V64. 2023-11-05 09:39:29 +01:00
x86-mes DRAFT lib: Make objdump work on binaries in x86-linux. 2023-11-05 09:39:06 +01:00
x86-mes-gcc mescc: Mes C Library: crt: Support more than 255 command line parameters. 2021-05-02 14:22:21 +02:00
x86-mes-m2 kaem: scaffold/read.kaem. 2020-07-15 22:27:57 +02:00
x86-mes-mescc mescc: Mes C Library: crt: Support more than 255 command line parameters. 2021-05-02 14:22:21 +02:00
x86_64-mes DRAFT lib: Make objdump work on binaries in x86_64-linux. 2023-11-05 09:39:00 +01:00
x86_64-mes-gcc mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
x86_64-mes-m2 x86_64: build: Cater for M2-Planet. 2023-11-05 09:36:26 +01:00
x86_64-mes-mescc mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
_getcwd.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
_open3.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
_read.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
access.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
brk.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
chdir.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
chmod.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
clock_gettime.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
close.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
dup.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
dup2.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
execve.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fcntl.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fork.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
fstat.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fsync.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getdents.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
getegid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
geteuid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getgid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getpid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getppid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getrusage.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
gettimeofday.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getuid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
ioctl.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
ioctl3.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
kill.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
link.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
lseek.c kaem.run: Remove --bootstrap-mode. 2023-05-03 08:03:48 +02:00
lstat.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
malloc.c kaem: read: Remove --bootstrap-mode. 2023-05-02 10:22:45 +02:00
mkdir.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
mknod.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
nanosleep.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
open.c kaem.run: Remove --bootstrap-mode. 2023-05-03 08:03:48 +02:00
pipe.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
read.c kaem: read: Remove --bootstrap-mode. 2023-05-02 10:22:45 +02:00
readlink.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
rename.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
rmdir.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
setgid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
settimer.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
setuid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
signal.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
sigprogmask.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
stat.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
symlink.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
time.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
unlink.c lib: General Linux RISC-V64 syscall support. 2023-11-05 09:39:29 +01:00
wait4.c lib: linux: Add wait4. 2023-05-03 08:04:32 +02:00
waitpid.c lib: linux: Add wait4. 2023-05-03 08:04:32 +02:00