Skip to content

0.3.0: openkal.process and openkal.space, run on the System V kernel and under ibcs-us 4.3-2 - #6

Merged
Sunrisepeak merged 1 commit into
mainfrom
process-and-space
Nov 19, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
process-and-space

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

What

openkal.process and openkal.space are claimed. src/process.cpp had been written for 0.1 and kept unbuilt, because under ibcs-us the replacement of an image left the emulation (ibcs-us handed execve to Linux). mcpp-community/ibcs-us#3 (4.3-2) keeps it in, and the System V kernel itself is now at hand (xim svr4-disk-image, dirun 0.8.0), so a started program can be observed on both.

  • openkal.space: kal_space_start on fork, in the same table of started programs as a spawn, so kal_process_wait/terminate/close apply. Props: CLONE_HANDLES, and DEFERRED_COPY because under ibcs-us the copy is Linux's, which completes it lazily.
  • Found missing by the suite (openkal 0.26.0) and added: kal_process_self + kal_process_info (identifier, ended, processor time from times; a started program's is what the children's times grew by across the wait that collected it), kal_process_channel (a pipe; KAL_PROCESS_PROP_CHANNEL), the resource preference of a start (KAL_RESOURCES, read by kal_env_resources; two at once are kal_err_invalid), kal_process_end_as_requested answering kal_err_invalid with no request.
  • Corrected: wait is given a place for the status. The kernel answers the status in the second result regardless; ibcs-us only when given a place, as a C library's wait(&status) gives.
  • tools/run-conformance.sh: a feature of the suite for every interface the manifest claims; --kernel <dirun> <svr4-disk-image> <qemu> runs on the System V kernel (QEMU's translator).
  • CI: ibcs-us 4.3-2, and a second job running the suite on the kernel (the image is technical verification only).

Measured (local)

Where Observations
AT&T UNIX System V/386 Release 4.0 Version 3.0, QEMU TCG, via dirun 168 held, 0 did not, 19 not observed
ibcs-us 4.3-2, per_uw7 / per_solaris / per_osr5 157 held, 0 did not, 20 not observed (each)
0.2.0 under ibcs-us, for comparison 112 held (process, space, kal_exit/kal_abort in a copy not observed)

The two differ only in the terminal section: on the kernel the program's line is a terminal. Every process and space observation is the same on both.

Next: an openkal-platform release naming 0.3.0 (with the openkal 0.26 family), so the row's programs (a command interpreter's external commands) start programs.

…and under ibcs-us 4.3-2

src/process.cpp (written for 0.1, kept unbuilt) is built and claimed, with
openkal.space on fork beside it in the same table of started programs. It
was unclaimed because under ibcs-us the replacement of an image left the
emulation; ibcs-us 4.3-2 keeps it in (mcpp-community/ibcs-us#3), and the
kernel itself is now at hand (xim svr4-disk-image, dirun 0.8.0).

Added where the specification's suite (openkal 0.26.0) found them missing:
kal_process_self and kal_process_info (identifier, ended, processor time
from times), kal_process_channel (a pipe), the resource preference of a
start (KAL_RESOURCES, read by kal_env_resources), and end_as_requested
answering kal_err_invalid with no request. wait is given a place for the
status: the kernel answers in the second result regardless, ibcs-us only
when it has one.

Measured: on AT&T UNIX System V/386 Release 4.0 Version 3.0, 168
observations held and 0 did not; under ibcs-us 4.3-2, 157 held and 0 did
not under each of per_uw7, per_solaris and per_osr5.

tools/run-conformance.sh selects a feature for every claimed interface and
runs on the kernel with --kernel; CI runs the suite there as a second job.
@Sunrisepeak
Sunrisepeak merged commit 7ef6f08 into main Nov 19, 2026
3 of 4 checks passed
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