chiark / gitweb /
execute: when we can't get the requested rlimit, get the next closest
[elogind.git] / src / shared / util.h
index 3f4e49e6bcf6608bddf2b39fc0dab9c1511abda6..c487b702bf6d14c96131e3434f0d54a4b7ede9ed 100644 (file)
@@ -34,6 +34,7 @@
 #include <limits.h>
 #include <sys/stat.h>
 #include <dirent.h>
+#include <sys/resource.h>
 
 #include "macro.h"
 
@@ -531,4 +532,6 @@ int fd_inc_rcvbuf(int fd, size_t n);
 
 int fork_agent(pid_t *pid, const int except[], unsigned n_except, const char *path, ...);
 
+int setrlimit_closest(int resource, const struct rlimit *rlim);
+
 #endif