asleepymoon
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 10:20:16 +00:00
6dc51abfc8 libc: Add remove() stub
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 10:17:59 +00:00
81c337cf9a libc: Add struct tm and localtime(), gmtime() stubs
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 10:13:02 +00:00
91969d4d48 libc: strtoul's endptr must not be const
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 10:10:30 +00:00
6e01323e84 Tests: Add tests for srand, atol and atoll
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 10:03:21 +00:00
59d5e9789e Tests: Add a test for atoi()
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 09:57:36 +00:00
1f5f6a5e3b libc: Add strcspn (with a test)
6816a5b11f Scheduler: do not reboot on PID 1 exit if we are in a test
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 09:38:34 +00:00
27a18a608c libc: Implement fgets, fgetc, getc, getchar (with buffered read IO)
51e024588e libc: Update inttypes.h
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 08:28:13 +00:00
0faabe02e5 Kernel, libc: Implement O_CLOEXEC
asleepymoon pushed to main at asleepymoon/Luna 2022-10-22 08:14:51 +00:00
fb88459263 libc: Add all missing errors to strerror()
asleepymoon pushed to main at asleepymoon/Luna 2022-10-21 19:51:14 +00:00
b2f5a0502f Kernel, libc: Implement O_NONBLOCK
asleepymoon pushed to main at asleepymoon/Luna 2022-10-21 19:26:35 +00:00
da61e3648f Kernel: Implement blocking reads
asleepymoon pushed to main at asleepymoon/Luna 2022-10-21 16:39:56 +00:00
43073cfdbb Add new __lc_used macro
asleepymoon pushed to main at asleepymoon/Luna 2022-10-21 16:37:28 +00:00
fcd6d9b9f5 Add FIXME
asleepymoon pushed to main at asleepymoon/Luna 2022-10-21 16:34:47 +00:00
bef9158450 Kernel, libc: Add isatty() and F_ISTTY to fcntl()
93207820b3 libc: Add a few errors to errno.h
62fa773b27 libc: Add dummy argv
6d7a8a0d0b libc: Add very basic strtoul()
bf026d0dea libc: Add bad time() function
Compare 7 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-20 17:32:41 +00:00
0720b3245b sh: Do not backspace if command is empty
asleepymoon pushed to main at asleepymoon/Luna 2022-10-20 17:27:47 +00:00
b69fbd46bf init: Add a Message of the Day
asleepymoon pushed to main at asleepymoon/Luna 2022-10-20 17:12:27 +00:00
bd4c587409 sh: Try to execute programs in /bin if they are not found
a06e1c5a21 VFS: Remove warning when file is not found
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-20 17:03:33 +00:00
f7cf395f71 Kernel, libc: Add access()
asleepymoon pushed to main at asleepymoon/Luna 2022-10-20 16:50:21 +00:00
27448611b3 UserMemory: do not map refs into kernel memory
712f4f5e51 KernelHeap: Add more debug logging
9d0dfbaedf PMM: Log invalid frees
073c90e948 InitRD: leak an unused pointer so kmalloc() doesn't map memory all the time
7d71bd192d Tools: Add a fast-run.sh script which does not build, only run
Compare 5 commits »
asleepymoon commented on issue asleepymoon/Luna#14 2022-10-20 16:35:33 +00:00
weird memory stuff

Ok, so this is a little bit clearer now. The userspace pointer is still perfectly valid, what happens is KernelHeap believes it's "full" and refuses to allocate space to map it into the kernel's…