diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-10 20:15:58 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-10 20:16:18 +0100 |
commit | 416c7ac2b5a9f01665637bfd9b9d124f5ffaf571 (patch) | |
tree | e5b80f4d9ed421367f63cdeef752be3292bcd283 /Kernel | |
parent | 0695ff8282eca40ab08300c5a9be8716d453aee6 (diff) | |
download | serenity-416c7ac2b5a9f01665637bfd9b9d124f5ffaf571.zip |
Kernel: Rename Syscall::SyscallString => Syscall::StringArgument
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.cpp | 4 | ||||
-rw-r--r-- | Kernel/Syscall.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 0430aba5d7..bdfb384b3c 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -932,9 +932,9 @@ int Process::sys$execve(const Syscall::SC_execve_params* user_params) return true; if (!validate_read_typed(list.strings, list.length)) return false; - Vector<Syscall::SyscallString, 32> strings; + Vector<Syscall::StringArgument, 32> strings; strings.resize(list.length); - copy_from_user(strings.data(), list.strings, list.length * sizeof(Syscall::SyscallString)); + copy_from_user(strings.data(), list.strings, list.length * sizeof(Syscall::StringArgument)); for (size_t i = 0; i < list.length; ++i) { if (!validate_read(strings[i].characters, strings[i].length)) return false; diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h index 9396a97d5e..9193b917f7 100644 --- a/Kernel/Syscall.h +++ b/Kernel/Syscall.h @@ -300,7 +300,7 @@ struct SC_set_mmap_name_params { size_t name_length; }; -struct SyscallString { +struct StringArgument { const char* characters { nullptr }; size_t length { 0 }; }; @@ -312,18 +312,18 @@ struct MutableBufferArgument { }; struct SyscallStringList { - SyscallString* strings { nullptr }; + StringArgument* strings { nullptr }; size_t length { 0 }; }; struct SC_execve_params { - SyscallString path; + StringArgument path; SyscallStringList arguments; SyscallStringList environment; }; struct SC_readlink_params { - SyscallString path; + StringArgument path; MutableBufferArgument<char, size_t> buffer; }; |