mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Kernel: Convert Process-related const member functions to static
Process::get_syscall_path_argument() and ProcFSExposedComponent::modified_time() both are independent of this.
This commit is contained in:
parent
bc29c7f04f
commit
eb1181b898
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue