Repository navigation
vms-8ca: DCL LIBRARY object-library I/O through the Files-11 ACP - #1823
Merged
Merged
Conversation
…les-11 ACP LIBRARY's OBJECT path fopen()ed the translated POSIX path. On the product runtime the volume's files are not there, so objects that GNU as wrote through RMS answered %LIBRARIAN-E-OPENIN. The GCC port's ar (`library /replace/create libx.a x.o,...`) therefore stopped the native multi-file build on OVMX/Alpha at the archive step. The objects, the library and an /EXTRACT/OUTPUT file now go through RMS: reads use rms_read_over_acp, and writes use $CREATE FIX with no record size plus $PUT, which is byte-exact. LIBRARIAN.EXE and LINK.EXE already do I/O this way, and DUMP was fixed the same way (vms-5303e). The host-defer condition is unchanged and the same as DUMP's: no executive, or a kernel-mounted unit, still uses POSIX. ovmx_olb.h gains olb_parse and olb_build, the in-memory halves of olb_read and olb_write. Those two are now thin wrappers, so their bytes do not change. Test: tests/qemu/test_syssvc_dcl_library_acp.c drives DCL.EXE against a real /dev/vms. It creates a library from two RMS-written objects, reads it back over the ACP and checks the member bytes, then runs LIST and an EXTRACT/OUTPUT round-trip. A missing object must fail honestly. Negative control: defects.d/dcl-library-object-posix-io.defect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
baron-3dl
enabled auto-merge
October 21, 2026 15:04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ODS-2 volume LIBRARY's object I/O now goes through the Files-11 ACP. The suite's fixture was a mkdtemp() directory under a POSIX logical, so it moves to VDA0:[OVMXDIR]: the files are written through RMS and the /COMPRESS/OUTPUT library is read back over the ACP. The assertions and negctl anchors are unchanged. The dcl-library-compress-noop injection now targets the olb_lib_write line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem. The GCC port's `ar` (`vms-ar.c`) runs `library /replace/create libx.a x.o,...` over objects that GNU as wrote through RMS. LIBRARY's OBJECT path `fopen()`ed the translated POSIX path instead. On the product runtime the volume's files are not at that path, so the gate on #1810 failed with `%LIBRARIAN-E-OPENIN, error opening object file - VDA0:[SYSTMP]TWOA.O`. DUMP had the same bug class (vms-5303e).
Fix. The input objects, the library itself and `/EXTRACT/OUTPUT` now go through RMS. Reads use `rms_read_over_acp`. Writes use `$CREATE` with FIX and no record size, then `$PUT`, which is byte-exact and the same path LINK.EXE and LIBRARIAN.EXE use. The host defer is DUMP's: no executive, or a kernel-mounted unit, still uses POSIX. `ovmx_olb.h` is split into `olb_parse` / `olb_build`, and `olb_read` / `olb_write` keep their bytes.
Tests.
This unblocks #1810, the native multi-file build on OVMX/Alpha with GCC + AR + LINK.
🤖 Generated with Claude Code