On 10 September 2018 at 14:37, Charles Mills <[email protected]> wrote: > Or documentation for calling BPX1xxxx functions from C/C++?
There is actually a warning *against* calling these services directly from C in the C library books. But I think that's mostly to do with signals and such that might actually interfere with LE stuff if you and LE are unaware that you're both using the same services. > Seems to me I have seen this information somewhere but I am not finding it. BPXYVFSI and BPXYPFSI in SYS1.SFOMHDRS ? But it's not a complete copy of everything in the assembler mappings. Make your own, or wait for IBM to do so... > Or are there more C-appropriate services that I should be using instead - > instead of BPX1PCT (pfsctl) specifically? I am looking at vfs_pfsctl but it > looks more difficult than BPX1PCT rather than less. I'm not sure vfs_pfsctl is more C-appropriate than pfsctl, or if it does all the same things. I think the C mappings provided in the book are for the "receiving" end of that call, which is in the PFS that you write. But to the extent that they overlap, the C constants in the two macros above are the same as those in the assembler version (BPXYCONS). In passing, you don't have to link/bind your C program with those BPX1 stub routines. ou can use the offsets described in the Assembler Callable Services book directly from C. Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
