summaryrefslogtreecommitdiffhomepage
path: root/src/zmcs.c
blob: 3473724dec2013446b86fe6eea12c4838483d983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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__ */