summaryrefslogtreecommitdiff
path: root/sys/man/3
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-01-23 21:33:58 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-01-23 21:33:58 +0000
commit60adc40118dda2edf2a238d22d050a7bae5e0d66 (patch)
tree4f20cbe0a8f68485c0c777f689103d673abc76b9 /sys/man/3
parenta5a8a92adf39b1a4525d6b0ddebc75e6db03e5b3 (diff)
devenv: allow environment total size of up to 1MB
Sometimes, there is the one-off occation when one needs to pass a huge list in rc... This change makes devenv track total memory consumption of environment groups allowing them to grow up to 1MB in size (including overhead). (Before, only the variable size was restricted, but not the amount of files being created). The maximum value size of a single environment variable is set to half of the total size, which allows the occational large value. (But not many of them). Because we track all memory consuption, it is also now possible to create around 10k small environment variales. A hashtable is added for name lookups and the qid.path was changed to allow direct indexing into the entry array without needing a scan lookup. All smalloc() calls have been removed, exhaustion is handled with error(Enomem) avoiding deadlock in case we run out of kernel memory.
Diffstat (limited to 'sys/man/3')
-rw-r--r--sys/man/3/env3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/man/3/env b/sys/man/3/env
index 0318f3488..b46e171d8 100644
--- a/sys/man/3/env
+++ b/sys/man/3/env
@@ -58,6 +58,3 @@ in
.IR plan9.ini (8)
.SH SOURCE
.B /sys/src/9/port/devenv.c
-.SH BUGS
-A write starting at an offset after the current extent of a file
-yields an error instead of zero filling.