diff options
-rw-r--r-- | Kernel/Process.cpp | 4 | ||||
-rw-r--r-- | Kernel/Process.h | 4 | ||||
-rw-r--r-- | Kernel/ProcessExposed.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 6436ab7262..00495344a6 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -526,7 +526,7 @@ Custody& Process::current_directory() return *m_cwd; } -ErrorOr<NonnullOwnPtr<KString>> Process::get_syscall_path_argument(Userspace<char const*> user_path, size_t path_length) const +ErrorOr<NonnullOwnPtr<KString>> Process::get_syscall_path_argument(Userspace<char const*> user_path, size_t path_length) { if (path_length == 0) return EINVAL; @@ -535,7 +535,7 @@ ErrorOr<NonnullOwnPtr<KString>> Process::get_syscall_path_argument(Userspace<cha return try_copy_kstring_from_user(user_path, path_length); } -ErrorOr<NonnullOwnPtr<KString>> Process::get_syscall_path_argument(Syscall::StringArgument const& path) const +ErrorOr<NonnullOwnPtr<KString>> Process::get_syscall_path_argument(Syscall::StringArgument const& path) { Userspace<char const*> path_characters((FlatPtr)path.characters); return get_syscall_path_argument(path_characters, path.length); diff --git a/Kernel/Process.h b/Kernel/Process.h index b957f62938..634c36d628 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -546,8 +546,8 @@ private: ErrorOr<siginfo_t> do_waitid(Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> waitee, int options); - ErrorOr<NonnullOwnPtr<KString>> get_syscall_path_argument(Userspace<const char*> user_path, size_t path_length) const; - ErrorOr<NonnullOwnPtr<KString>> get_syscall_path_argument(const Syscall::StringArgument&) const; + static ErrorOr<NonnullOwnPtr<KString>> get_syscall_path_argument(Userspace<const char*> user_path, size_t path_length); + static ErrorOr<NonnullOwnPtr<KString>> get_syscall_path_argument(const Syscall::StringArgument&); bool has_tracee_thread(ProcessID tracer_pid); diff --git a/Kernel/ProcessExposed.h b/Kernel/ProcessExposed.h index 552f1c528e..fc63ecb66e 100644 --- a/Kernel/ProcessExposed.h +++ b/Kernel/ProcessExposed.h @@ -76,7 +76,7 @@ public: virtual mode_t required_mode() const { return 0444; } virtual UserID owner_user() const { return 0; } virtual GroupID owner_group() const { return 0; } - time_t modified_time() const { return TimeManagement::now().to_timeval().tv_sec; } + static time_t modified_time() { return TimeManagement::now().to_timeval().tv_sec; } virtual void prepare_for_deletion() { } virtual ErrorOr<void> refresh_data(OpenFileDescription&) const |