diff options
author | Martin Bříza <m@rtinbriza.cz> | 2021-12-21 16:15:24 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-21 12:54:11 -0800 |
commit | 86b249f02fa2293341c0da9c590df6271050cd1d (patch) | |
tree | 4a43abe48658c7dd3d25368fe95071080ae246e5 /Kernel/Syscalls/sysconf.cpp | |
parent | f75bab2a25a1e8e1b9ea788924601a3b0ecbbc9b (diff) | |
download | serenity-86b249f02fa2293341c0da9c590df6271050cd1d.zip |
Kernel: Implement sysconf(_SC_SYMLOOP_MAX)
Not much to say here, this is an implementation of this call that
accesses the actual limit constant that's used by the VirtualFileSystem
class.
As a side note, this is required for my eventual Qt port.
Diffstat (limited to 'Kernel/Syscalls/sysconf.cpp')
-rw-r--r-- | Kernel/Syscalls/sysconf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Syscalls/sysconf.cpp b/Kernel/Syscalls/sysconf.cpp index 6f9c562650..ce6b649480 100644 --- a/Kernel/Syscalls/sysconf.cpp +++ b/Kernel/Syscalls/sysconf.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <Kernel/FileSystem/VirtualFileSystem.h> #include <Kernel/Process.h> #include <Kernel/Time/TimeManagement.h> @@ -30,6 +31,8 @@ ErrorOr<FlatPtr> Process::sys$sysconf(int name) return 4096; // idk case _SC_CLK_TCK: return TimeManagement::the().ticks_per_second(); + case _SC_SYMLOOP_MAX: + return Kernel::VirtualFileSystem::symlink_recursion_limit; default: return EINVAL; } |