The BPX loadhfs function (BPX1LOD) loads an HFS executable
into memory.

It seems, that sometimes, this is loaded into writable memory
and sometimes into read-only memory.

There doesn't seem to be a way to indicate which is desired.. is there
some OS-interface that writable memory be used?

I did see that if the process is being debugged with the ptrace service,
then loadhfs loads the module into writable memory.... but that isn't going
on here.... I'd like to use loadhfs() to bring a module from the HFS into
my program, but in writable memory.

There is the _BPX_PTRACE_ATTACH="yes" environment variable; but
I don't see where loadhfs() honors that (or how it might even know
of its existence, since there isn't BPX-level management of environment
variables.)

   - Thanks -
 - Dave Rivers -

--
[email protected]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

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

Reply via email to