Cross Reference: restrict-process-size.h
xref
: /
dovecot
/
src
/
lib
/
restrict-process-size.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
restrict-process-size.h revision 799291e076f181e56599c93b06282156ab695fd6
2348
N/A
#
ifndef
RESTRICT_PROCESS_SIZE_H
2348
N/A
#
define
RESTRICT_PROCESS_SIZE_H
2348
N/A
2348
N/A
#
include
<
sys
/
time.h
>
2348
N/A
#
ifdef
HAVE_SYS_RESOURCE_H
2348
N/A
#
include
<
sys
/
resource.h
>
2348
N/A
#
endif
2348
N/A
2348
N/A
/* Restrict max. process size. The size is in megabytes, setting it to
2348
N/A
(unsigned int)-1 sets it unlimited. */
2348
N/A
void
restrict_process_size
(
unsigned
int
size
,
unsigned
int
max_processes
);
2348
N/A
/* Set fd limit to count. */
2348
N/A
void
restrict_fd_limit
(
unsigned
int
count
);
2348
N/A
2348
N/A
/* Get the core dump size limit. Returns 0 if ok, -1 if lookup failed. */
2348
N/A
int
restrict_get_core_limit
(
rlim_t
*
limit_r
);
2348
N/A
2348
N/A
#
endif
2348
N/A