mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel+LibC: Add the _SC_GETPW_R_SIZE_MAX sysconf enum
It just returns 4096 :P
This commit is contained in:
parent
71054c4c06
commit
4519950266
|
@ -42,6 +42,8 @@ long Process::sys$sysconf(int name)
|
|||
return PAGE_SIZE;
|
||||
case _SC_TTY_NAME_MAX:
|
||||
return TTY_NAME_MAX;
|
||||
case _SC_GETPW_R_SIZE_MAX:
|
||||
return 4096; // idk
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ enum {
|
|||
_SC_OPEN_MAX,
|
||||
_SC_TTY_NAME_MAX,
|
||||
_SC_PAGESIZE,
|
||||
_SC_GETPW_R_SIZE_MAX,
|
||||
};
|
||||
|
||||
#define PERF_EVENT_SAMPLE 0
|
||||
|
|
|
@ -176,6 +176,7 @@ enum {
|
|||
_SC_OPEN_MAX,
|
||||
_SC_TTY_NAME_MAX,
|
||||
_SC_PAGESIZE,
|
||||
_SC_GETPW_R_SIZE_MAX,
|
||||
};
|
||||
|
||||
#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF
|
||||
|
@ -183,6 +184,7 @@ enum {
|
|||
#define _SC_OPEN_MAX _SC_OPEN_MAX
|
||||
#define _SC_PAGESIZE _SC_PAGESIZE
|
||||
#define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX
|
||||
#define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX
|
||||
|
||||
long sysconf(int name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue