restrict-process-size.h revision b3f03a6a9232d4e5a8682eff8d37bbcf41c487ec
#ifndef __RESTRICT_PROCESS_SIZE_H
#define __RESTRICT_PROCESS_SIZE_H
/* Restrict max. process size. The size is in megabytes, setting it to
(unsigned int)-1 sets it unlimited. */
void restrict_process_size(unsigned int size, unsigned int max_processes);
/* Set fd limit to count. */
void restrict_fd_limit(unsigned int count);
/* If fd limit is less than count, try to raise it. Probably fails (silently)
if we're not running as root. Returns TRUE if succeeded. */
bool restrict_raise_fd_limit(unsigned int count);
#endif