| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
nullptr in every place a null pointer constant was meant; NULL is gone
from src/.
constexpr where it improves on #define without costing anything: the
IGGCSI00 work-area offsets and sizes, and the scalar sizes MVS_DSN_MAX,
CSI_FIELD_LEN, CSI_WORK_MIN, PDS_DIRBLK, CSI_WORK, CSI_MAX_CALLS. A
constexpr in C is a constant expression, so it still bounds the arrays
that use it, and it now carries a type and can be checked with
static_assert. Feature switches (#if), the CSIETYPE/EBCDIC byte
constants read as octets, and the related-constant enum sets stay as
they were.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The z/OS toolchain would not take C23 when this was first written; IBM
Open XL C/C++ 2.2 does (clang 21.1, __STDC_VERSION__ 202311), and so
does the clang on Linux. -std=c23 in the Makefile, and the standard
attributes in place of the ones that were macros:
_Noreturn -> [[noreturn]] (on declarations and definitions)
_Static_assert -> static_assert
_Alignas -> alignas
NODISCARD -> [[nodiscard]]
FALLTHROUGH -> [[fallthrough]]
PRINTFLIKE and UNREACHABLE() stay macros: [[gnu::format]] and
[[gnu::unreachable]] are vendor attributes, and the standard has no
[[format]] or [[unreachable]] for a header-only project yet.
Standard-library additions newer than the libc of either system
(<stdbit.h>, <stdckdint.h>) are not used, so gcc -std=c2x still builds
the tree warning-free. The suite, ASan/UBSan and the z/OS lint pass as
before; linux/i-dscomplete remains the one local failure it was on
main.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
zash is built 64-bit on z/OS now: -m64 for the ASCII and the EBCDIC
build and for the debug build, and `make` as well as `make zash` land
on zos-ascii there. The 31-bit build existed for the 64-bit start and
fork costs, which were the C run-time being loaded out of the linklist;
with CELQ* in the LPA the widths measure the same and the shell is
built at the width IBM builds for.
The catalog and dynamic-allocation modules are AMODE 31 and OS_UPSTACK
does not exist at -m64, so both are declared with plain OS linkage,
which is the 64-bit glue for an AMODE 31 callee. Neither module is
installed on the test system, so that path is unverified there;
csi_call() still catches a program check and retires the catalog.
IGGCSI00's VL bit comes from the width of a pointer, not 0x80000000.
Documentation follows: README gains a Recommendations section for the
LPA change and loses the 31-bit rationale; DESIGN.md's cost model,
catalog linkage and open questions match the measurements; bench/README
states the current width and the rerun numbers; investigation.md
records the decision.
|
| |
|
|
|
|
|
|
|
| |
Plain sentences where the prose had decorative bold lead-ins, em dashes
and one-line closers. Claims, numbers and commands are unchanged, except
two corrections that the startup probe settled: README said the remaining
z/OS gap was the price of the address mode, and DESIGN's open question on
`a | b &` said the gain depended on the address mode. Both are the 64-bit
C run-time, not the address mode.
|
| |
|
|
|
|
| |
The assembler-vs-C experiment, its method and the questions it leaves
open get a tracked home outside the generated docs/ tree; bench/README
keeps the result table and points there.
|
| |
|
|
|
|
|
|
|
| |
An AMODE 64 HLASM program that returns 0 without any C run-time starts
in 0.8 ms, the same as the AMODE 31 copy, while the same empty program
in C costs 29.4 ms at -m64 and 2.0 ms at -m32. So the 28 ms is Language
Environment's 64-bit initialization, not the address space, and the
31-bit LE start is about 1 ms. Records the probe and corrects the
claims in bench/README.md and DESIGN.md.
|
| |
|
|
| |
Remove ?= and $(shell) from the docs browser lookup, use $(MAKE) for recursion, and make the z/OS default naming explicit.
|
| |\
| |
| |
| |
| |
| |
| | |
Resolutions: README.md and DESIGN.md keep the new colour logo
(packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer
shellcheck header, lists `make docs` in the usage block, and `clean`
removes docs, cov and $(ZTOOLS) along with the branch's new tools.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
zash was AMODE 64, so calling the AMODE 31 IGGCSI00 needed assembler
glue (zos_csi.s) that switched addressing mode around the branch. Built
with -m32 the program is 31-bit itself: the call goes through a plain
function pointer, the work area and the saved registers live in one
31-bit block in C, and the glue is gone.
The rest of the tree follows the change: the build, the off-z/OS lint
shim, DESIGN.md and README.md, the benches, the Lean spec of the
pattern matcher, and the tests that recorded what the extra address bits
had changed.
|
| |/
|
|
|
|
|
|
|
|
|
| |
README and DESIGN.md showed a light/dark <picture> pair, copied from a
layout that had no centring; both now use packaging/zash-logo.svg inside
a centred paragraph, the same header the typst spec already uses.
make clean listed neither zash-debug nor fuzz-mvsfmt, so both survived a
clean. The shellcheck directive at the top of the makefile now also
covers the $(OBJS)-style expansions and the recipe `if` it reads as shell
syntax.
|
| |
|
|
|
|
| |
"Below the bar" means below 16 MB, the 24-bit range. IGGCSI00 needs
31-bit addresses, so the block has to stay below 2 GB -- two very
different limits. Corrected where the two had been confused.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
DESIGN.md, README.md and the Doxygen comments leaned on semicolons to
join clauses and on trailing "which" clauses to add afterthoughts. Both
read as machine-written prose. Each joined clause is now its own
sentence, and the afterthoughts are either part of the sentence or a
sentence of their own.
Also corrected: README said C11 in two places (the tree builds C17), the
completion section still described the pre-HLQ-rule filters and the
64-call resume limit, and the z/OS job-control note still called
SPAWN_SETTCPGRP unverified.
|
| |
|
|
|
| |
The z/OS working tree is Latin-1, so an em dash there breaks every
git checkout on the machine.
|
| |
|
|
|
|
|
| |
`//NAME` completed against <user>.NAME, which meant assuming a TSO
profile. It now offers nothing: only `//'DSN` and `//DD:` complete.
The quoted member form keeps working, and the tests drop the relative
cases.
|
| |
|
|
|
|
|
|
| |
Both zos-ascii and zos-ebcdic wrote ./zash, so `make zos-ascii` after an
EBCDIC build was "up to date" and left the EBCDIC program in place --
which cost a debugging session: the "ASCII" binary on cbt was EBCDIC.
ASCII is the build zopen uses and the one the tests run, so it keeps
./zash; EBCDIC is ./zash-ebcdic.
|
| |
|
|
|
|
| |
HLASM wants every line inside column 71, so a two-line comment overran
the continuation column and as reported ASMA144E. DESIGN.md picked up an
em dash, which will not convert to the z/OS working-tree encoding either.
|
| |
|
|
|
|
|
|
| |
The docs and three source headers still claimed the z/OS layer had never
been compiled. Both character modes build with ibm-clang, tests/zos/*
run it on the machine, LE's heap checker stands in for ASan, and AMBLIST
shows the CSI glue inside the program object. What is left is the set of
things no test reaches, which the VERIFY notes already name.
|
| |
|
|
|
|
|
|
|
|
| |
README carried "nothing has been compiled or run on z/OS yet", which
stopped being true several commits ago, and promised z/OS numbers for
the process-creation rows. Both tables are now measured: Linux against
dash, bash, ksh and oksh, and z/OS against /bin/sh (IBM's ksh88 port),
bash, zsh and oksh. Small pipelines and $( ) cost z/OS up to 277 s
where zash stays near ksh88's 19 s; plain external commands cost the
same for both.
|
| |
|
|
|
|
| |
Every table used |-|-| with spaced cells, which MD060 reads as a compact
table and flags on every pipe; 11 delimiter rows normalised, plus one
84-column paragraph reflowed. Prose unchanged.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
lldb is not on z/OS, so the debug story there is dbx, which needs -g and
an unoptimised load: make zos-debug builds ./zash-dbg, zos-dbx runs it,
zos-attach attaches to a running shell and zos-dump reads a dump
(SVC and SYSMDUMP only: dbx does not read SYSUDUMP or CEEDUMP).
AMBLIST maps CSECTs, AMODE/RMODE and entry points of a program object,
which is the one question a debugger cannot answer from source:
make zos-amblist lists ./zash and the HLASM routine's object module.
The docs catch up with C17 and the new targets.
|
| |
|
|
|
|
|
| |
POSIX: ENV is parameter-expanded, and not used when the real and
effective user or group IDs differ. The expansion reuses the prompt's
contained expansion (expand_quietly), so a bad ENV cannot unwind into
startup. $HOME/.profile is not sourced if the path would be truncated.
|
| |
|
|
|
|
|
|
| |
tag shows and sets file tags in chtag -p form without a process; alloc
and free pass BPXWDYN requests. They exist only in z/OS builds (free
must not hide procps elsewhere) and in make mvs-asan's build, which runs
their usage-error test; tests/zos/builtins.sh covers the real work
(unrun, VERIFY).
|
| |
|
|
|
|
| |
DESIGN.md gains the reference for file tags and conversion, MVS name
completion and the CSI glue's storage layout, the per-command z/OS
options, and how z/OS code is checked on Linux. bench/tagging.sh measures tagging cost on z/OS (n/a elsewhere).
|
| | |
|
|
|
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written
in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS).
- Parser, expansion, arithmetic, redirection, traps and builtins.
- Spawn-first execution: fd plans instead of fork+dup2, in-shell pure
builtins for pipelines and command substitution, $(a | b) without a
subshell.
- Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets.
- Tests: posix (dash-generated), zash, process accounting, linux, zos.
Nothing has been compiled or run on z/OS yet.
|