| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\
| |
| | |
Makefile: chmod +x on install
|
| |/
|
|
|
| |
cp keeps the source file's mode, so a checkout with a non-executable
whoson produced a non-executable install. chmod 755 after the copy.
|
| |\
| |
| | |
Add the house style and linter sheets from zash
|
| |/
|
|
|
|
|
| |
.clang-format (LLVM, 4-wide, 80 columns), .clang-tidy (bug/analyzer cert
checks with the tree's naming rules and its reasoned exceptions), and
.clangd (the Makefile's macros and language level, minus the IBM-only
flags).
|
| |\
| |
| | |
Drop the zoautil shim
|
| |/
|
|
|
| |
whoson.c is z/OS-only: it includes the real <zoautil.h>, nothing else.
clangd off z/OS cannot resolve that header; that is expected.
|
| |\
| |
| | |
Makefile: accept PREFIX, real .PHONY, stdint types
|
| |/
|
|
|
|
|
|
|
|
| |
install now goes to $(PREFIX)/bin (default ~/.local) and creates the
directory. The old comment claimed IBM's make rejects .PHONY; it does not.
whoson.c: long -> int32_t for pids and second counts, printed with PRId32,
so the width is the same on z/OS (ILP32) and everywhere else.
tools/zoautil-shim.h: lets clangd type-check off z/OS; never compiled in.
|
| |\
| |
| | |
Flatten the tree: one source file at the top
|
| |/
|
|
| |
src/ held a single file, so the Makefile and README no longer need the path.
|
| |\
| |
| | |
Add a PID column
|
| | |
| |
| |
| | |
The C program using the ZOAU vector covers the same ground and does not need opercmd on PATH, so shell/whoson and its README section go.
|
| | |
| |
| |
| |
| |
| | |
TYPE says TSO/E for a plain TSO/E logon and SSH for an sshd, but a TSO/E
user who also owns an OMVS process is reachable from the POSIX side, and
that is worth seeing: the same session is now labelled TSO/E OMVS.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
A DISPLAY TS,A record can carry one, two or more words between the user id
and A= ("OWT", "IN O", "WTOR S"), so locating A= by position dropped the
whole record. Search for the A= token instead and join what precedes it as
the status.
Times also come in two shapes: "01.22.42" is hh.mm.ss, and "019.705S" is
seconds.milliseconds, which is what a session younger than an hour reports.
The second is now converted, so elapsed time reads the same either way.
|
| |/
|
|
|
|
| |
The PID comes from DISPLAY OMVS,A=ALL (field 4) and is matched to a TSO/E
session by address space id, so a TSO/E user who owns an OMVS process shows
it and one who does not shows NA.
|
|
|
TSO/E rows come from DISPLAY TS,A (user, status, ASID, CT, ET, WUID, SCL,
priority, RGP); SSH rows from DISPLAY OMVS,A=ALL, with the sshd listener
account dropped. Both go through the ZOAU shared library vector, so there is
no shell and no opercmd on PATH. The console command has to be passed quoted
as one argv element: the vector splits the argument string itself.
|