apio pushed to main at apio/Luna 2023-03-24 19:54:03 +00:00
54a4ebe5bb sh+edit: Miscellaneous fixes
apio pushed to main at apio/Luna 2023-03-24 16:40:00 +00:00
e76ccd6c4c kernel+libc+init: Add getppid() and wait()
apio pushed to main at apio/Luna 2023-03-24 16:37:14 +00:00
7efcc06090 kernel+init+sh: Implement parent processes and waitpid(-1, ...)
apio pushed to main at apio/Luna 2023-03-24 16:21:31 +00:00
f084b57f39 kernel+sh: Allow using Ctrl+D to send EOF
apio pushed to main at apio/Luna 2023-03-23 23:52:36 +00:00
a18e50ff34 apps: Add cat and edit
d63c8abbfd kernel/x86_64: Terminate page faults in a waitpid-friendly way
e2eb9a92cb sh: Don't do anything if Enter is pressed with no command
Compare 3 commits »
apio pushed to main at apio/Luna 2023-03-23 21:42:39 +00:00
b6fb5f3dfe kernel+libc: Implement waitpid()
41c7e3780d kernel: Add support for exit codes and start preparing for waitpid()
Compare 2 commits »
apio pushed to main at apio/Luna 2023-03-23 21:20:02 +00:00
355dd6c32b apps: Add sh
767dbf521c Vector: Fix crash when trying to use vector after a call to clear()
Compare 2 commits »
apio pushed to main at apio/Luna 2023-03-23 20:35:29 +00:00
00672c4b22 apps/hello: Demo fgets
0e9890901f libc: Add (f)getc, getchar, and fgets
937802964c kernel: Invert O_NONBLOCK to check whether a thread should block
95e884db97 kernel: Fix compilation
03adaa356c kernel: Avoid printing keypresses twice
Compare 5 commits »
apio pushed to main at apio/Luna 2023-03-23 20:22:18 +00:00
cda036ce70 ConsoleDevice: Use a temporary buffer for backspace handling
83492339ec Buffer: Add an append_data() method
89ad6869a4 Vector: Add a clear() method
Compare 3 commits »
apio pushed to main at apio/Luna 2023-03-23 18:25:20 +00:00
6f14bf553f libc: Add missing header to fcntl.h
apio pushed to main at apio/Luna 2023-03-19 18:21:42 +00:00
bab9600be5 libc: Add creat()
31ef96ebfc libc: Add stdin
d33fccc66f kernel: Implement reading from /dev/console
Compare 3 commits »
apio pushed to main at apio/Luna 2023-03-19 10:25:22 +00:00
51f0bdff0e kernel+libc: Add O_NONBLOCK
41514d9ad2 kernel: Add support for blocking reads
Compare 2 commits »
apio pushed to main at apio/Luna 2023-03-19 10:17:53 +00:00
cd00e41f59 arch/x86_64: Decode keyboard scancodes
apio pushed to main at apio/Luna 2023-03-18 22:59:12 +00:00
40f01c825d libc: Add fork()
54f2d35416 kernel: Add the fork() system call
Compare 2 commits »
apio pushed to main at apio/Luna 2023-03-18 21:31:25 +00:00
e664af4c2b libc: Add execv()
apio pushed to main at apio/Luna 2023-03-18 21:25:33 +00:00
a4ac3c85ed kernel+libc: Copy argv to userspace
apio pushed to main at apio/Luna 2023-03-18 20:56:41 +00:00
0b00dc3fe4 kernel/exec: Rename item to string_addr
apio pushed to main at apio/Luna 2023-03-18 20:55:27 +00:00
7f50893786 kernel/exec: Copy argv from userspace
apio pushed to main at apio/Luna 2023-03-18 19:13:04 +00:00
49952320d6 kernel+libluna: Remove console_write entirely
apio pushed to main at apio/Luna 2023-03-18 19:11:27 +00:00
cb1ef3e404 libc: Add (v)fprintf and make (v)printf use that
6a6a56a8b4 kernel: Make /dev/console actually respect the length parameter instead of trusting userspace's null terminators
d01ba20749 kernel/TextConsole: Add a write() function that accepts a fixed-size buffer instead of relying on null terminators
629ed9e43b libc: Start switching to /dev/console for console IO and add a proper init
Compare 4 commits »