On Wed, 9 Mar 2022 17:01:31 +0000, Seymour J Metz wrote:
> ...
>Yes, it's synchronous. Alas, OOREXX doesn't have the ANSI address syntax and
>Regina doesn't have multitasking.
>
I'm imagining:
address SYSCALL
'pipe IN.'
'f_setfl' IN.1 O_NONBLOCK
'pipe OUT.'
'f_setfl' OUT.1 O_NONBLOCK
'pipe ERR.'
'f_setfl' ERR.1 O_NONBLOCK
/* (SPAWN or) */
address SH command options ,
'0<&'IN.1 '1>&'OUT.2 '2>&'ERR.2 ,
IN.2'>&-' '&'
'close' OUT.2
'close' ERR.2
return
/*
Now, it should be possible to pass I/O to 'command' with
CHAROUT IN.2 and CHARINI OUT.1. But synchronization is
impossible without SYSCALL SELECT or non-blocking
STREAM I/O.
*/
You can write C in (almost) any language.
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN