<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ztop.git/Makefile, branch main</title>
<subtitle>Interactive z/OS storage and address space monitor (VSMLIST, CVT/ASVT)</subtitle>
<id>https://git.abendless.com/ztop.git/atom?h=main</id>
<link rel='self' href='https://git.abendless.com/ztop.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/'/>
<updated>2026-11-28T00:10:43Z</updated>
<entry>
<title>views: PS, FS and LOG, and a DEC-graphics frame</title>
<updated>2026-11-28T00:10:43Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-28T00:10:43Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=bed906ea03f44454baa7089bb3cb975f94d77bcc'/>
<id>urn:sha1:bed906ea03f44454baa7089bb3cb975f94d77bcc</id>
<content type='text'>
Two changes that share files -- the views, and the screen they are drawn
on -- so one commit; splitting them would mean splitting src/ztop.c and
tui/tui.h by hunk, which is not a split a reviewer could follow.

The views.  Seven tabs instead of four: PS (w_getpsent), FS (w_getmntent
plus statvfs) and LOG, a read-only extended MCS console behind -c.  LOG
needs supervisor state, so MCSOPER and MCSOPMSG live in src/zmcs.s: it
switches to supervisor state, calls the macro, switches back, and hands
the caller a copy of the message data block.  src/mdb.c walks that MDB
(IEAVM105) for the job name and the text line, and is separate from
src/ztop.c because it is the one place ztop parses bytes written by
another address space, so it is worth a test that runs anywhere.  The
small structs become C23 typedefs, src/vsm.c keeps the 16M line apart,
and README lists the seven views and the keys they moved.

