1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

Kernel: Implement Process::custody_for_dirfd

This allows deduplicating a bunch of code that has to work with
POSIX' *at syscall semantics.
This commit is contained in:
sin-ack 2022-10-01 11:28:27 +00:00 committed by Andrew Kaster
parent 5b335e7fba
commit 5c1d5ed51d
2 changed files with 13 additions and 0 deletions

View file

@ -844,6 +844,8 @@ public:
}
private:
ErrorOr<NonnullRefPtr<Custody>> custody_for_dirfd(int dirfd);
SpinlockProtected<Thread::ListInProcess>& thread_list() { return m_thread_list; }
SpinlockProtected<Thread::ListInProcess> const& thread_list() const { return m_thread_list; }