summaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #6 from skurtz97/fix/install-chmodSean Kurtz7 days1-0/+1
|\ | | | | Makefile: chmod +x on install
| * Makefile: make the installed binary executableSean Kurtz7 days1-0/+1
|/ | | | | 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.
* Merge pull request #5 from skurtz97/chore/style-sheetsSean Kurtz7 days3-0/+142
|\ | | | | Add the house style and linter sheets from zash
| * Add the house style and linter sheets from zashSean Kurtz7 days3-0/+142
|/ | | | | | | .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).
* Merge pull request #4 from skurtz97/revert/shimSean Kurtz7 days2-48/+0
|\ | | | | Drop the zoautil shim
| * Drop the zoautil shimSean Kurtz7 days2-48/+0
|/ | | | | 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.
* Merge pull request #3 from skurtz97/fix/prefix-and-stdintSean Kurtz7 days4-24/+88
|\ | | | | Makefile: accept PREFIX, real .PHONY, stdint types
| * Makefile: accept PREFIX; use .PHONY; stdint typesSean Kurtz7 days4-24/+88
|/ | | | | | | | | | 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.
* Merge pull request #2 from skurtz97/chore/flat-layoutSean Kurtz7 days2-3/+3
|\ | | | | Flatten the tree: one source file at the top
| * whoson: flatten the tree, one source file at the topSean Kurtz7 days2-3/+3
|/ | | | src/ held a single file, so the Makefile and README no longer need the path.
* Merge pull request #1 from skurtz97/feature/pid-columnSean Kurtz7 days4-156/+115
|\ | | | | Add a PID column
| * whoson: drop the POSIX shell versionSean Kurtz7 days3-114/+0
| | | | | | | | 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.
| * whoson: label a TSO/E session with an OMVS process "TSO/E OMVS"Sean Kurtz7 days2-12/+18
| | | | | | | | | | | | 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.
| * whoson: find the TSO/E record by its A= token, and normalise short timesSean Kurtz7 days1-30/+74
| | | | | | | | | | | | | | | | | | | | | | 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.
| * whoson: add a PID column, NA for a TSO/E session with no OMVS processSean Kurtz7 days2-11/+34
|/ | | | | | 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.
* whoson: list TSO/E and SSH sessions with job id, CPU, elapsed and regionSean Kurtz7 days7-0/+784
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.