diff options
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__ */ |
