diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-27 18:15:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-27 18:15:26 -0600 |
| commit | 83e8fbc692b36be5ac9011ccf26b1b232d560008 (patch) | |
| tree | ab62a06c6a49b343b33d41b502487b233128ad80 /src/zmcs.c | |
| parent | 4c95e6490d189b47cad050744de9768465e0307b (diff) | |
| parent | b5bb63d4760f6f6e0282fc9f7eec36b41705458c (diff) | |
| download | ztop-main.tar.gz | |
views: PS, FS and LOG, and a DEC-graphics frame
Diffstat (limited to 'src/zmcs.c')
| -rw-r--r-- | src/zmcs.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/zmcs.c b/src/zmcs.c new file mode 100644 index 0000000..3473724 --- /dev/null +++ b/src/zmcs.c @@ -0,0 +1,22 @@ +/** + * @file zmcs.c + * @brief The portable half of the console reader: there is none. + * + * The console lives in src/zmcs.s, which is built only on z/OS. The + * tests and the portable build still link the symbol, so this file + * answers "no" instead of letting the link fail. It is deliberately + * the only thing here: a fake console would let a change look tested. + */ +#include "zmcs.h" + +#ifndef __MVS__ + +int zmcs(zmcs_req *req) { + req->rc = 8; + req->rsn = 0; + if (req->len != nullptr) + *req->len = 0; + return 0; +} + +#endif /* !__MVS__ */ |
