mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibCore: Expose DirIterator's underlying file descriptor
This commit is contained in:
parent
e7310ba45a
commit
758085571f
Notes:
sideshowbarker
2024-07-18 18:08:21 +09:00
Author: https://github.com/Maato
Commit: 758085571f
Pull-request: https://github.com/SerenityOS/serenity/pull/7109
2 changed files with 8 additions and 0 deletions
|
@ -99,4 +99,11 @@ String find_executable_in_path(String filename)
|
|||
return {};
|
||||
}
|
||||
|
||||
int DirIterator::fd() const
|
||||
{
|
||||
if (!m_dir)
|
||||
return -1;
|
||||
return dirfd(m_dir);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue