mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:04:57 +00:00
Kernel: Add new sysconf option _SC_GETGR_R_SIZE_MAX
This commit is contained in:
parent
3c52c25515
commit
7abda6a36f
2 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,7 @@ enum {
|
|||
_SC_TTY_NAME_MAX,
|
||||
_SC_PAGESIZE,
|
||||
_SC_GETPW_R_SIZE_MAX,
|
||||
_SC_GETGR_R_SIZE_MAX,
|
||||
_SC_CLK_TCK,
|
||||
_SC_SYMLOOP_MAX,
|
||||
_SC_MAPPED_FILES,
|
||||
|
@ -57,6 +58,7 @@ enum {
|
|||
#define _SC_HOST_NAME_MAX _SC_HOST_NAME_MAX
|
||||
#define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX
|
||||
#define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX
|
||||
#define _SC_GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX
|
||||
#define _SC_CLK_TCK _SC_CLK_TCK
|
||||
#define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX
|
||||
#define _SC_MAPPED_FILES _SC_MAPPED_FILES
|
||||
|
|
|
@ -29,6 +29,7 @@ ErrorOr<FlatPtr> Process::sys$sysconf(int name)
|
|||
case _SC_TTY_NAME_MAX:
|
||||
return TTY_NAME_MAX;
|
||||
case _SC_GETPW_R_SIZE_MAX:
|
||||
case _SC_GETGR_R_SIZE_MAX:
|
||||
return 4096; // idk
|
||||
case _SC_CLK_TCK:
|
||||
return TimeManagement::the().ticks_per_second();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue