[os2/process]: Add process list function
This commit is contained in:
1 parent
2495f1c39a
commit
6fab055f43
2 files changed
+23
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user