On 22 January 2016 at 17:43, Janet Graff <[email protected]> wrote: > We recently found that a pthread_mutex_lock() issues an SVC under the covers > which causes our > code in SRB Mode to abend with a S0F8-004. > > Does anyone have a list of C functions (POSIX as well as stdlib) that are > illegal in SRB Mode?
I'm not sure that running with the standard C library and LE is supported at all in SRB mode. You may need either Metal C or the older System Programming C. Well... I see the LE Vendor Interfaces book does have some discussion of SRB mode and its many difficulties, so it can't be impossible. But this is in the context of preinitialization via CEEPIPI or the CWI interfaces. As that book says, "Restrictions exist when running a routine in SRB mode. For instance, an SRB routine cannot issue any SVCs (except for ABEND). This restriction causes difficulties when attempting to use Language Environment in SRB mode; since the default operating system services that Language Environment uses make calls to SVCs. " I'm a little surprised that you got your code running in SRB mode in the first place. How did you manage that? Anyway - others have more experience and will surely comment. Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
