Skip to content

0.2.0 and 0.3.0: openkal 0.26; openkal.process through EXEC - #5

Merged
Sunrisepeak merged 3 commits into
mainfrom
openkal-0.26.0
Nov 22, 2026
Merged

Sunrisepeak merged 3 commits into
mainfrom
openkal-0.26.0

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

openkal-dos and openkal-dos-tools 0.2.0 and 0.3.0, the releases of openkal 0.26 (technical experiment only).

0.2.0 names the specification openkal 0.26; nothing else changes.

0.3.0 provides openkal.process through EXEC (int 21h, 4B00h), which returns when the started program has ended: KAL_PROCESS_PROP_RUNS_TO_END (clause 7.19), with EXIT_STATUS, STREAM_PASSING, NULL_STREAMS, ONE_STRING and BOUND_LIFETIME; the status is int 21h 4Dh's.

  • The vector after the first element is the command tail, quoted by the convention DOS's C compilers divide a tail by, and the program divides its own tail so (0.2.0 divided at blanks alone). DOS gives a program no first element; it travels in KAL_ARG0, bound to the program's name and not listed among the variables.
  • The variables are an environment block of their own, and the directory is DOS's current directory for the call.
  • For the call the caller's handle table holds the three positions (its own handles, placed ones, or NUL) and AUX and PRN, and nothing else (clause 7.13). Measured: with the table left as it was, a copy found its starter's open file.
  • DOS's bounds hold: a tail beyond 126 bytes or an environment beyond 32 KiB is kal_err_no_space, and nothing is shortened (clause 7.6).
  • kal_interfaces() names the nine interfaces the manifest states; it named five.

The examples and tests name openkal-platform 0.31.2, whose group holds openkal 0.26, enable its runner, and CI installs mcpp 2026.11.22.1. tests/fault writes far above its block: under the platform's runner the program is started by REDIR, and the address below the block is REDIR's memory, where 0.2.0 did not fault (status 3). tests/starts checks the start through posix_spawn and waitpid and ends with 42.

- openkal ^0.26.0; openkal-dos-tools carries the same version (one archive)
- no code changes: what 0.26 requires is of openkal.process, which is absent
  here, and what a program receives is bounded by DOS alone (the command
  tail's 127 bytes, the environment block read where it lies)
… first, with its streams and no other handle; the tail divided as DOS's C compilers divide it
@Sunrisepeak Sunrisepeak changed the title 0.2.0: openkal 0.26 0.2.0 and 0.3.0: openkal 0.26; openkal.process through EXEC Nov 22, 2026
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