mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +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
|
@ -33,6 +33,8 @@ ErrorOr<FlatPtr> Process::sys$sysconf(int name)
|
|||
return TimeManagement::the().ticks_per_second();
|
||||
case _SC_SYMLOOP_MAX:
|
||||
return Kernel::VirtualFileSystem::symlink_recursion_limit;
|
||||
case _SC_ARG_MAX:
|
||||
return Process::max_arguments_size;
|
||||
default:
|
||||
return EINVAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue