1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17: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;
}

View file

@ -60,6 +60,7 @@ enum {
_SC_NPROCESSORS_CONF,
_SC_NPROCESSORS_ONLN,
_SC_PAGESIZE,
_SC_OPEN_MAX
};
#define PERF_EVENT_MALLOC 1