apio pushed to main at apio/Luna 2022-10-22 10:03:21 +00:00
59d5e9789e Tests: Add a test for atoi()
apio pushed to main at apio/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 »
apio pushed to main at apio/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 »
apio pushed to main at apio/Luna 2022-10-22 08:28:13 +00:00
0faabe02e5 Kernel, libc: Implement O_CLOEXEC
apio pushed to main at apio/Luna 2022-10-22 08:14:51 +00:00
fb88459263 libc: Add all missing errors to strerror()
apio pushed to main at apio/Luna 2022-10-21 19:51:14 +00:00
b2f5a0502f Kernel, libc: Implement O_NONBLOCK
apio pushed to main at apio/Luna 2022-10-21 19:26:35 +00:00
da61e3648f Kernel: Implement blocking reads
apio pushed to main at apio/Luna 2022-10-21 16:39:56 +00:00
43073cfdbb Add new __lc_used macro
apio pushed to main at apio/Luna 2022-10-21 16:37:28 +00:00
fcd6d9b9f5 Add FIXME
apio pushed to main at apio/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 »
apio pushed to main at apio/Luna 2022-10-20 17:32:41 +00:00
0720b3245b sh: Do not backspace if command is empty
apio pushed to main at apio/Luna 2022-10-20 17:27:47 +00:00
b69fbd46bf init: Add a Message of the Day
apio pushed to main at apio/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 »
apio pushed to main at apio/Luna 2022-10-20 17:03:33 +00:00
f7cf395f71 Kernel, libc: Add access()
apio pushed to main at apio/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 »
apio commented on issue apio/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…

apio pushed to main at apio/Luna 2022-10-20 06:21:28 +00:00
de167c3c67 sh: Show last command' exit status in prompt if non-zero
cd9ecc1746 Kernel: Return EFAULT when the kernel believes the wstatus pointer is invalid
Compare 2 commits »
apio pushed to main at apio/Luna 2022-10-19 19:13:56 +00:00
44bd93b8b4 apps: Add a hello app
f682258fc9 sym: do not sleep
Compare 2 commits »
apio pushed to main at apio/Luna 2022-10-19 19:11:48 +00:00
2c813f5901 apps: Add more simple apps
47bdfecedb Devices: Add /dev/uptime
Compare 2 commits »
apio pushed to main at apio/Luna 2022-10-19 18:52:03 +00:00
1938a059a2 Kernel: Free the last spawned thread's PID on exit