On 8/03/2017 10:28 PM, David Griffiths1 wrote:
I understood the original question to be how to avoid OMVS and you almost
certainly need OMVS for printf. For Metal C I wrote my own printf subset
that calls WTO - you at least have varargs.

To me Metal/C is best used for system level programming like AR mode programs. It's great for that with __far pointers. For LE I wouldn't use C at all. Why use C when you've got a decent C++ compiler with the STL and the other goodies? I hope that z/OS V2.3 delivers more C++11 features. It's becoming difficult to port stuff because of the disparity with compilers from other platforms.

Cheers,

Dave Griffiths
z/OS Developer
IBM United Kingdom Limited, Hursley Park, Winchester, SO21 2JN, UK


From:   David Crayford <[email protected]>
To:     [email protected]
Date:   08/03/2017 13:52
Subject:        Re: Which C library functions imply dub?
Sent by:        IBM Mainframe Discussion List <[email protected]>



On 8/03/2017 9:15 PM, David Griffiths1 wrote:
Hi, not sure of the definitive answer but you can probably take a guess
by
comparing with the Metal C library. By definition Metal C calls don't
require access to the unix kernel. In fact if you don't want to connect
to
OMVS why not use Metal C anyway?
That's a no-brainer! For a simple example how about just being able to
use printf().

Cheers,

Dave Griffiths
z/OS Developer
IBM United Kingdom Limited, Hursley Park, Winchester, SO21 2JN, UK





From:   Charles Mills <[email protected]>
To:     [email protected]
Date:   08/03/2017 02:30
Subject:        Which C library functions imply dub?
Sent by:        IBM Mainframe Discussion List <[email protected]>



X-posted from a thread on MVS-OE



How would I determine which standard C library functions imply or cause
a
dub? (Other than by trying them without an OMVS segment and seeing if
they
blow up?) Is this documented somewhere? I guess another way of phrasing
the
question is "how would I determine which standard C library functions
are
'UNIX functions'?"



Do most of them? Surely not strlen()? Does fopen()? Only if you
reference
a
UNIX file as opposed to //DD:FOO?



Charles




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to