I originally focused on system() as the way to run BPXMTEXT and the doc for
system() says
Note: If an application invokes a z/OS UNIX service shell command or utility
that
performs terminal I/O, the command may fail due to the z/OS UNIX services
shell file descriptors not being initialized. z/OS UNIX files for terminal
I/O must
be defined. An example of how these can be defined in a C application are as
follows:
stdin = fopen("/tmp/sys.stdin","r");
stdout = fopen("/tmp/sys.stdout","w");
stderr = fopen("/tmp/sys.stderr","w");
"An example ... are ..." Oh, well.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Paul Gilmartin
Sent: Saturday, September 8, 2018 10:07 AM
To: [email protected]
Subject: POSIX streams (was: ... BPXMTEXT ...)
On 2018-09-07, at 19:06:51, Charles Mills wrote:
>
> Something like system("bpxmtext %x") where I substitute the errno2() value
> into the message. But (1) I read a warning about having to allocate stdin
> and so forth, ...
>
Where is that warning? In Doc? Or did it occur as an error message?
Why should bpxmtext need stdin?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN