aboutsummaryrefslogtreecommitdiff
path: root/zencore
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-12 19:31:42 +0200
committerDan Engelbrecht <[email protected]>2022-04-12 19:31:42 +0200
commit27e49ea3a4770c268a01e503bd3f186568059636 (patch)
tree87bb21010de98d8fb281ed60b2c54567eadba6da /zencore
parentcleanup (diff)
downloadzen-27e49ea3a4770c268a01e503bd3f186568059636.tar.xz
zen-27e49ea3a4770c268a01e503bd3f186568059636.zip
more cleanup
Diffstat (limited to 'zencore')
-rw-r--r--zencore/filesystem.cpp4
-rw-r--r--zencore/include/zencore/filesystem.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 8e75ad773..7ff0dc45c 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -23,6 +23,7 @@
#if ZEN_PLATFORM_LINUX
# include <dirent.h>
# include <fcntl.h>
+# include <sys/resource.h>
# include <sys/stat.h>
# include <unistd.h>
#endif
@@ -31,6 +32,7 @@
# include <dirent.h>
# include <fcntl.h>
# include <libproc.h>
+# include <sys/resource.h>
# include <sys/stat.h>
# include <sys/syslimits.h>
# include <unistd.h>
@@ -987,7 +989,7 @@ GetRunningExecutablePath()
}
void
-InitializeOpenFileCount()
+MaximizeOpenFileCount()
{
#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
struct rlimit Limit;
diff --git a/zencore/include/zencore/filesystem.h b/zencore/include/zencore/filesystem.h
index 98d2897cf..a6e76eaa0 100644
--- a/zencore/include/zencore/filesystem.h
+++ b/zencore/include/zencore/filesystem.h
@@ -36,7 +36,7 @@ ZENCORE_API std::filesystem::path GetRunningExecutablePath();
/** Set the max open file handle count to max allowed for the current process on Linux and MacOS
*/
-ZENCORE_API void InitializeOpenFileCount();
+ZENCORE_API void MaximizeOpenFileCount();
struct FileContents
{