aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/outcome.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-15 22:09:33 +0900
committerOphestra <cat@gensokyo.uk>2025-10-15 22:09:33 +0900
commit5e0f15d76b876a039d94dcd4c628cc38dc02a698 (patch)
tree0d9e7b11833abaf9c0ea128cfe6af5b74e492731 /internal/app/outcome.go
parentae65491223a460b0a902993ac81ac91ca69c91fa (diff)
hst/container: additional shim exit codes
These are now considered stable, defined behaviour and can be used by external programs to determine shim outcome. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/outcome.go')
-rw-r--r--internal/app/outcome.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/app/outcome.go b/internal/app/outcome.go
index 87bb1fb4..6f688b81 100644
--- a/internal/app/outcome.go
+++ b/internal/app/outcome.go
@@ -14,6 +14,10 @@ import (
"hakurei.app/system/acl"
)
+// envAllocSize is the initial size of the env map pre-allocated when the configured env map is nil.
+// It should be large enough to fit all insertions by outcomeOp.toContainer.
+const envAllocSize = 1 << 6
+
func newInt(v int) *stringPair[int] { return &stringPair[int]{v, strconv.Itoa(v)} }
// stringPair stores a value and its string representation.