Luna/kernel/src/sys
apio bcdcfc4b45 Kernel: Add a pstat() system call
Not part of C or POSIX, but since there is no procfs right now, I thought it would be nice to have an interface to query process information.
It works like this: you pass the process ID and a pointer to a struct pstat (can be null).
If the process ID is -1, the kernel picks the process with the highest PID.
Then, if the pointer to a pstat struct is not null, the kernel fills it in with the process's information, and returns the process's PID.
2022-10-22 14:26:29 +02:00
..
elf Kernel: Move errno.h and (k)assert.h out of the main include directory 2022-10-19 17:41:23 +02:00
clock.cpp Kernel: Add a clock() system call 2022-10-15 13:17:26 +02:00
exec.cpp Kernel, libc: Implement O_CLOEXEC 2022-10-22 10:28:02 +02:00
id.cpp Kernel: Move errno.h and (k)assert.h out of the main include directory 2022-10-19 17:41:23 +02:00
mem.cpp Kernel: Move errno.h and (k)assert.h out of the main include directory 2022-10-19 17:41:23 +02:00
paint.cpp Kernel: Move errno.h and (k)assert.h out of the main include directory 2022-10-19 17:41:23 +02:00
sched.cpp Kernel: Move errno.h and (k)assert.h out of the main include directory 2022-10-19 17:41:23 +02:00
stat.cpp Kernel, libc: Add fstat() 2022-10-21 18:31:09 +02:00
stdio.cpp Kernel, libc: Implement O_CLOEXEC 2022-10-22 10:28:02 +02:00
Syscall.cpp Kernel: Add a pstat() system call 2022-10-22 14:26:29 +02:00
UserMemory.cpp Kernel: Add a few convenience functions to manipulate userland memory 2022-10-19 17:13:16 +02:00