[os2/process]: Add process list function

This commit is contained in:
flysand7
2024-07-15 07:27:43 +11:00
parent 2495f1c39a
commit 6fab055f43
2 changed files with 23 additions and 0 deletions
+7
View File
@@ -104,6 +104,13 @@ get_ppid :: proc() -> int {
return _get_ppid()
}
/*
Obtain ID's of all processes running in the system.
*/
process_list :: proc(allocator: runtime.Allocator) -> ([]int, Error) {
return _process_list(allocator)
}
Process :: struct {
pid: int,