0735743f44
build: fix kernel build on different architectures
...
Userspace still fails to compile on non-x86!!!
2025-04-13 13:47:59 +00:00
c7d501b466
build: add support for quiet build mode in CMakeLists
2025-04-12 04:36:16 +00:00
f8f08a11db
refactor: add SYS_DEBUG_REPORT
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-30 18:42:04 +00:00
4e9d25143e
fix(kernel): add LD_LIBRARY_PATH
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-26 02:33:03 +00:00
d251d9d03f
refactor(rootfs): reorganize file structure and remove unnecessary .gitkeep files
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-24 15:33:07 +00:00
0d8c65e44b
feat(userspace/libc): implement functions for porting apps
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-24 00:40:07 +00:00
27356b7826
fix(userspace/libc): mark ABI and build ID notes as used to prevent optimization removal
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-24 00:38:03 +00:00
7087ce7ec5
feat(userspace/libc): implement brk(), chdir() and getcwd()
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-21 02:01:57 +00:00
36bb7b7a88
refactor: sync headers
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-21 02:00:10 +00:00
76b3d30db9
build(userspace/libc): correctly detect linux in cmake
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-21 01:17:44 +00:00
e89e984ccb
feat(userspace/libc): implement access()
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-21 01:17:21 +00:00
dd1ffe0d17
fix(userspace/libc): add .gitkeep to arch directories
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-21 01:16:58 +00:00
a43fac0c2d
feat(kernel/api): add fcntl.h
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-21 01:12:08 +00:00
67a3527e29
fix(userspace): change version of libc and coreutils
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-20 00:10:06 +00:00
7e69b8f82a
feat(userspace/libc): support for linux target
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-17 23:18:54 +00:00
568dffbca1
feat(userspace/libc): add <getopt.h> header
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-16 03:14:14 +00:00
9a82d812d6
feat(userspace/libc): add <regex.h> header
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-16 01:43:57 +00:00
201ace7eec
refactor(userspace): build using cmake
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-15 23:05:17 +00:00
cbc6238d9d
fix(userspace/libc): implement uname()
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-10 22:39:26 +00:00
9f393754f6
feat(kernel/syscalls): implement uname syscall
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-10 22:38:52 +00:00
551853c5d6
fix(userspace/libc): implement gethostname()
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-10 22:05:28 +00:00
6b4faf9f78
fix(userspace/libc): remove stub macros in termios.c
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-10 21:04:53 +00:00
b008b8089c
fix(userspace/libc): missing include <sys/ioctl.h>
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-10 19:32:16 +00:00
67692f2cef
feat(userspace/libc): define TIOC*WINSZ constants in <sys/ioctl.h>
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-10 01:14:18 +00:00
45d34c688f
fix(userspace/libc): fix puts() in interpreter
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-07 02:09:16 +00:00
9e746c52bc
feat(kernel/api): implement arm syscall wrappers
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 23:18:18 +00:00
3740b65263
fix(userspace/libc): add libgcc link to fix softfloat
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 23:17:15 +00:00
77e51a6f2c
feat(userspace/libc): add experimental __aeabi_dcmpun() function
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 18:58:32 +00:00
42b8b6895f
fix(userspace/libc): fix wrong implementation of ioctl()
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 18:54:18 +00:00
e01f488768
feat(kernel/api): implement i386 syscall wrappers
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 17:38:59 +00:00
a0e3993a3f
feat(userspace/libc): implement <math.h> header
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 04:21:06 +00:00
5e0a80fa1c
feat(userspace/libc): implementation <fenv.h> header
...
FIXME: testing required!
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-05 03:23:19 +00:00
68acf428a2
fix(userspace/libc): disable debug info in memory allocation functions
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-03 18:26:00 +00:00
659805960b
fix(userspace/libc): wrong puts() implementation
...
The implementation didn't fully followed the POSIX.1-2024 standard "The puts() function shall write the string pointed to by s, followed by a <newline>, to the standard output stream stdout. The terminating null byte shall not be written."
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-03-03 12:08:39 +00:00
0769a82f4b
feat(userspace/libc): update math functions
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-26 02:10:06 +00:00
f978f2487e
feat(userspace/libc): add math stub functions
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-25 16:17:37 +00:00
7f3b2b4dbb
fix(userspace/libc): fix tzset() function
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 03:26:49 +02:00
f6f46d1bbe
fix(userspace/libc): fix gmtime_r, localtime_r and mktime implementation
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 03:22:47 +02:00
c12ee67592
fix(userspace/libc): handle NULL input in getenv function
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 02:52:11 +02:00
74ff9579f3
fix(userspace/libc): fopen should set buffer_pos to -1
...
This change is a fix for fread() because it needs to pass the if statement: "if (stream->buffer_pos >= stream->buffer_size)"
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 02:43:06 +02:00
d7cbeb9eba
fix(userspace/libc): modify __libc_init and crt0 to initialize "environ"
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-22 02:41:41 +02:00
93e57f5dbe
feat(userspace/libc): add stub termios implementation
...
Stub implementation! This needs a rewrite!
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:45:20 +02:00
db5a42289a
feat(userspace/libc): implement feof() and ferror() functions
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:43:00 +02:00
77136acccd
feat(userspace/libc): implement <time.h> header
...
Not tested enough!
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:42:33 +02:00
4240183fa1
fix(userspace/libc): cast status to int in __check_errno for proper error handling
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-21 02:33:40 +02:00
42f26787fb
feat(userspace/libc): implement getdelim and getline functions
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:20:26 +02:00
8d08ab933a
feat(userspace/libc): implement fstatat, lstat & stat
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:17:19 +02:00
c83c542f5b
feat(userspace/libc): implement fstat()
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:12:02 +02:00
08319ef4c7
docs(syscalls): add documentation for FBIOGET_SCREEN_INFO ioctl
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:09:09 +02:00
f4168e2815
refactor(userspace/libc): implement pthread_sigmask, sigaddset, sigfillset & sigprocmask
...
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
2025-02-20 02:07:40 +02:00