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:
parent
db31452bc2
commit
721788943d
3 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue