restrict-process-size.h revision 799291e076f181e56599c93b06282156ab695fd6
2348N/A#ifndef RESTRICT_PROCESS_SIZE_H
2348N/A#define RESTRICT_PROCESS_SIZE_H
2348N/A
2348N/A#include <sys/time.h>
2348N/A#ifdef HAVE_SYS_RESOURCE_H
2348N/A# include <sys/resource.h>
2348N/A#endif
2348N/A
2348N/A/* Restrict max. process size. The size is in megabytes, setting it to
2348N/A (unsigned int)-1 sets it unlimited. */
2348N/Avoid restrict_process_size(unsigned int size, unsigned int max_processes);
2348N/A/* Set fd limit to count. */
2348N/Avoid restrict_fd_limit(unsigned int count);
2348N/A
2348N/A/* Get the core dump size limit. Returns 0 if ok, -1 if lookup failed. */
2348N/Aint restrict_get_core_limit(rlim_t *limit_r);
2348N/A
2348N/A#endif
2348N/A