From d1ea4c7f4530e3d1d4689a9d20029a0c1a418df5 Mon Sep 17 00:00:00 2001 From: Sean Kurtz Date: Mon, 23 Nov 2026 11:09:32 -0600 Subject: z/OS: run 31-bit and load IGGCSI00 through the C library zash was AMODE 64, so calling the AMODE 31 IGGCSI00 needed assembler glue (zos_csi.s) that switched addressing mode around the branch. Built with -m32 the program is 31-bit itself: the call goes through a plain function pointer, the work area and the saved registers live in one 31-bit block in C, and the glue is gone. The rest of the tree follows the change: the build, the off-z/OS lint shim, DESIGN.md and README.md, the benches, the Lean spec of the pattern matcher, and the tests that recorded what the extra address bits had changed. --- src/exec.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/exec.c') diff --git a/src/exec.c b/src/exec.c index 72e718c..4758440 100644 --- a/src/exec.c +++ b/src/exec.c @@ -862,17 +862,6 @@ static void assign_temp(const simple_cmd *sc) { } } -/** - * @brief Run an external command. - * - * @param sc The prepared command. - * @param flags EV_EXIT allows replacing the shell with exec. - * @param in Descriptor for its stdin, or -1. - * @param out Descriptor for its stdout, or -1. - * @param async When not NULL, receives the pid and the command is not - * waited for (pipeline stages, `&`, command substitution). - * @return The exit status. 0 for an async launch. - */ /** * @brief Apply `_TAG_REDIR_*` assignments given on an external command. * @@ -918,6 +907,17 @@ static void tag_prefix_end(const tag_mode saved[3], int in, int out) { memcpy(tag_redir, saved, sizeof tag_redir); } +/** + * @brief Run an external command. + * + * @param sc The prepared command. + * @param flags EV_EXIT allows replacing the shell with exec. + * @param in Descriptor for its stdin, or -1. + * @param out Descriptor for its stdout, or -1. + * @param async When not NULL, receives the pid and the command is not + * waited for (pipeline stages, `&`, command substitution). + * @return The exit status. 0 for an async launch. + */ static int run_external(simple_cmd *sc, unsigned flags, int in, int out, pid_t *async) { const node *n = sc->n; -- cgit