mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Add sysconf for IOV_MAX
This commit is contained in:
parent
1d3b5d330d
commit
455038d6fc
Notes:
sideshowbarker
2024-07-17 10:04:56 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/455038d6fc Pull-request: https://github.com/SerenityOS/serenity/pull/14283 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi
2 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,7 @@ enum {
|
|||
_SC_SYMLOOP_MAX,
|
||||
_SC_MAPPED_FILES,
|
||||
_SC_ARG_MAX,
|
||||
_SC_IOV_MAX,
|
||||
};
|
||||
|
||||
#define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK
|
||||
|
@ -56,6 +57,7 @@ enum {
|
|||
#define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX
|
||||
#define _SC_MAPPED_FILES _SC_MAPPED_FILES
|
||||
#define _SC_ARG_MAX _SC_ARG_MAX
|
||||
#define _SC_IOV_MAX _SC_IOV_MAX
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -35,6 +35,8 @@ ErrorOr<FlatPtr> Process::sys$sysconf(int name)
|
|||
return Kernel::VirtualFileSystem::symlink_recursion_limit;
|
||||
case _SC_ARG_MAX:
|
||||
return Process::max_arguments_size;
|
||||
case _SC_IOV_MAX:
|
||||
return IOV_MAX;
|
||||
default:
|
||||
return EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue