LibC: Add _SC_NPROCESSORS_{CONF,ONLN)
This commit is contained in:
@@ -161,6 +161,8 @@ namespace Kernel
|
||||
|
||||
BAN::ErrorOr<long> sys_sync(bool should_block);
|
||||
|
||||
BAN::ErrorOr<long> sys_get_nprocessor();
|
||||
|
||||
static BAN::ErrorOr<long> clean_poweroff(int command);
|
||||
BAN::ErrorOr<long> sys_poweroff(int command);
|
||||
|
||||
|
||||
@@ -2011,6 +2011,11 @@ namespace Kernel
|
||||
return 0;
|
||||
}
|
||||
|
||||
BAN::ErrorOr<long> Process::sys_get_nprocessor()
|
||||
{
|
||||
return Processor::count();
|
||||
}
|
||||
|
||||
[[noreturn]] static void reset_system()
|
||||
{
|
||||
(void)ACPI::ACPI::get().reset();
|
||||
|
||||
Reference in New Issue
Block a user