The screen.  The frame, the meters and the scrollbar were the last parts
that said "curses".  Borders and meters are now the DEC Special Graphics
set, designated into G0 with ESC ( 0 and released with ESC ( B, with a
fallback to + - | # when TERM is not one we know; the meters are shade
fill over a horizontal rule instead of a [####    ] bar; table selection
is a background colour instead of reverse video, which is the tell almost
everyone recognises as curses; the tab row separates with a gap instead
of |; titles are a dim style and the frame is grey so the accent colour
means selection.  The designation is tracked per cell, because an SGR
reset does not leave the graphics set, and only the cells that carry a
border glyph pay for it -- six bytes a row at 80 columns.  Everything
stays 7-bit ASCII in the source, which is what .gitattributes now
enforces for the whole tree: one rule, ISO8859-1 in the working tree,
the same line the zopen git port uses, so a checkout on z/OS is tagged
ASCII for make, sh, awk and the compiler and no file needs a hand tag.

Verified on Linux: make test TESTCC=cc green (test_vsm, test_sys,
test_mdb, tui/test_tui, leakcheck), make tidy adds no finding to the ten
that predate this, src/ztop.c passes -fsyntax-only with the project's
warnings.  The frame was checked against a painted screen with
tests/screen.py, which now understands ESC ( 0.  Not yet built on z/OS:
the CBT build, make check and make leakcheck run after the push and the
PR carries their result.
</content>
</entry>
<entry>
<title>tests: a pty painter that prints the screen ztop thinks it drew</title>
<updated>2026-11-26T04:45:44Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:45:44Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=1e98f74f58f130c98b3da5becbab491961100a04'/>
<id>urn:sha1:1e98f74f58f130c98b3da5becbab491961100a04</id>
<content type='text'>
Checking the layout by eye over ssh is slow and lossy; this applies the
output to a 100x30 grid and prints each frame after a key.
</content>
</entry>
<entry>
<title>make tag: retag a fresh checkout, and run the leak check on cbt</title>
<updated>2026-11-26T04:20:37Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=5dc0edf1d1eaaa4c1f6558bbdfb895614f4bec34'/>
<id>urn:sha1:5dc0edf1d1eaaa4c1f6558bbdfb895614f4bec34</id>
<content type='text'>
git does not carry the ISO8859-1 tag, so a checkout makes the z/OS tools
read ASCII through the EBCDIC converter.  The target is one line per
source group and ignored off z/OS.
</content>
</entry>
<entry>
<title>leakcheck: a shell check of the LE report, with a selftest</title>
<updated>2026-11-26T04:19:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:19:20Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=202bd66a5125e8159efbe1a4fd34aa229640a4ff'/>
<id>urn:sha1:202bd66a5125e8159efbe1a4fd34aa229640a4ff</id>
<content type='text'>
The old z/OS awk rejects comments and trips over the program file, so the
report is summed with sed and shell arithmetic instead.  --selftest feeds
it one clean and one leaking report so the checker itself is tested.
</content>
</entry>
<entry>
<title>leakcheck: awk wants -f, and its z/OS build wants no comments</title>
<updated>2026-11-26T04:18:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:18:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=f561301b7ee805a223ba8eb9cc7081ec9bb5aa80'/>
<id>urn:sha1:f561301b7ee805a223ba8eb9cc7081ec9bb5aa80</id>
<content type='text'>
</content>
</entry>
<entry>
<title>leakcheck: let Language Environment look for a leak</title>
<updated>2026-11-26T04:16:54Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=a1cf90eb067effe8a7c85f5d2024a0c3d22817e1'/>
<id>urn:sha1:a1cf90eb067effe8a7c85f5d2024a0c3d22817e1</id>
<content type='text'>
RPTSTG, RPTOPTS and HEAPCHK will not find what the program never asks
for, but they do see every get and every free.  Every one-shot mode now
runs under them and the storage report is checked for a heap request
that was never returned.
</content>
</entry>
<entry>
<title>ztop: system IPL and storage, a paging view, a 10 second refresh</title>
<updated>2026-11-26T04:12:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T04:12:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=cef8eb44791f24b3d50006690960dce84779cfea'/>
<id>urn:sha1:cef8eb44791f24b3d50006690960dce84779cfea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tui: a library of messages and widgets; add system and jobs views</title>
<updated>2026-11-26T03:41:59Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:41:59Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=c4ca679ab630d64f030f2529f6d3e3d0efbbd058'/>
<id>urn:sha1:c4ca679ab630d64f030f2529f6d3e3d0efbbd058</id>
<content type='text'>
The screen code moves to tui/ as a small toolkit: a cell buffer with a
diffing flush, a message loop in the shape of Bubble Tea (model, update,
view, ticks), and widgets for a viewport, a table, tabs, a text input,
a progress bar and a status line.  ztop is now one user of it.

ztop grows two views beside storage: SYSTEM (CVS name, release, address
space count) and JOBS (one line per ASCB, from the CVT and ASVT, which
need no authorization).  Views are tabs; each table keeps its own
selection and scroll position.

Follows the zash code style: doxygen headers, .clang-format, POSIX make.
</content>
</entry>
<entry>
<title>Makefile: assemble src/zvslist.S through clang, no chtag</title>
<updated>2026-11-26T03:11:43Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=9dd085c8ed0853f4d96b4de0b9aab71be537240e'/>
<id>urn:sha1:9dd085c8ed0853f4d96b4de0b9aab71be537240e</id>
<content type='text'>
The integrated assembler on Open XL 2.2 is GNU syntax and rejects
HLASM (CSECT, SYSSTATE).  With -fno-integrated-as clang hands the
preprocessed source to HLASM instead; -Xpreprocessor -P keeps the cpp
line markers out of it, and clang writes the temporary HLASM reads, so
the checked-out ASCII file no longer has to be tagged first.
</content>
</entry>
<entry>
<title>zvslist: fix the service call and build the stub with clang</title>
<updated>2026-11-26T03:08:28Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T03:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/ztop.git/commit/?id=b9c2a4b5f138c3d7eff351f0c49aa6b631a9c1c8'/>
<id>urn:sha1:b9c2a4b5f138c3d7eff351f0c49aa6b631a9c1c8</id>
<content type='text'>
Three separate faults kept the call from returning:

- the binder rewrites =A(zvslist) into a function descriptor in an
  XPLINK module, so loading it into the base register sent every literal
  and branch elsewhere; BALR alone is the base setup the assembler needs;
- WKAREA=((4),5) passes the literal 5 as the work-area length, not R5,
  so the macro stored its control block at the start of a request it had
  been told was five bytes long;
- FREE and UNALLOC are different macro expansions, not a runtime space
  operand, so the stub now branches to power the right one.

Rename the source to src/zvslist.S and let ibm-clang assemble it, which
removes the chtag/column-71/EBCDIC dance from the build.  With these
changes VSMLIST answers without an APF bit, so the docs no longer claim
otherwise, and the sample output is the real layout.
</content>
</entry>
</feed>
