process-util: extract pidfd-related funcs into pidfd-util.[ch]

This commit is contained in:
Mike Yuan
2025-01-04 16:58:13 +01:00
parent 573e8fc217
commit b234026d09
8 changed files with 83 additions and 63 deletions
-3
View File
@@ -250,9 +250,6 @@ assert_cc(TASKS_MAX <= (unsigned long) PID_T_MAX);
/* Like TAKE_PTR() but for pid_t, resetting them to 0 */
#define TAKE_PID(pid) TAKE_GENERIC(pid, pid_t, 0)
int pidfd_get_pid(int fd, pid_t *ret);
int pidfd_verify_pid(int pidfd, pid_t pid);
int setpriority_closest(int priority);
_noreturn_ void freeze(void);