apio pushed to fork at apio/Luna 2022-10-16 07:58:22 +00:00
9070d17477 wait before letting the fork run for now
apio pushed to fork at apio/Luna 2022-10-15 18:31:07 +00:00
145ea40945 fork() is almost working
16f797eeee AddressSpace: make clone() perform a deep copy
Compare 2 commits »
apio pushed to fork at apio/Luna 2022-10-15 16:59:14 +00:00
397b1a2819 Kernel: add memmem
apio commented on pull request apio/Luna#13 2022-10-15 16:45:44 +00:00
WIP: Add fork()

There is a problem here:

The child starts doing stuff with the parent's stack, since all addresses copied from the parent are directly what the parent set.

But if we map both stacks at the…

apio pushed to fork at apio/Luna 2022-10-15 16:43:05 +00:00
7ab80014e1 More fork() work
e672f3994b libc: Add support for fork()
Compare 2 commits »
apio created pull request apio/Luna#13 2022-10-15 16:03:11 +00:00
WIP: Add fork()
apio created branch fork in apio/Luna 2022-10-15 16:01:42 +00:00
apio pushed to fork at apio/Luna 2022-10-15 16:01:42 +00:00
20cffdb66c Add an initial fork() implementation
apio pushed to main at apio/Luna 2022-10-15 15:48:05 +00:00
1624f0360d exec: More logging
apio pushed to main at apio/Luna 2022-10-15 15:46:01 +00:00
d30010d524 apps/sym: Read from the end of the file
apio pushed to main at apio/Luna 2022-10-15 15:40:40 +00:00
68403dc029 Kernel: Make AddressSpaces reference-counted
apio pushed to main at apio/Luna 2022-10-15 15:32:04 +00:00
eca7227fda StackTracer: Stop when instruction is at nullptr
apio pushed to main at apio/Luna 2022-10-15 15:30:43 +00:00
aca1367158 Kernel: Switch to strlcpy() as well
apio pushed to main at apio/Luna 2022-10-15 15:24:34 +00:00
42b6b927c9 libc: Implement strlcpy(), and make strncpy() standard-compliant
apio pushed to main at apio/Luna 2022-10-15 14:53:34 +00:00
48f38bdcef libc: More inttypes.h
apio pushed to main at apio/Luna 2022-10-15 14:47:03 +00:00
45afd3e243 Replace the rand() which reads from /dev/random with a Mersenne PRNG.
apio pushed to main at apio/Luna 2022-10-15 14:31:15 +00:00
18f1f8b7ca Add VERY HACKY rand() implementation.
apio pushed to main at apio/Luna 2022-10-15 14:10:10 +00:00
dd358eca29 libc/libgen.cpp: Remove #include <luna.h>
116e7326a4 libc: Implement dirname() and basename()
5256166e7a libc: Fix strrchr
Compare 3 commits »
apio pushed to main at apio/Luna 2022-10-15 13:16:27 +00:00
6953a28ce8 libc: Implement strrchr()
apio pushed to main at apio/Luna 2022-10-15 13:14:43 +00:00
f13c48b562 libc: make strerror() return "Unknown error" instead of an invalid pointer
7139b4403f libc: Add EPIPE (not returned by anything yet)
e3e33bacbc libc: Add stubbed signal.h header
8d552b1522 libc: Add setjmp.h stub functions (not implemented)
46f60b192a libc: Add libgen.h stub functions (not implemented)
Compare 6 commits »