-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "param_log.h" | ||
#include <macros.h> | ||
#include <sys/resource.h> | ||
|
||
static const flag_str_t resources[] = { | ||
FLAG_STR(RLIMIT_AS), | ||
FLAG_STR(RLIMIT_CORE), | ||
FLAG_STR(RLIMIT_CPU), | ||
FLAG_STR(RLIMIT_DATA), | ||
FLAG_STR(RLIMIT_FSIZE), | ||
FLAG_STR(RLIMIT_LOCKS), | ||
FLAG_STR(RLIMIT_MEMLOCK), | ||
FLAG_STR(RLIMIT_MSGQUEUE), | ||
FLAG_STR(RLIMIT_NICE), | ||
FLAG_STR(RLIMIT_NOFILE), | ||
FLAG_STR(RLIMIT_NPROC), | ||
FLAG_STR(RLIMIT_RSS), | ||
FLAG_STR(RLIMIT_RTPRIO), | ||
FLAG_STR(RLIMIT_RTTIME), | ||
FLAG_STR(RLIMIT_SIGPENDING), | ||
FLAG_STR(RLIMIT_STACK), | ||
}; | ||
|
||
int log_PRLIMIT_RESOURCE(uint64_t value) | ||
{ | ||
return option_log(value, resources, ELEM_COUNT(resources), "RLIMIT_???"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters