jnr.constants.platform.solaris.RLIMIT Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-constants Show documentation
Show all versions of jnr-constants Show documentation
A set of platform constants (e.g. errno values)
// WARNING: This file is autogenerated. DO NOT EDIT!
// Generated 2018-09-12 11:32:05 +0200
package jnr.constants.platform.solaris;
public enum RLIMIT implements jnr.constants.Constant {
RLIMIT_AS(6L),
RLIMIT_CORE(4L),
RLIMIT_CPU(0L),
RLIMIT_DATA(2L),
RLIMIT_FSIZE(1L),
// RLIMIT_LOCKS not defined
// RLIMIT_MEMLOCK not defined
// RLIMIT_MSGQUEUE not defined
// RLIMIT_NICE not defined
// RLIMIT_NLIMITS not defined
RLIMIT_NOFILE(5L),
// RLIMIT_NPROC not defined
// RLIMIT_OFILE not defined
// RLIMIT_RSS not defined
// RLIMIT_RTPRIO not defined
// RLIMIT_RTTIME not defined
// RLIMIT_SIGPENDING not defined
RLIMIT_STACK(3L);
private final long value;
private RLIMIT(long value) { this.value = value; }
public static final long MIN_VALUE = 0L;
public static final long MAX_VALUE = 6L;
static final class StringTable {
public static final java.util.Map descriptions = generateTable();
public static final java.util.Map generateTable() {
java.util.Map map = new java.util.EnumMap(RLIMIT.class);
map.put(RLIMIT_AS, "RLIMIT_AS");
map.put(RLIMIT_CORE, "RLIMIT_CORE");
map.put(RLIMIT_CPU, "RLIMIT_CPU");
map.put(RLIMIT_DATA, "RLIMIT_DATA");
map.put(RLIMIT_FSIZE, "RLIMIT_FSIZE");
map.put(RLIMIT_NOFILE, "RLIMIT_NOFILE");
map.put(RLIMIT_STACK, "RLIMIT_STACK");
return map;
}
}
public final String toString() { return StringTable.descriptions.get(this); }
public final int intValue() { return (int) value; }
public final long longValue() { return value; }
public final boolean defined() { return true; }
}