Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currently this is just a text file, but it will be a tar archive later
on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for some reason it's only there by default if you compile with `-O2`.
because of this, you couldn't compile camellia with `-O1`
|
|
|
|
|
|
|
|
awaited_req is a garbage name but i couldn't come up with a better one.
i also have no idea how to handle all the failure states
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init can just open `/tty` instead
|
|
|
|
|
|
|
|
this avoid accidental dereferences, and now it's easy to tell apart
which pointers are safe to directly read and which aren't.
cons:
- const is completely discarded
|
|
`()` means that any amt of arguments will be accepted, which isn't what
i want
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The length is a int, because the syscall will have a signed output. A
negative return value will mean an error (such as when it gets called
by a childless process).
|
|
|
|
I'm about to need that for waits(). There's no single list of processes
for simplicity's sake, but the search will now be even slower and it
might even introduce a potential vuln! How fun! Someone could override
stuff in .bss with random values. I'll either make gcc check if it
hasn't gone past the end of the stack, or turn this into a non recursive
function.
|
|
|
|
|
|
|
|
i used a linked list because it's the simplest way to implement this
|
|
|
|
|
|
|