Skip to content

0.2.0: the system's refusal of a start for its size is kal_err_no_space (openkal 0.26) - #4

Open
Sunrisepeak wants to merge 1 commit into
mainfrom
openkal-0.26.0
Open

Sunrisepeak wants to merge 1 commit into
mainfrom
openkal-0.26.0

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

openkal 0.26.0 (mcpplibs/openkal#69) requires of every implementation that a start be bounded by the environment alone (clause 7.6) and that observable units be claimed only where a reference can be made (clause 7.18). This is openkal-posix's release for it.

What changes

  • src/posix.cpp, translate: E2BIG is kal_err_no_space. It was not named and fell to kal_err_io. The copy reports the error number of fexecve / execve through the report pipe and the starter translates it.
  • mcpp.toml: version 0.2.0, openkal = "^0.26.0".
  • README.md: the section for 0.2.

What does not change, and why

  • No count bound existed. kal_process_spawn allocates both vectors at their measured size, and kal_env_arg* / kal_env_var* read the vectors the C library gave the program; there is no table on either side.
  • Clause 7.18. kal_process_props does not state KAL_PROCESS_PROP_JOB_OBSERVE and kal_process_job_create answers kal_err_not_supported.

What was measured

The specification's suite at its branch openkal-0.26.0, on Linux x86_64 (glibc, mcpp 2026.11.18.1), features full,exec,random,terminal,space,timeout,map,region:

observations
before the change (manifest at ^0.26.0, E2BIG untranslated) 331 held, 1 did not hold: "an argument of one mebibyte reaches the copy, or the environment's refusal is kal_err_no_space"
with the change 333 held, 0 did not hold, 12 not observed

With the change the three starts and the unit observation read: 2,000 arguments held, 2,000 variables held, an argument of 1 MiB held (refused with kal_err_no_space; Linux admits 128 KiB for one string), "an implementation that does not claim observable units refuses to declare one" held.

Not verified

  • macOS was not run locally; this pull request's CI runs the suite there.
  • This repository has no tests of its own, so none was added; the system's bound is asserted by the specification's suite only.

…ce (openkal 0.26)

- E2BIG from the exec family is kal_err_no_space, where it was kal_err_io
  (clause 7.6); no bound of this implementation's own existed upon an argument
  vector or an environment
- observable units remain unclaimed and kal_process_job_create answers
  kal_err_not_supported (clause 7.18)
- openkal ^0.26.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant