WIP: Add explicit C runtime components #3

Closed
erikinkinen wants to merge 91 commits from feature/posix-compat into main
Owner

Summary and rationale

Provide explicitly linked C byte/string operations, initialized-thread accessors,
a fixed C-locale error catalog, four LP64 integer conversions, ASCII character
calls, and qsort/bsearch. Partial C headers and Rust declarations describe the
same companion products.

Tracking and scope

Libc design,
authority audit,
Integration review,
manual review,
phase completion.

Complete libc startup, allocation, POSIX adapters, sysroot selection and imported
toolchain workloads remain open.

Architecture, authority and failure behavior

Each component has an explicit source cohort and export policy. Callers own
storage, code and lifetimes; returned pointers add no authority. Thread accessors
require an initialized EriX thread image. Only conversion errors write its errno;
the catalog and ASCII character calls acquire no locale or thread state.

Allocation-free heapsort and binary search call only the supplied comparator.
Their contract
covers padding, bytewise relocation, pinning and callback stack use. Conventional
and prefixed C names share instruction bodies; the prefixed forms additionally
define zero-count/width behavior. No pointers are retained.

Validation evidence

Independent C/Rust/C++ array, ABI, guard-page and link controls accompany the
strict crate and companion checks. Full libc and guest workload acceptance are
tracked separately below.

Review checklist

  • Document pointer, count, callback and link contracts.
  • Complete strict local crate and independent companion checks.
  • Keep component documents current and code below 1,000 physical lines.
  • Complete this signed source's component CI.
  • Complete matching manual/API generation and documentation checks.
  • Complete matching documentation CI.
  • Complete remaining libc, authority audit and guest workload acceptance.
## Summary and rationale Provide explicitly linked C byte/string operations, initialized-thread accessors, a fixed C-locale error catalog, four LP64 integer conversions, ASCII character calls, and `qsort`/`bsearch`. Partial C headers and Rust declarations describe the same companion products. ## Tracking and scope [Libc design](https://git.erikinkinen.fi/erix/lib-cstd/issues/1), [authority audit](https://git.erikinkinen.fi/erix/lib-cstd/issues/2), [Integration review](https://git.erikinkinen.fi/erix/integration/pulls/12), [manual review](https://git.erikinkinen.fi/erix/docs/pulls/4), [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). Complete libc startup, allocation, POSIX adapters, sysroot selection and imported toolchain workloads remain open. ## Architecture, authority and failure behavior Each component has an explicit source cohort and export policy. Callers own storage, code and lifetimes; returned pointers add no authority. Thread accessors require an initialized EriX thread image. Only conversion errors write its errno; the catalog and ASCII character calls acquire no locale or thread state. Allocation-free heapsort and binary search call only the supplied comparator. Their [contract](https://git.erikinkinen.fi/erix/lib-cstd/src/branch/feature/posix-compat/docs/sorting-search.md) covers padding, bytewise relocation, pinning and callback stack use. Conventional and prefixed C names share instruction bodies; the prefixed forms additionally define zero-count/width behavior. No pointers are retained. ## Validation evidence Independent C/Rust/C++ array, ABI, guard-page and link controls accompany the strict crate and companion checks. Full libc and guest workload acceptance are tracked separately below. ## Review checklist - [x] Document pointer, count, callback and link contracts. - [x] Complete strict local crate and independent companion checks. - [x] Keep component documents current and code below 1,000 physical lines. - [ ] Complete this signed source's component CI. - [x] Complete matching manual/API generation and documentation checks. - [ ] Complete matching documentation CI. - [ ] Complete remaining libc, authority audit and guest workload acceptance.
feat: Provide an explicit freestanding C memory companion
All checks were successful
CI / markdown (push) Successful in 11s
CI / memory (push) Successful in 41s
CI / markdown (pull_request) Successful in 3s
CI / memory (pull_request) Successful in 29s
8270170c22
Move the original EriX scalar memory instructions into one library-owned
assembler body with namespaced Rust declarations and an explicit partial C
header. Public and hidden aliases share that body without extra instructions;
callers retain range, lifetime and concurrency obligations.

Build the selected object and archive with explicit tools, original process
ownership, bounded commands and complete failure receipts. Cover byte ranges,
overlap, calling convention, guard boundaries, missing/duplicate companions,
producer failures and selected-source loading. Enforce missing documentation
and strict default/all-feature host and freestanding checks.

This is a partial memory runtime. Coordinated Integration consumers, generated
manual/API documentation, complete CI and native image validation remain open.
feat: Add read-only C byte and string queries
All checks were successful
CI / markdown (push) Successful in 12s
CI / markdown (pull_request) Successful in 12s
CI / memory (push) Successful in 1m24s
CI / memory (pull_request) Successful in 1m24s
2da6379aee
Provide original scalar strlen, strcmp, strncmp and memchr routines through the
same explicitly selected companion as the existing memory operations. Preserve
all memory instruction bytes while binding each new body and alias source to
the producer. Document caller-owned initialized ranges, termination, full-width
counts and returned-pointer access limits without allocation or service effects.

Add independent literal byte-array tests, guarded read-only boundary probes,
real C and Rust callbacks, register-state checks and missing or duplicate
companion rejection. Keep the component source and tool inputs explicit and
separate this leaf from guest toolchain and self-hosted build acceptance.

Validate formatting, strict Clippy, host and freestanding builds and rustdoc;
12 Rust cases in four configurations, 30 array cases, 19 producer controls,
four guarded C/Rust programs and 12 expected link rejections pass. Final
Markdown and workflow checks pass after correcting one overlong line. No
compiler warnings were observed; guest toolchain acceptance remains pending.
erikinkinen changed title from WIP: Provide an explicit freestanding C memory runtime to WIP: Provide explicit freestanding C memory and query routines 2026-09-13 01:08:49 +02:00
feat: Add first and last C character searches
All checks were successful
CI / markdown (push) Successful in 14s
CI / markdown (pull_request) Successful in 14s
CI / memory (push) Successful in 1m14s
CI / memory (pull_request) Successful in 1m15s
9853bcb8d4
Implement strchr and strrchr with one forward byte scan through each valid
terminated string. Document target char conversion, searchable NUL and raw
pointer access limits in Rustdoc and the partial C header. Preserve the original
memory and query instructions and use the existing explicit companion policies.

Validate literal and independent array cases, protected-page boundaries,
actual mixed C/Rust callbacks, external call relocations and calling state.
Formatting, strict Clippy, warning-denied host/freestanding builds and rustdoc
pass; 60 Rust test executions, 36 array cases, 19 producer controls and four
mixed host programs pass. Keep complete libc and guest build acceptance open.
feat: Implement bounded C string copies and concatenation
All checks were successful
CI / markdown (pull_request) Successful in 14s
CI / markdown (push) Successful in 14s
CI / memory (pull_request) Successful in 1m18s
CI / memory (push) Successful in 1m19s
d48bae1bb1
Add strcpy, strncpy, strcat and strncat through one original byte-loop
runtime section with versioned Rust entry points and opt-in public C aliases.
Document destination capacity, source validity, nonoverlap, zero counts,
padding and termination. Keep existing memory and query instructions intact;
the operations retain no pointers and require no allocation or authority.

