mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Kernel: Expose maximum argument limit in sysconf
Move the definitions for maximum argument and environment size to Process.h from execve.cpp. This allows sysconf(_SC_ARG_MAX) to return the actual argument maximum of 128 KiB to userspace.
This commit is contained in:
parent
b0df096298
commit
b4a7d148b1
4 changed files with 8 additions and 5 deletions
|
@ -40,6 +40,7 @@ enum {
|
|||
_SC_CLK_TCK,
|
||||
_SC_SYMLOOP_MAX,
|
||||
_SC_MAPPED_FILES,
|
||||
_SC_ARG_MAX,
|
||||
};
|
||||
|
||||
#define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK
|
||||
|
@ -53,6 +54,7 @@ enum {
|
|||
#define _SC_CLK_TCK _SC_CLK_TCK
|
||||
#define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX
|
||||
#define _SC_MAPPED_FILES _SC_MAPPED_FILES
|
||||
#define _SC_ARG_MAX _SC_ARG_MAX
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue