diff options
author | Itamar <itamar8910@gmail.com> | 2022-07-16 16:55:44 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-21 16:40:11 +0200 |
commit | 91a03bc6ae134f76560c8bba49b6704b1bbbeaae (patch) | |
tree | 2f376bd1e6f31a56403b3746fdc5f991122211f6 /Userland/Libraries/LibCore/System.h | |
parent | 01f0ae20b68c4da3156ee40768da432d411c7e13 (diff) | |
download | serenity-91a03bc6ae134f76560c8bba49b6704b1bbbeaae.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibCore/System.h')
-rw-r--r-- | Userland/Libraries/LibCore/System.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index e25c2e7777..d183682dd6 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -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, |