mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:47:43 +00:00
Kernel: Put some more syscalls in the "stdio" bucket
yield() and get_kernel_info_page() seem like decent fits for "stdio".
This commit is contained in:
parent
f6c0fccc01
commit
c32d65ae9f
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
// 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)))
|
int Process::sys$getrandom(void* buffer, size_t buffer_size, unsigned int flags __attribute__((unused)))
|
||||||
{
|
{
|
||||||
|
REQUIRE_PROMISE(stdio);
|
||||||
if (buffer_size <= 0)
|
if (buffer_size <= 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
@ -4039,6 +4040,7 @@ int Process::sys$sync()
|
||||||
|
|
||||||
int Process::sys$yield()
|
int Process::sys$yield()
|
||||||
{
|
{
|
||||||
|
REQUIRE_PROMISE(stdio);
|
||||||
current->yield_without_holding_big_lock();
|
current->yield_without_holding_big_lock();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -4224,6 +4226,7 @@ int Process::sys$profiling_disable(pid_t pid)
|
||||||
|
|
||||||
void* Process::sys$get_kernel_info_page()
|
void* Process::sys$get_kernel_info_page()
|
||||||
{
|
{
|
||||||
|
REQUIRE_PROMISE(stdio);
|
||||||
return s_info_page_address_for_userspace.as_ptr();
|
return s_info_page_address_for_userspace.as_ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue