summaryrefslogtreecommitdiffhomepage
path: root/src/zmcs.c
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-27 18:15:26 -0600
committerGitHub <noreply@github.com>2026-11-27 18:15:26 -0600
commit83e8fbc692b36be5ac9011ccf26b1b232d560008 (patch)
treeab62a06c6a49b343b33d41b502487b233128ad80 /src/zmcs.c
parent4c95e6490d189b47cad050744de9768465e0307b (diff)
parentb5bb63d4760f6f6e0282fc9f7eec36b41705458c (diff)
downloadztop-main.tar.gz
Merge pull request #7 from skurtz97/feature/views-and-dec-glyphsHEADmain
views: PS, FS and LOG, and a DEC-graphics frame
Diffstat (limited to 'src/zmcs.c')
-rw-r--r--src/zmcs.c22
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__ */