9 #ifndef __libutilxx__sella__util__ResourceLimit_H__
10 #define __libutilxx__sella__util__ResourceLimit_H__
12 #include "../../common.h"
13 #include "ResourceLimitException.h"
16 #include <sys/types.h>
29 enum Type { Soft = 0, Hard, Both, SOFT = Soft, HARD = Hard, BOTH = Both };
32 static void setCoredumpSize(
unsigned long size = 0, Type type = Both)
throw (ResourceLimitException);
33 static void setFileDescriptors(
unsigned long limit = 1024, Type type = Both)
throw (ResourceLimitException);
35 static unsigned long getCoredumpSize(Type type = Soft)
throw (ResourceLimitException);
36 static unsigned long getFileDescriptors(Type type = Soft)
throw (ResourceLimitException);