Re: Are there C prototypes and/or headers available for the BPX1xxxxx USS callable services?
On 10 September 2018 at 14:37, Charles Mills wrote: > Or documentation for calling BPX1 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Are there C prototypes and/or headers available for the BPX1xxxxx USS callable services?
We call BPX1xxx routines from C and assembler all the time without problems. It is just the standard linkage. Robin -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: 11 September 2018 01:38 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Are there C prototypes and/or headers available for the BPX1x USS callable services? Or documentation for calling BPX1 functions from C/C++? Seems to me I have seen this information somewhere but I am not finding it. 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. Charles -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Are there C prototypes and/or headers available for the BPX1xxxxx USS callable services?
Or documentation for calling BPX1 functions from C/C++? Seems to me I have seen this information somewhere but I am not finding it. 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. Charles -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN