From b87b7f367c5e4419bb68060637a356a839bee593 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Sun, 3 May 2020 18:38:36 +0900 Subject: unposted: add a comment about how to add a new resource --- Src/Builtins/rlimits.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Src/Builtins/rlimits.c') diff --git a/Src/Builtins/rlimits.c b/Src/Builtins/rlimits.c index aa9b9dd48..5f9c84b0f 100644 --- a/Src/Builtins/rlimits.c +++ b/Src/Builtins/rlimits.c @@ -50,6 +50,13 @@ typedef struct resinfo_T { } resinfo_T; /* table of known resources */ +/* + * How to add a new resource: + * 1. Add zsh_LIMIT_PRESENT(RLIMIT_XXX) in configure.ac. + * 2. Add an entry for RLIMIT_XXX to known_resources[]. + * Make sure the option letter (resinto_T.opt) is unique. + * 3. Build zsh and run the test B12rlimit.ztst. + */ static const resinfo_T known_resources[] = { {RLIMIT_CPU, "cputime", ZLIMTYPE_TIME, 1, 't', "cpu time (seconds)"}, -- cgit v1.2.3