diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-12 10:30:02 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-12 10:31:21 +0100 |
commit | c32d65ae9f7b2f01435c0d996ba369ab4e132a5f (patch) | |
tree | 03180da39d8b09a25b80561d28b797474a24b24e /Kernel | |
parent | f6c0fccc01556155d171d2ba86d998c5ddae87ad (diff) | |
download | serenity-c32d65ae9f7b2f01435c0d996ba369ab4e132a5f.zip |
Kernel: Put some more syscalls in the "stdio" bucket
yield() and get_kernel_info_page() seem like decent fits for "stdio".
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index aeb3b25f7c..5c519207e0 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -3923,6 +3923,7 @@ int Process::sys$get_process_name(char* buffer, int buffer_size) // do, we should be able of the caveats that Linux has dealt with. int Process::sys$getrandom(void* buffer, size_t buffer_size, unsigned int flags __attribute__((unused))) { + REQUIRE_PROMISE(stdio); if (buffer_size <= 0) return -EINVAL; @@ -4039,6 +4040,7 @@ int Process::sys$sync() int Process::sys$yield() { + REQUIRE_PROMISE(stdio); current->yield_without_holding_big_lock(); return 0; } @@ -4224,6 +4226,7 @@ int Process::sys$profiling_disable(pid_t pid) void* Process::sys$get_kernel_info_page() { + REQUIRE_PROMISE(stdio); return s_info_page_address_for_userspace.as_ptr(); } |