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:
parent
5b335e7fba
commit
5c1d5ed51d
2 changed files with 13 additions and 0 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue