mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibCore: Add function for searching a file in $PATH
This extracts the logic of searching for a file in $PATH from System::exec to a separate function.
This commit is contained in:
parent
01f0ae20b6
commit
91a03bc6ae
Notes:
sideshowbarker
2024-07-17 08:42:05 +09:00
Author: https://github.com/itamar8910
Commit: 91a03bc6ae
Pull-request: https://github.com/SerenityOS/serenity/pull/14613
2 changed files with 21 additions and 21 deletions
|
@ -160,6 +160,7 @@ ErrorOr<Array<int, 2>> pipe2(int flags);
|
|||
#ifndef AK_OS_ANDROID
|
||||
ErrorOr<void> adjtime(const struct timeval* delta, struct timeval* old_delta);
|
||||
#endif
|
||||
ErrorOr<String> find_file_in_path(StringView filename);
|
||||
enum class SearchInPath {
|
||||
No,
|
||||
Yes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue