mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Kernel: Add new sysconf option _SC_GETGR_R_SIZE_MAX
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user