diff --git a/jetty-setuid/jetty-setuid-jna/src/main/java/org/eclipse/jetty/setuid/LibC.java b/jetty-setuid/jetty-setuid-jna/src/main/java/org/eclipse/jetty/setuid/LibC.java index 95aa95b0..c40277f7 100644 --- a/jetty-setuid/jetty-setuid-jna/src/main/java/org/eclipse/jetty/setuid/LibC.java +++ b/jetty-setuid/jetty-setuid-jna/src/main/java/org/eclipse/jetty/setuid/LibC.java @@ -45,6 +45,19 @@ public interface LibC extends Library int setrlimit(int resource, RLimit rlimit); + /** + * Compile and run the following C program to get the RLIMIT_NOFILE value of you OS of choice. + *
+     * #include 
+     * #include 
+     *
+     * int main()
+     * {
+     *   printf("RLIMIT_NOFILE = %d\n", RLIMIT_NOFILE);
+     *   return 0;
+     * }
+     * 
+ */ class Constants { public static final int RLIMIT_NOFILE;