diff --git a/.crumb b/.crumb index f3e51fe46..43800c32c 100644 --- a/.crumb +++ b/.crumb @@ -48,7 +48,7 @@ }, { "digest": "7ef7796693f23ad68d9a5bcaaee0f635018f4371139a040ba202d4ce7083ede8", - "last_commit": "dd39bf71f", + "last_commit": "943f5139f", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -60,7 +60,7 @@ }, { "digest": "8f0e5cb325040247440527f6b54b65cf72c47ff5adca75b4f32a1ddf2b2d6ade", - "last_commit": "1f320caad", + "last_commit": "43f25831b", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, @@ -72,38 +72,38 @@ }, { "digest": "f765ad87fdddd9b47f690b07298c951a0f7e7675dc5de4ffe44e33a0c14b1986", - "last_commit": "a8a6a3d3c", + "last_commit": "faebae8c1", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "aaf5acb82fd4c720cd60c85fd6087f636c72a98e2f3740c9295dcfa525dc64d7", - "last_commit": "bf54b19fa", + "last_commit": "82a399b9f", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { "digest": "5395ff8ff9afceebe8e453788f80a3064b831513cc4cb92fd55869115e06b874", - "last_commit": "a8a6a3d3c", + "last_commit": "45f7d7691", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "308db0e6cf45c0a48f01f5f5f228450f191389de68006915b9ecf9c65b9a2e29", - "last_commit": "a8a6a3d3c", + "last_commit": "a50c3bd41", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], "children_root": "sha256:07bf1706dcffbad66c0353871ff67a6749055da03cee8d8ebdf9a4c91e36bddc", - "compiled_at": "2026-10-30T12:31:50Z", + "compiled_at": "2026-10-30T16:29:41Z", "compiler": "crumb-compile/1", - "digest": "sha256:904fca8c0e0cf3e3a5e5adb73393e01c7018b920bb542d289904240f70e400d6", + "digest": "sha256:17ae2a8b22160438fe18f7667218325564697da0ceccd449a10ad24f0e0d55e0", "evidence_files": 12622, "evidence_root": "sha256:b1a08e2ce56e6feada0d8a31f06fbd7adee57adc1c1ad8dec220293ee5d439f9", "files": 17849, - "generated_at_commit": "52a82f392fa513ebbc2d9d719a0f14c385289b06", - "source_tree": "sha256:75458da6553a0ee5ea2af95f46afb658e8a3f6e53cca6e3b4b9874035f78c2ed" + "generated_at_commit": "1203cedc1b6aa11bd237b2b65a49bdf77eded786", + "source_tree": "sha256:0c3cd0868dc4abb0667e1144b18f79802c97f1e74f0b5486a7a1c8d05e3ed3fd" }, "owner_lane": "", "provenance": { diff --git a/seed/host/gate.sh b/seed/host/gate.sh index 815a515a9..c1c917d23 100644 --- a/seed/host/gate.sh +++ b/seed/host/gate.sh @@ -144,6 +144,21 @@ compile fchdir (cd "$stage"; ./fchdir) test -f "$stage/subdir/inside" printf 'PASS native fchdir/umask/getppid: directory fd, 0777 under mask 0, parent id\n' +# getppid must name this shell, the direct parent of a simple command: compare the parent id +# with $$ modulo 256 and modulo 251. They are coprime, so a wrong id passes only if it is +# congruent to $$ modulo 64256; getpid (the child, a few ids above $$) and constants fail. +for m in 256 251; do + printf 'fn main to int\nret int rem getppid long %s\nend\n' "$m" > "$stage/ppid.om" + "$OMC" < "$stage/ppid.om" > "$stage/ppid.bin" + chmod +x "$stage/ppid.bin" + set +e + "$stage/ppid.bin" + got=$? + set -e + want=$(($$ % m)) + [ "$got" = "$want" ] || { printf 'FAIL: getppid mod %s exit %s, wanted %s (shell pid %s)\n' "$m" "$got" "$want" "$$" >&2; exit 1; } +done +printf 'PASS native getppid: parent id equals the gate shell pid (mod 256 and mod 251)\n' compile fdsync (cd "$stage"; ./fdsync) printf 'PASS native fdsync/memfd: data sync, closed fd refused, anonymous file rw\n'