Validation: strict formatting, Clippy, builds and rustdoc pass. Execute 92
Rust tests, 54 array cases, 21 producer controls, four guarded mixed C/Rust
programs and 16 expected link rejections. Preserve the corrected ctypes
fixture failure and Markdown wrapping failure. Affected documentation and
workflow checks pass. Component CI and coordinated manual refresh remain
pending; complete C runtime and guest self-hosting acceptance remain open.
erikinkinen changed title from WIP: Provide explicit freestanding C memory and query routines to WIP: Implement freestanding C memory and string primitives 2026-09-13 04:48:06 +02:00
feat: Add freestanding C string span and set queries
All checks were successful
CI / markdown (pull_request) Successful in 19s
CI / markdown (push) Successful in 19s
CI / memory (push) Successful in 1m25s
CI / memory (pull_request) Successful in 1m25s
4207509c86
Implement strspn, strcspn and strpbrk using caller-local 32-byte bitmaps.
Preserve byte-only input reads, NUL boundaries, read-only overlap and source
pointer permissions without shared state, heap allocation or service authority.
One selected companion retains all preceding memory and string instructions.

Validate formatting, strict Clippy, warning-denied host and freestanding
builds/rustdoc, 120 Rust test executions, 78 array tests and 23 producer
controls. Eight mixed C/Rust programs exercise guarded input and stack
boundaries, register preservation and deliberate checker faults; 28 expected
link rejections preserve missing and duplicate companion contracts.

The native Integration graph still selects its earlier memory-only source.
Matching generated documentation and guest/self-hosting acceptance remain
separate follow-ups; this partial runtime does not establish a full libc.
feat: Add bounded C string length
All checks were successful
CI / markdown (push) Successful in 15s
CI / markdown (pull_request) Successful in 15s
CI / memory (push) Successful in 1m29s
CI / memory (pull_request) Successful in 1m30s
bdcbbea435
Implement strnlen with full-width bounds and immediate stopping at NUL or
the caller count. Preserve every previous function body and avoid unused
endpoint arithmetic, shared state, allocation and runtime authority.

Document pointer obligations and the namespaced raw null-zero extension.
Check independent byte oracles, protected-page boundaries, mixed C/Rust
callbacks and exact missing-companion controls. Rust formatting, strict Clippy, host/freestanding builds and rustdoc pass.
All 132 Rust case executions, 90 array cases, 23 producer controls and 12
mixed programs pass; 40 intentional link failures reject as expected.
Documentation and source checks pass with no warnings. Matching manual
updates and component CI remain follow-up gates.
build: Select the receipt-preserving process owner
All checks were successful
CI / markdown (push) Successful in 7s
CI / markdown (pull_request) Successful in 7s
CI / memory (pull_request) Successful in 1m17s
CI / memory (push) Successful in 1m17s
a76f6faa1e
Pin the reviewed Integration owner and its exact local import identity in
the producer and CI. Keep the original instruction witness separately
pinned and parse its assembly without executing the retired generator.
Document exclusive receipt custody and preserve every runtime source.

The complete local checker passes 211 commands, including 132 Rust case
executions, 90 array cases, 23 producer controls, 12 mixed C/Rust programs
and 40 expected link rejections. Strict host/freestanding builds, Clippy,
formatting, private rustdoc and documentation checks pass without warnings.
Native consumer adoption and original new-source CI remain required.

Refs: erix/integration#99
docs: Record native accounting and matched counter evidence
All checks were successful
CI / markdown (push) Successful in 14s
CI / markdown (pull_request) Successful in 9s
CI / memory (push) Successful in 1m29s
CI / memory (pull_request) Successful in 1m30s
50b9d28919
Record the complete fourteen-snapshot native accounting acceptance and
original mapping/lifecycle/client regressions. Keep every authority,
deadline and cleanup requirement. Report the matched startup instruction
counter reduction without claiming elapsed-time speedup or full lifecycle
completion. Retain the rejected comparison and corrected baseline inputs.

Record current CI evidence, including unavailable failed Docs job logs.
Only ROADMAP changes; code, helper, catalog and manual source identities
retain their original validation. Fresh documentation, dependency policy,
diff and applicable formatting checks pass without warnings. Supervisor
loss, remaining cleanup/exhaustion and complete guest builds remain open.

