summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-18 08:51:06 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-18 09:37:33 +0100
commit55a9a4f57a5919e6c78303eef3fef11726ff979c (patch)
treeb5a80ce85889b2562a719aaa63af0516c4f3533c /Kernel/Process.h
parentedec5e29a3ed006c753ffe4985c2bd1aad26a538 (diff)
downloadserenity-55a9a4f57a5919e6c78303eef3fef11726ff979c.zip
Kernel: Use KResult a bit more in sys$execve()
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 848c0a9976..01e37ac0f2 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -387,7 +387,7 @@ public:
return m_max_open_file_descriptors;
}
- int exec(String path, Vector<String> arguments, Vector<String> environment, int recusion_depth = 0);
+ KResult exec(String path, Vector<String> arguments, Vector<String> environment, int recusion_depth = 0);
KResultOr<LoadResult> load(NonnullRefPtr<FileDescription> main_program_description, RefPtr<FileDescription> interpreter_description, const Elf32_Ehdr& main_program_header);
@@ -477,7 +477,7 @@ private:
bool dump_core();
bool dump_perfcore();
- int do_exec(NonnullRefPtr<FileDescription> main_program_description, Vector<String> arguments, Vector<String> environment, RefPtr<FileDescription> interpreter_description, Thread*& new_main_thread, u32& prev_flags, const Elf32_Ehdr& main_program_header);
+ KResult do_exec(NonnullRefPtr<FileDescription> main_program_description, Vector<String> arguments, Vector<String> environment, RefPtr<FileDescription> interpreter_description, Thread*& new_main_thread, u32& prev_flags, const Elf32_Ehdr& main_program_header);
ssize_t do_write(FileDescription&, const UserOrKernelBuffer&, size_t);
KResultOr<RefPtr<FileDescription>> find_elf_interpreter_for_executable(const String& path, const Elf32_Ehdr& elf_header, int nread, size_t file_size);