process-util: add API for enumerating processes in /proc/ and pinning them via PidRef

This commit is contained in:
Lennart Poettering
2023-10-18 14:49:40 +02:00
parent 4d9f092b5e
commit eefb7d22ce
2 changed files with 73 additions and 0 deletions
+4
View File
@@ -223,3 +223,7 @@ int is_reaper_process(void);
int make_reaper_process(bool b);
int posix_spawn_wrapper(const char *path, char *const *argv, char *const *envp, pid_t *ret_pid);
int proc_dir_open(DIR **ret);
int proc_dir_read(DIR *d, pid_t *ret);
int proc_dir_read_pidref(DIR *d, PidRef *ret);