Refs: erix/integration#65
Refs: erix/docs#11
ci: Skip duplicate same-repository pull request jobs
All checks were successful
CI / memory (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / memory (push) Successful in 1m25s
a1845bc407
Skip pull-request jobs when the head and base repository names match,
since push CI already covers these branches. Retain fork pull-request,
push and manual execution and existing release publication conditions.
Apply the guard before any job steps, including Markdown validation.

Test execution and CI observation are deferred at the user's request;
no execution result is claimed for this workflow-only change.
feat: Provide explicit original initialized-thread primitives
Some checks failed
CI / memory (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 3s
CI / memory (push) Failing after 30s
df937419b8
Implement original errno-location and sparse TLS-index accessors against the
initialized EriX TCB/DTV/registry, plus the register-preserving eager RAX
descriptor resolver. Expose documented unsafe Rust/C interfaces and exclusive
caller byte-image preflight without metadata as native authority or a global
errno fallback. Refactor one bounded original producer for separate memory/thread
roles and receipts, removing the superseded script path. Preserve all eighteen
older bodies and author literal image plus freestanding C/assembly controls.
Full consumer packaging, negative-link/guard driver and lifecycle stay open.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
erikinkinen changed title from WIP: Implement freestanding C memory and string primitives to WIP: Implement explicit C memory, string and initialized-thread primitives 2026-10-12 02:49:47 +02:00
feat: Package original compatibility primitives and bounded thread controls
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / thread (push) Successful in 25s
CI / memory (push) Failing after 32s
054a2294f1
Add explicit compatibility packaging of the original eighteen memory/string
and three initialized-thread entries, preserving standalone components and
source bodies. Share original symbol/archive parsing and exact signal-status
cleanup evidence. Author bounded object/alias/text/guard/fault/link controls
and a separate CI job with duplicate PR routing. Correct probe ELF entry
alignment and typed errno; disable fixture core dumps. No control was executed.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
docs: Document actual native runtime consumers
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / thread (push) Successful in 24s
CI / memory (push) Failing after 35s
913964572c
Describe hidden compatibility support for user shared objects and separate
public memory-only Kernel bootstrap. Correct crate-level producer navigation
and maintain component contracts without claiming full libc or execution.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
ci: Adopt the signed original Git dependency helper
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 30s
CI / memory (push) Failing after 38s
a0259a1214
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
fix: Preserve exact thread image alignment with current strict lint
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / memory (push) Failing after 58s
CI / thread (push) Successful in 29s
4aa48e8092
Use equivalent integer divisibility predicates for the original thread pointer
and DTV alignment preflight. Preserve error precedence, complete original byte
immutability and explicit initialized-image authority. Formatting and strict
host/freestanding Clippy pass. Complete maintained companion-linked runtime
validation runs in parallel; raw Cargo tests without the required companion
cannot substitute for that matrix. Track the actual regression in issue #4.
ci: Adopt the signed original Git dependency helper
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Failing after 23s
CI / memory (push) Failing after 31s
2d4b51b547
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
build: Bind runtime validation to the reviewed explicit source helper
Some checks failed
CI / thread (pull_request) Has been skipped
CI / memory (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 23s
CI / memory (push) Successful in 39s
CI / markdown (push) Failing after 1h0m50s
a9ca13e176
Review the actual signed process-owner input after Git-boundary hardening and
record its exact digest. Express the original high-bit probe count as its full
literal value to avoid an unrelated debug overflow helper. Preserve instruction
bodies, receipts, independent symbol/guard controls and finite process budgets.
All 212 memory and 376 thread matrix commands pass with the signed hardened
helper, alongside five object-contract controls and zero warnings.
docs: Describe component responsibilities and remaining work clearly
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 27s
CI / memory (push) Successful in 49s
4cfe90cfd2
Replace generic repository descriptions with the component responsibilities
and caller obligations. Correct stale or duplicated wording while retaining
technical constraints, existing links and the documentation structure.
docs: Enforce documentation lint in discovered test crates
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 24s
CI / memory (push) Successful in 46s
be1b11a30e
Apply the existing missing_docs policy to automatically discovered Cargo
integration-test roots. Retain their crate documentation and keep production
interfaces unchanged so each compiled target enforces the same documentation
requirement.
build: Adopt the owned metadata helper for C runtime production
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Failing after 21s
CI / memory (push) Failing after 28s
0d68387fa4
Bind runtime production to the exact metadata owner and require positive
command cleanup receipts. Select that signed helper in both memory and thread
CI jobs while preserving the independent memory instruction witness.
build: Select the owner with native query preflight
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / thread (push) Failing after 27s
CI / memory (push) Failing after 40s
c857382164
Pin the C runtime producer to the reviewed Integration owner that checks
self descriptor queries before spawning. Preserve the two original owner
source witnesses and unchanged runtime assembly.
Author
Owner

The C runtime producer now selects the reviewed owner that checks native self-descriptor comparisons before spawning, with exact witnesses for its two original source files. Runtime assembly and the independent instruction witness are unchanged. Deployed-host compatibility remains tracked in Integration #113.

The C runtime producer now selects the reviewed owner that checks native self-descriptor comparisons before spawning, with exact witnesses for its two original source files. Runtime assembly and the independent instruction witness are unchanged. Deployed-host compatibility remains tracked in [Integration #113](https://git.erikinkinen.fi/erix/integration/issues/113).
build: Bind runtime producers to the repaired native owner
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 10s
CI / thread (push) Failing after 29s
CI / memory (push) Failing after 35s
5ea6f502bb
Keep producer source witnesses and both CI helper selections on the same
complete native signal and descriptor ownership contract. Compiled runtime
code and the independent memory witness remain unchanged.
ci: Adopt the signed native process helper
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Failing after 17s
CI / memory (push) Failing after 23s
a5530e4965
Select the coherent Integration source for native child custody and descriptor
comparison. Preserve the existing jobs, container isolation and pull-request
deduplication conditions.
feat: Add constant-storage substring search
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Failing after 12s
CI / memory (push) Failing after 26s
4dccc58cec
Implement strstr with full-width byte matching and critical-factor
progress for repetitive inputs. Keep caller-owned string lifetimes
and read-only aliases explicit, and expose the original body through
both namespaced Rust and conventional C declarations.
Extend the selected companion cohort while preserving existing
memory, string and thread implementations and export policies.
Author
Owner

The signed substring implementation adds strstr to the nineteen byte/string operations. It preserves the first match using constant local storage and leaves input permissions, lifetime and errno unchanged. The manual/API and Integration selection now match the complete body/alias cohort. Full libc, actual compatibility workloads and guest builds remain open. Native CI admission remains tracked in Integration #113.

The [signed substring implementation](https://git.erikinkinen.fi/erix/lib-cstd/commit/4dccc58cecf65f85a12d462cd662f4e3cf4a837c) adds `strstr` to the nineteen byte/string operations. It preserves the first match using constant local storage and leaves input permissions, lifetime and errno unchanged. The [manual/API](https://git.erikinkinen.fi/erix/docs/commit/f3218351ed57a6c61c7ab5d27e1bdf16d1e159a1) and [Integration selection](https://git.erikinkinen.fi/erix/integration/commit/feaea0bed0bc97be79d952920dae8c5c1cc5b990) now match the complete body/alias cohort. Full libc, actual compatibility workloads and guest builds remain open. Native CI admission remains tracked in [Integration #113](https://git.erikinkinen.fi/erix/integration/issues/113).
feat: Add an explicit C-locale error catalog
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Failing after 11s
CI / memory (push) Failing after 15s
1ad230f920
Provide immutable descriptions and canonical names for the assigned EriX
errors, with complete caller-owned copies that preserve short buffers.
Package the catalog as a separate companion and include its original bytes
in compatibility objects without accessing locale or thread state.
Author
Owner

The error catalog implementation is signed and pushed. It provides fixed C-locale descriptions and canonical names for all 39 assigned EriX errors, plus complete copies into caller-owned buffers. Unknown signed values and short buffers write nothing; these calls neither consult locale nor change errno. The error companion is separate, and compatibility packaging includes its original immutable data.

Integration and manual/API adoption are underway. Conventional error interfaces, further errno assignments, native mappings and mediated diagnostics remain open. The current CI run still stops at the runner prerequisite before assembly; it does not establish component acceptance.

The [error catalog implementation](https://git.erikinkinen.fi/erix/lib-cstd/commit/1ad230f92074f33a57d75cc2c81795d5d675d6eb) is signed and pushed. It provides fixed C-locale descriptions and canonical names for all 39 assigned EriX errors, plus complete copies into caller-owned buffers. Unknown signed values and short buffers write nothing; these calls neither consult locale nor change errno. The error companion is separate, and compatibility packaging includes its original immutable data. Integration and manual/API adoption are underway. Conventional error interfaces, further errno assignments, native mappings and mediated diagnostics remain open. The [current CI run](https://git.erikinkinen.fi/erix/lib-cstd/actions/runs/48) still stops at the [runner prerequisite](https://git.erikinkinen.fi/erix/integration/issues/113) before assembly; it does not establish component acceptance.
docs: Correct thread and compatibility runtime scope
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Failing after 15s
CI / memory (push) Failing after 21s
2dc319a11c
Describe the current memory, thread and error cohorts and their complete
compatibility source inventory. Replace stale unrun claims with bounded
host evidence while preserving open native consumer and guest requirements.
Author
Owner

The error catalog and its Integration and manual support are published. Message/name lookups retain no caller pointers; copies write only when the entire result fits. The current interface keeps its prefixed names while the remaining libc contracts are implemented.

The error catalog and its Integration and manual support are published. Message/name lookups retain no caller pointers; copies write only when the entire result fits. The current interface keeps its prefixed names while the remaining libc contracts are implemented.
feat: Add ERANGE to the fixed C error catalog
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Failing after 12s
CI / memory (push) Failing after 15s
b9adbd8abb
Describe local ERANGE assignment 40 through the immutable message and name lookups and complete caller-buffer copies. Preserve earlier catalog entries, unknown signed-input behavior and the separate packet vocabularies.
Author
Owner

The fixed catalog now includes ERANGE=40 and its original message, name and complete caller-buffer copy. Earlier entries retain their bytes and unknown inputs still return without access. Integration and manual adoption are continuing; existing packet vocabularies and native mappings remain separate.

The [fixed catalog](https://git.erikinkinen.fi/erix/lib-cstd/src/commit/b9adbd8abbeb18bc016842bfa410c259f88cf4df/docs/error-catalog.md) now includes ERANGE=40 and its original message, name and complete caller-buffer copy. Earlier entries retain their bytes and unknown inputs still return without access. Integration and manual adoption are continuing; existing packet vocabularies and native mappings remain separate.
feat: Add explicit fixed C-locale integer conversions
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Failing after 17s
CI / memory (push) Failing after 23s
b15c045255
Provide four LP64 conversion calls through one shared signed and unsigned
parser. Preserve complete digit endpoints, full-width limits and existing
thread errno on success; errors use only the admitted original thread word.
Select conversion and thread sources explicitly while keeping standalone
products and compatibility receipt fields stable.

Accept GNU long-name archive framing so the conversion object can be
checked without extraction or a short filename limit. Retain exact object
identity and malformed-container refusals.

Refs #1
Fixes #6
Author
Owner

b15c0452 adds four explicit fixed C-locale integer conversions over one shared signed/unsigned parser. Base and prefix handling, full-width bounds, overflow endpoints and error-only original thread errno are implemented. The companion selects conversion and thread sources explicitly; compatibility keeps its existing receipt fields. The related GNU archive defect is closed. Integration consumers and generated manual/API references are being updated. Conventional aliases, locale ownership, floating conversion and stdio remain open.

[b15c0452](https://git.erikinkinen.fi/erix/lib-cstd/commit/b15c045255a3030bb9d36e82d9b2a4da2ef2fb4a) adds four explicit fixed C-locale integer conversions over one shared signed/unsigned parser. Base and prefix handling, full-width bounds, overflow endpoints and error-only original thread errno are implemented. The companion selects conversion and thread sources explicitly; compatibility keeps its existing receipt fields. The related [GNU archive defect](https://git.erikinkinen.fi/erix/lib-cstd/issues/6) is closed. Integration consumers and generated manual/API references are being updated. Conventional aliases, locale ownership, floating conversion and stdio remain open.
erikinkinen changed title from WIP: Implement explicit C memory, string and initialized-thread primitives to WIP: Add explicit C runtime components 2026-10-14 08:17:37 +02:00
Author
Owner

Matching manual and API pages now describe all four integer conversions and their pointer/thread contracts. Integration selects the same Cstd source cohort. The two matching documentation checklist items are complete; full libc and guest workloads remain open.

[Matching manual and API pages](https://git.erikinkinen.fi/erix/docs/commit/e66ff4497f2d8237c4152f56a28bdbc6297cfb83) now describe all four integer conversions and their pointer/thread contracts. Integration selects the same [Cstd source cohort](https://git.erikinkinen.fi/erix/integration/commit/4ee33eb85d4257536abb07c208ba52b0def2b995). The two matching documentation checklist items are complete; full libc and guest workloads remain open.
build: Bind the repaired native command owner
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / thread (push) Successful in 36s
CI / memory (push) Successful in 1m38s
49e27442f0
Require the Metadata source that classifies reserved native signals
from their actual dispositions. Select its signed Integration helper
for both CI roles and preserve the independent dependency witness.
ci: Adopt the repaired native signal owner
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 15s
CI / thread (push) Successful in 1m19s
CI / memory (push) Successful in 2m39s
73b6647c08
Select the coherent Integration helper that admits observed default or
ignored reserved signals while preserving complete native action identity.
Keep the existing workflow commands and limits for Integration #118.
feat: Add fixed C-locale character operations
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / thread (push) Successful in 44s
CI / memory (push) Successful in 1m57s
2f983563f9
Provide fourteen ASCII classification and case-conversion calls through a
separate scalar companion. Define the full signed-int domain and expose safe
Rust declarations without locale, thread or service state.

Share section framing across runtime checks and keep the existing component
cohorts unchanged when the character companion is not selected.
Author
Owner

Added fourteen fixed C-locale character functions in 2f983563: twelve ASCII predicates and two case conversions. The scalar Rust calls are safe and define the full signed-int domain, without locale or thread state.

The character companion is linked separately. Manual/API adoption is next; conventional ctype interfaces and toolchain sysroot adoption remain open.

Added fourteen fixed C-locale character functions in `2f983563`: twelve ASCII predicates and two case conversions. The scalar Rust calls are safe and define the full signed-int domain, without locale or thread state. The [character companion](https://git.erikinkinen.fi/erix/lib-cstd/src/branch/feature/posix-compat/docs/character-handling.md) is linked separately. Manual/API adoption is next; conventional ctype interfaces and toolchain sysroot adoption remain open.
feat: Add explicit C sorting and binary search
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / thread (push) Successful in 56s
CI / memory (push) Successful in 2m21s
7e42dbc751
Provide allocation-free qsort and bsearch companions with conventional and
prefixed C entry points. Iterative heapsort and binary search use only caller
arrays and comparison callbacks, with documented relocation, ABI and lifetime
contracts and no implicit runtime state.
Author
Owner

Added qsort and bsearch in 7e42dbc7. Iterative heapsort and binary search operate on caller-owned storage through an explicit comparator. Conventional and prefixed entry points share the same instruction bodies; the contracts cover padding, relocation, lifetimes and callback stack use. The manual/API update follows in Docs PR4.

Added `qsort` and `bsearch` in [7e42dbc7](https://git.erikinkinen.fi/erix/lib-cstd/commit/7e42dbc751f7d99cae6f1d744c71ecc3a8af8bb9). Iterative heapsort and binary search operate on caller-owned storage through an explicit comparator. Conventional and prefixed entry points share the same instruction bodies; the contracts cover padding, relocation, lifetimes and callback stack use. The manual/API update follows in [Docs PR4](https://git.erikinkinen.fi/erix/docs/pulls/4).
docs: Align shared dependency and review policies
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / thread (push) Successful in 37s
CI / memory (push) Successful in 1m56s
0c096342c9
Keep main declarations separate from exact resolved source identities. Record
status updates in comments and keep checklist and scope edits in issue bodies.

Refs: erix/integration#142
Author
Owner

Started CI 68 through the supported workflow dispatch API at the unchanged 0c096342c95147d391cb16a02f326e612408cbe2 source. It runs the memory, thread and Markdown jobs. The original run and its missing-log evidence remain intact; the original executable failure cause is still unknown.

Tracks the setup and log failure.

Started [CI 68](https://git.erikinkinen.fi/erix/lib-cstd/actions/runs/68) through the supported workflow dispatch API at the unchanged `0c096342c95147d391cb16a02f326e612408cbe2` source. It runs the memory, thread and Markdown jobs. The original run and its missing-log evidence remain intact; the original executable failure cause is still unknown. Tracks [the setup and log failure](https://git.erikinkinen.fi/erix/lib-cstd/issues/7).
Author
Owner

CI 68 passes memory, thread and Markdown validation on the unchanged source, with complete warning-free logs. The CI recovery issue is closed; the original missing logs and unknown failure cause remain recorded.

[CI 68](https://git.erikinkinen.fi/erix/lib-cstd/actions/runs/68) passes memory, thread and Markdown validation on the unchanged source, with complete warning-free logs. [The CI recovery issue](https://git.erikinkinen.fi/erix/lib-cstd/issues/7) is closed; the original missing logs and unknown failure cause remain recorded.
Author
Owner

The source now includes ordinary C startup over the shared heap. String duplication is the next addition, with native consumer work underway.

The source now includes [ordinary C startup](https://git.erikinkinen.fi/erix/lib-cstd/issues/9) over the shared heap. [String duplication](https://git.erikinkinen.fi/erix/lib-cstd/issues/10) is the next addition, with native consumer work underway.
Provide stpcpy through the explicit memory and compatibility companions. Return
the written destination terminator without reading destination bytes, allocating
storage or changing thread state, and bind the new checker helper to its source.
Implement stpncpy over disjoint caller storage, returning the first written NUL
or the end of a full copy. Zero-pad the remaining count without reading beyond
the source terminator, and retain the existing companion source roles.
Expose GNU mempcpy through the existing memory runtime and C ABI. Copy the caller's complete representation-byte range without string termination, padding, allocation or retained pointers, and preserve the preceding routine sources.
Use language-specific private header adapters and C linkage while preserving
all existing runtime instructions and caller storage obligations. Keep C and
C++ declarations on the same explicitly selected companion.
Add an explicitly selected allocation companion over the existing region allocator. Keep one installed backing region for both the C allocation family and Rust layouts, with genuine thread errno and no implicit provider in shared objects.
The process heap adds a workspace member with main-branch dependencies. Resolve the original graph in an owned generated checkout, cover both crates and allocation headers, and retain each native owner through the shared deadline.
Construct counted mutable arguments and exported environment from admitted launch input. Retain the shared process heap, handlers, I/O backend and separate whole-process terminal owner across startup and exit.
Add strdup and strndup with checked terminated extents and independent same-heap ownership. Keep native error reporting on the initialized current EriX thread, preserve successful errno, and expose the same contracts through Rust and partial C/C++ declarations.
Split mutable byte strings with an explicit continuation pointer and unsigned separator membership. Supply the native alias through the original instruction companion without selecting a heap, thread runtime or shared parser state.
test: Include tokenization in the runtime checker inventory
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 6s
CI / thread (push) Successful in 56s
CI / memory (push) Failing after 1m0s
4cd475d46b
Register the tokenizer ABI fixture in formatting checks and account for the complete selected array-oracle roster. Clarify the narrower historical mixed-execution counter so thematic executions keep their own records.
feat: Add shared-heap process environment mutation
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / memory (push) Failing after 33s
CI / thread (push) Successful in 41s
37013e58b5
Keep one current environment table over the original process heap. Support
copied setenv values, borrowed putenv bytes, direct environ replacement,
unsetenv and literal-NULL clearenv without provider discovery or added rights.
Retain actual table and string allocations while current interior aliases
remain, and keep environment data usable from normal exit handlers.

Add native errno adapters, partial C/C++ interfaces and explicit heap, alias,
failure and lifecycle controls. Preserve existing instruction companions and
process terminal ownership.

Refs #12.
Author
Owner

Added the process environment APIs on the shared heap: copied setenv values, borrowed putenv strings, unsetenv, clearenv and current-table getenv. Replacement tables and interior aliases have explicit ownership and lifetime rules. See the environment API issue for the contract and remaining acceptance.

Added the process environment APIs on the shared heap: copied `setenv` values, borrowed `putenv` strings, `unsetenv`, `clearenv` and current-table `getenv`. Replacement tables and interior aliases have explicit ownership and lifetime rules. See [the environment API issue](https://git.erikinkinen.fi/erix/lib-cstd/issues/12) for the contract and remaining acceptance.
fix: Restore startup lifecycle compilation
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 34s
CI / thread (push) Successful in 1m54s
CI / memory (push) Failing after 2m39s
7e1e389bd5
Bring the process-terminal trait into scope and place lifecycle controls under their private owning module. Assert the actual environment source and pointer-cell mutations while preserving production visibility and terminal behavior.
refactor: Simplify environment exhaustion loop
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 26s
CI / thread (push) Successful in 1m31s
CI / memory (push) Failing after 2m7s
9d2967d0d6
Use allocation success as the loop condition while retaining every original block and its layout for cleanup. Exhaustion and recovery assertions keep their existing behavior.
docs: Format the main argument expression as code
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 5s
CI / memory (push) Failing after 52s
CI / thread (push) Successful in 54s
e4fe5820ef
Quote argv[0] in the startup API comment so rustdoc renders it as an expression instead of resolving an item link.
feat: Add explicit process-root C descriptor adapters
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 39s
CI / thread (push) Successful in 1m54s
CI / memory (push) Failing after 3m7s
b529bd18f3
Provide prefixed read, write and close entries over a concrete admitted
backend, with uninitialized-byte-aware read spans and independent call custody.
Keep completed errno separate from transport uncertainty and retain original
buffers, packets and raw returns until native retirement or group terminality.

Include the fourth workspace member in package, target, documentation and
C/C++ interface coverage. Conventional POSIX aliases and ordinary realm
admission remain separate from this explicit bridge.
fix: Type descriptor I/O fixtures as byte storage
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 44s
CI / memory (push) Failing after 3m18s
CI / thread (push) Successful in 2m11s
9411f35f9c
Keep scalar and array buffers as u8 before erasing their pointer types so the descriptor probes use the intended byte ranges.
Author
Owner

Published the namespaced descriptor I/O bridge and partial C/C++ headers. Concurrent calls retain their own original realm call storage; the provider remains an explicit process-root object. The source graph and technical manual describe the same contract.

Conventional aliases, libc signal delivery, compatibility startup and guest acceptance remain open.

Published the namespaced descriptor I/O bridge and partial C/C++ headers. Concurrent calls retain their own original realm call storage; the provider remains an explicit process-root object. The source graph and technical manual describe the same contract. Conventional aliases, libc signal delivery, compatibility startup and guest acceptance remain open.
Describe the descriptor header and four-package workspace, and use the selected owner import closure in build guidance. Normalize paragraph spacing, wrapping and final newlines across the affected documents.
ci: Use the main-declaration policy and complete helper closure
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 19s
CI / thread (push) Successful in 1m8s
CI / memory (push) Failing after 1m38s
2190cdffbd
Select the published Integration helpers consistently for process ownership, source preparation and dependency policy. Verify the complete local import set before execution and restore every original module slot after loading the process owner.
fix: Retire generated Cargo evidence through its original owner
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 31s
CI / memory (push) Failing after 4m47s
7d403e80d1
Retire the selected helper evidence independently of input verification and preserve the caller until cleanup finishes. Pass the explicit helper selection to workspace controls and let the checkout gateway handle its standard metadata directories.
test: Check the selected process owner source
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 38s
CI / memory (push) Failing after 6m4s
72b0159c22
Verify the cache-control fixture loads run_owned from its selected original file instead of requiring a removed helper reexport. Preserve all three timestamp-valid bytecode controls.
feat: Add typed mediated C file interfaces
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 3s
CI / thread (push) Successful in 31s
CI / memory (push) Failing after 1m26s
d762d05843
Extend the original process-root I/O binding with counted file operations, complete typed replies and caller-owned vector views. Preserve independent call lifetimes, full result bounds and terminal failure evidence without adding an allocator or provider lookup. Supply fixed C and Rust declarations, headers and component contracts.

Refs: #14
fix: Keep file adapter result types unambiguous
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / thread (push) Successful in 40s
CI / memory (push) Failing after 3m11s
a956f78a64
Import only the ABI values used by the file helpers so their result signatures retain the standard error parameter. Normalize component documentation separators.
fix: Import the native descriptor value explicitly
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / thread (push) Successful in 46s
CI / memory (push) Failing after 6m28s
9aa922d116
Keep descriptor validation available in the native file projections alongside the explicitly selected ABI value imports.
Author
Owner

Added the mediated file interfaces: opening, duplication, positioned/vector I/O, metadata, namespace operations and filesystem controls. Counted paths and typed results use the existing root binding; the runtime adds no allocator or provider lookup.

Added the [mediated file interfaces](https://git.erikinkinen.fi/erix/lib-cstd/issues/14): opening, duplication, positioned/vector I/O, metadata, namespace operations and filesystem controls. Counted paths and typed results use the existing root binding; the runtime adds no allocator or provider lookup.
Carry futimens and counted utimensat through the original typed IO binding.
Decode fractions before seconds so Now and Omit never read ignored fields,
preserve the full signed explicit domain, and retain ordinary target checks
for Noop without accepting caller-selected clocks or change times.
Clarify that numeric geometry failures read no record and the first invalid
fraction stops later field loads. Keep live backing and initialization
requirements explicit for every field the decoder actually consumes.
test: Include timestamp signatures in the header grammar oracle
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 8s
CI / thread (push) Successful in 56s
CI / memory (push) Failing after 8m23s
52c030a400
Keep the independent grammar count on all 37 fixed file interfaces. The two
timestamp declarations add six conflicting-prototype cases across the three
C and C++ modes; the existing positive and negative controls stay intact.
Author
Owner

Added counted erix_c_futimens and erix_c_utimensat interfaces through the existing process-root IO binding. Intake reads each fraction first and never loads ignored seconds for Now/Omit. The file header now exposes 37 fixed interfaces.

Tracked in file timestamp updates.

Added counted erix_c_futimens and erix_c_utimensat interfaces through the existing process-root IO binding. Intake reads each fraction first and never loads ignored seconds for Now/Omit. The file header now exposes 37 fixed interfaces. Tracked in [file timestamp updates](https://git.erikinkinen.fi/erix/posixd/issues/43).
fix: Preserve unresolved names in the end-copy refusal
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 52s
CI / memory (push) Failing after 8m6s
fa8a8b44fa
Report the actual missing symbol set when the historical companion fails
its exact two-name check. Keep that gate intact and wrap the timestamp
contract paragraph to the maintained document width.
test: Keep end-copy callbacks freestanding in debug builds
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / thread (push) Successful in 50s
CI / memory (push) Failing after 7m45s
6c63badb56
Spell out both count-width calls and the original buffer checks so array iteration and comparison do not import core panic helpers. Keep the real C/Rust callbacks and exact missing-symbol requirement.
fix: Keep the tokenization probe freestanding
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 42s
CI / memory (push) Failing after 7m6s
6782c2529d
Use explicit callback calls and byte checks so debug builds do not import range-iterator or multiplication panic helpers into the C linkage probe.
fix: Show the actual missing C++ header symbols
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / thread (push) Successful in 33s
CI / memory (push) Failing after 5m58s
4a8b5229a9
Keep exact core-only missing-name equality and include both symbol sets in its diagnostic so unexpected debug helpers can be identified.
fix: Keep the C++ header callback probe freestanding
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 41s
CI / memory (push) Successful in 6m25s
3798efee89
Use two explicit callback cases and scalar byte checks so the debug Rust witness does not import iterator panic helpers. Preserve the high argument values, untouched bytes, pointer ends and callback round trip.
feat: Add mediated directory changes and staged physical cwd reads
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 57s
CI / markdown (push) Successful in 12s
CI / memory (push) Failing after 4m21s
0d330cc8cb
Provide prefixed chdir, fchdir and getcwd interfaces over the bound process realm. Reserve release control before report acquisition, validate immutable pages and publish caller bytes only after report and native caller retirement.
test: Construct cwd geometry sentinels with the pointer API
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / thread (push) Successful in 57s
CI / memory (push) Successful in 9m3s
9ec0cad890
Use core::ptr::dangling_mut for the nonnull pointer in zero-size and overflow cases. Preserve rejection before pointer access and all existing error expectations.
feat: Add mediated directory iteration adapters
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 28s
CI / memory (push) Successful in 4m52s
2c7edd50c1
Give process-root C and Rust callers complete raw directory entries, EOF and opaque cursor operations through their retained realm binding. Publish output after caller retirement and preserve uncertain calls and their original buffers.

Add the counted C record, matching declarations, independent controls and the directory contract tracked in #15.
Author
Owner

Added namespaced directory read, tell, seek and rewind in this change. The interfaces preserve complete raw names, EOF and shared-description cookies through the retained realm. The directory issue tracks the remaining native workload and API-reference work.

Added namespaced directory read, tell, seek and rewind in [this change](https://git.erikinkinen.fi/erix/lib-cstd/commit/2c7edd50c116e0176ff8ac49748db8a4998fbcf8). The interfaces preserve complete raw names, EOF and shared-description cookies through the retained realm. [The directory issue](https://git.erikinkinen.fi/erix/lib-cstd/issues/15) tracks the remaining native workload and API-reference work.
feat: Add mediated C poll and select interfaces
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 3s
CI / thread (push) Successful in 31s
CI / memory (push) Successful in 5m34s
5ee0228012
Expose readiness calls with counted caller storage and checked output through the existing process I/O runtime. Bind the complete command-owner cohort used to build the runtime and retain its original lifetime across helper aliases.

Refs erix/lib-cstd#16.
Author
Owner

Added the namespaced poll/select interfaces in this checkpoint: counted LP64 sets, per-call snapshots and output publication after correlated completion and positive retirement. The design keeps conventional aliases and C signal-handler delivery separate.

Added the namespaced poll/select interfaces in [this checkpoint](https://git.erikinkinen.fi/erix/lib-cstd/commit/5ee02280128f6ba583a5f378866d3861ab48214b): counted LP64 sets, per-call snapshots and output publication after correlated completion and positive retirement. [The design](https://git.erikinkinen.fi/erix/lib-cstd/issues/16) keeps conventional aliases and C signal-handler delivery separate.
docs: Normalize spacing around readiness contracts
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / thread (push) Successful in 38s
CI / memory (push) Successful in 6m8s
11d48a15d3
Use one paragraph separator around the new readiness descriptions in the component overview, design and roadmap.
feat: Add mediated C pipe creation
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 32s
CI / memory (push) Failing after 1m19s
051db6dad8
Expose namespaced pipe and pipe2 through the existing process-root I/O provider. Keep separate descriptor and status flags, retain the original call through retirement, and publish both output descriptors only after a complete validated result.
Author
Owner

Added erix_c_pipe and erix_c_pipe2 to the same process-root I/O provider. The two calls share the original realm binding and heap, preserve the separate flag domains and publish neither descriptor on an ordinary error. Posixd companion.

Added `erix_c_pipe` and `erix_c_pipe2` to the same process-root I/O provider. The two calls share the original realm binding and heap, preserve the separate flag domains and publish neither descriptor on an ordinary error. [Posixd companion](https://git.erikinkinen.fi/erix/posixd/pulls/5).
style: Format the pipe fixture with the pinned toolchain
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / thread (push) Successful in 31s
CI / memory (push) Failing after 5m24s
ff4df96279
Expand the pipe-request let-else block to the format used by the selected Rust toolchain. Keep its request handling and assertion unchanged.
fix: Adopt corrected native command ownership
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 40s
CI / memory (push) Successful in 6m21s
d43cda9e9c
Select the published owner that retains receipt failures and recognizes completed retirement before cancellation. Keep the full helper hash closure and cover the six pipe declaration conflicts in the C header contract.
Author
Owner

The six regenerated API references now include the C file, pipe and readiness interfaces. Generation and an independent second conversion completed while the original producers retained their sources and JSON outputs.

The native command owner also retains failed status publication on its original invocation and handles cancellation after completed retirement. The C runtime and documentation builds now select these fixes through the coordinated consumers. Guest C execution and the complete build inside EriX remain outstanding.

The six [regenerated API references](https://git.erikinkinen.fi/erix/docs/commit/91374fb0a139cee1d4f346ce2d25fd08eae8e8f3) now include the C file, pipe and readiness interfaces. Generation and an independent second conversion completed while the original producers retained their sources and JSON outputs. The [native command owner](https://git.erikinkinen.fi/erix/integration/commit/7bf80c35d2b5a950d6525418a7e0487bffad95ba) also retains failed status publication on its original invocation and handles cancellation after completed retirement. The C runtime and documentation builds now select these fixes through the [coordinated consumers](https://git.erikinkinen.fi/erix/integration/commit/fbe198a23ea9adc65df0ca01042daadfc4f84422). Guest C execution and the complete build inside EriX remain outstanding.
feat: Add caller-owned multibyte conversion
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 3s
CI / thread (push) Successful in 26s
CI / memory (push) Failing after 4m57s
0eeeb7381f
Implement strict C and UTF-8 conversion with explicit state, complete-character
output and independent query cursors. A separate process-root companion exposes
the native entries without selecting a locale, heap or service provider.
Append local terminal and encoding errors to the immutable catalog.

Refs: #17
docs: Wrap the multibyte conversion contracts
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 32s
CI / memory (push) Failing after 5m57s
ebfb3268a5
Reflow the error-catalog and conversion paragraphs into readable lines while
preserving their wording, code and checklist scope.
test: Cover appended error values in C and Rust callbacks
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 24s
CI / memory (push) Successful in 4m48s
1ea5bc6f63
Check ENOTTY and EILSEQ through both callback directions with independent
message and name literals. Use 43 as the first unassigned value while preserving
the existing unknown-value, output, stack, thread and ABI assertions. Clarify
the local and packet error domains in the errno header.
Author
Owner

Added the caller-owned multibyte conversion core, header and process-root runtime. The 22 calls share explicit ASCII/UTF-8 state without locale discovery or new grants. The native consumer and manual are published; integrated native/VM execution and the new runtime API reference remain open.

Added the [caller-owned multibyte conversion](https://git.erikinkinen.fi/erix/lib-cstd/issues/17) core, header and process-root runtime. The 22 calls share explicit ASCII/UTF-8 state without locale discovery or new grants. The native consumer and manual are published; integrated native/VM execution and the new runtime API reference remain open.
feat: Add checked time values and deadline arithmetic
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 25s
CI / memory (push) Successful in 4m56s
0efaa55b5d
Validate signed timespec values, clock tags and interval arithmetic before narrowing to native representations. Keep numeric validity separate from clock observations and native operation lifetimes so future time and sleep adapters can share one checked core.
feat: Add explicit C clock and sleep adapters
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 26s
CI / memory (push) Successful in 4m57s
e7fe804057
Provide signed time values and eight namespaced calls through a separate
process-root companion. Copy caller input before backend work, publish
outputs after retirement, and keep direct-error sleep independent of errno.
Admit the new workspace member and preserve the existing header contracts.
Author
Owner

The eight namespaced clock/sleep calls now connect to Posixd through compatibility ABI 1.28. The original C probe is packaged in a separate Clock-enabled workload; existing heap profiles keep their grants. Calendar, CPU clocks and conventional aliases remain open.

The eight [namespaced clock/sleep calls](https://git.erikinkinen.fi/erix/lib-cstd/issues/18) now connect to Posixd through compatibility ABI 1.28. The original C probe is packaged in a separate Clock-enabled workload; existing heap profiles keep their grants. Calendar, CPU clocks and conventional aliases remain open.
feat: Add mediated terminal identification and window controls
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / thread (push) Successful in 41s
CI / memory (push) Successful in 6m46s
53b1261df0
Route the two namespaced calls through the existing IO binding. Snapshot window
inputs and check every returned dimension before publishing output. Add the
original C probe for explicit terminal rights, window restoration and alias lifetime.

See #19 for the interface contract.
docs: Remove an extra header inventory blank
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 40s
CI / memory (push) Successful in 7m39s
291c4d8b37
Keep the terminal header inventory with one paragraph separator so the shared
header guide retains its existing document format.
Author
Owner

Added namespaced terminal identification and window controls to the existing IO binding. Native dimensions are checked before C output is written, and the original C probe includes rights, restoration and alias-lifetime checks. Full termios and conventional aliases remain open.

Added [namespaced terminal identification and window controls](https://git.erikinkinen.fi/erix/lib-cstd/issues/19) to the existing IO binding. Native dimensions are checked before C output is written, and the original C probe includes rights, restoration and alias-lifetime checks. Full termios and conventional aliases remain open.
feat: Add caller-owned termios parameters and speed accessors
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / thread (push) Successful in 35s
CI / memory (push) Failing after 5m22s
9409ff854a
Define the namespaced C and Rust parameter layout and complete local speed
accessors as an instruction-only companion. Preserve unrelated bytes and
errno without selecting a thread, terminal or service provider.
Author
Owner

Added the termios parameter API: a 36-byte record, declared constants and four local speed calls. They preserve all unrelated bytes and errno without requiring a thread image or terminal binding. Storage success does not promise device support.

Added the [termios parameter API](https://git.erikinkinen.fi/erix/lib-cstd/issues/20): a 36-byte record, declared constants and four local speed calls. They preserve all unrelated bytes and errno without requiring a thread image or terminal binding. Storage success does not promise device support.
test: Keep terminal header-order checks independent of termios
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 25s
CI / memory (push) Successful in 5m23s
dc8a7e9243
Limit the terminal assertion to its original five combinations so adding the
separate termios header orders preserves both literal contract checks.
Author
Owner

The manual now includes source-bound native-target references for the C core and its I/O, multibyte and time runtimes. The filesystem consumer also exercises distinct directory bases and multi-packet cwd reports. API references; C workload.

The manual now includes source-bound native-target references for the C core and its I/O, multibyte and time runtimes. The filesystem consumer also exercises distinct directory bases and multi-packet cwd reports. [API references](https://git.erikinkinen.fi/erix/docs/commit/5a2d4fb6fd96bf36c1e52cbf70d9df3db0100df8); [C workload](https://git.erikinkinen.fi/erix/posixd/commit/40aafe5900878e128325968cb62e8840bb79e62c).
feat: Expose conventional terminal speed accessors
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / thread (push) Successful in 27s
CI / memory (push) Failing after 41s
13560fc3d3
Provide the conventional termios record and constants alongside pure speed accessors. Both C spellings share the original assembly bodies without acquiring terminal authority or requiring thread initialization.
feat: Expose namespaced terminal attribute adapters
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 6s
CI / thread (push) Successful in 41s
CI / memory (push) Failing after 1m0s
1c1bd06264
Provide C and Rust attribute observation and immediate replacement through the original IO binding and independent native rights. Publish GET output only after retirement, snapshot semantic SET fields without reserved-byte reads, and resolve input speed zero without changing caller input. Unsupported processing and drain or flush actions remain explicit refusals.
docs: Describe native canonical EOF in attribute adapters
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 5s
CI / thread (push) Successful in 38s
CI / memory (push) Failing after 59s
dabb3cbded
Explain that configured native canonical EOF ends one read while preserving later PTY input. Keep timed reads, queue controls and complete terminal behavior explicit as remaining work.
feat: Expose namespaced terminal input flushing
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / thread (push) Successful in 45s
CI / memory (push) Failing after 1m0s
26cf9472a9
Provide C and Rust TCIFLUSH through the original bound IO runtime and independently granted terminal view. Reject output and combined selectors before callbacks, preserve success errno and publish Unit only after native completion and original caller retirement.
feat: Support output and combined terminal flush selectors
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 5s
CI / thread (push) Successful in 46s
CI / memory (push) Failing after 1m0s
d8bf701719
Map all three original EriX queue selectors onto independently granted native operations. Keep unknown selectors effect-free and return success only after the original native renderer and caller retirement barriers.
feat: Expose mediated drain and deferred termios actions
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 6s
CI / thread (push) Successful in 49s
CI / memory (push) Failing after 1m15s
705b630fae
Add namespaced C and Rust tcdrain and support TCSADRAIN and TCSAFLUSH through original descriptor-bound terminal calls. Preserve early action refusal, copied input parameters, original caller retirement and executing errno behavior.
feat: Expose mediated terminal software flow
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 9s
CI / memory (push) Failing after 1m53s
CI / thread (push) Successful in 1m8s
a633fb416b
Add namespaced C and Rust tcflow through the original descriptor and explicit native flow rights. Preserve unknown-action refusal, original caller retirement and executing errno behavior.
docs: Describe mediated noncanonical read timing
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 1m13s
CI / memory (push) Failing after 1m36s
CI / markdown (push) Failing after 29s
87d2aa64e7
Document original caller retention, monotonic timing, nonblocking behavior and input-discard handling through native terminal reads.
feat: Complete retained timed terminal break
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 6s
CI / thread (push) Successful in 55s
CI / memory (push) Failing after 1m29s
94989718c8
Connect separately admitted serial control to hardware-timed UART pulses. Retain original callers, providers and pulse tokens through drain, physical clear and completion without replaying accepted waveforms.
feat: Add retained physical terminal line configuration
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 5s
CI / thread (push) Successful in 50s
CI / memory (push) Failing after 1m14s
878c0461ae
Observe actual UART speed and line format through the selected controller. Retain the original transaction through verified divisor cleanup and terminal-state reconciliation, including caller cancellation.
feat: Add explicit modem and reception controls
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 17s
CI / thread (push) Successful in 49s
CI / memory (push) Failing after 1m12s
a0a84d500c
Apply verified B0 modem-output transitions and receiver delivery policy through the original physical transaction. Require a separate modem permission based on actual pre-application observation.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:40 +01:00
Author
Owner

This source is now split into feature PRs, starting at #22 and ending at #73. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior.

Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.

This source is now split into feature PRs, starting at #22 and ending at #73. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior. Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.
erikinkinen closed this pull request 2026-10-30 19:25:09 +01:00
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 17s
CI / thread (push) Successful in 49s
CI / memory (push) Failing after 1m12s

Pull request closed

Sign in to join this conversation.
No description provided.