1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

Kernel: Implement _SC_OPEN_MAX

This commit is contained in:
Luke 2020-09-09 08:35:02 +01:00 committed by Andreas Kling
parent db31452bc2
commit 721788943d
3 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,8 @@ long Process::sys$sysconf(int name)
return Processor::processor_count();
case _SC_PAGESIZE:
return PAGE_SIZE;
case _SC_OPEN_MAX:
return max_open_file_descriptors();
default:
return -EINVAL;
}