diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2020-05-03 18:38:36 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2020-05-03 18:38:36 +0900 |
commit | b87b7f367c5e4419bb68060637a356a839bee593 (patch) | |
tree | 4d4112325a8c22bddf9c75ea9de839ebb3883836 | |
parent | 0e6ccfdb2b6ae52e077bd6b7b006a5e99e1db704 (diff) | |
download | zsh-b87b7f367c5e4419bb68060637a356a839bee593.tar.gz zsh-b87b7f367c5e4419bb68060637a356a839bee593.tar.xz zsh-b87b7f367c5e4419bb68060637a356a839bee593.zip |
unposted: add a comment about how to add a new resource
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/Builtins/rlimits.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 91755470b..9f8555e31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-05-23 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> + * unposted: Src/Builtins/rlimits.cL add a comment about how to + add a new resource. + * 45614: Completion/Redhat/Command/_dnf: add support for several subcommands and options. 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)"}, |