MPE/iX Intrinsics Reference Manual (32650-90905)

Chapter 8 449
Command Definitions (HPMERGEEND-LOGSTATUS)
HPSWTONMNAME
HPSWTONMNAME
CM callable only.
Allows CM user programs, user libraries, and system code to invoke NM procedures as
follows:
Convert CM references in an argument list to virtual NM addresses.
Change the execution mode.
Invoke the NM procedure specified by the CM caller.
Syntax
CA I16V CA I16V
status:= HPSWTONMNAME(
procname,proclen,libname,liblen,
I16V I16 I16 I16V
nparms,arglist,argdesc,functype
)
Functional Return
status
I32 (assigned functional return)
Returns a 32-bit integer indicating the status of the call.
Parameters
procname
character array by reference (required)
Passes the target procedure name. The target procedure must be
contained in an executable library (XL). If the value of
procname
is invalid,
blank, or does not contain the NM procedure, NL.PUB.SYS is searched.
proclen
16-bit signed integer by value (required)
Passes the byte length of the procedure name.
libname
character array by reference (required)
Passes the name of the NM library to be searched. If the value of
libname
is invalid, blank or does not contain the NM procedure, NL.PUB.SYS is
searched.
NOTE By default, the search for the referenced library occurs in the procedure's
group and account. In order to reference a library in some other group and/or
account, you must be sure that
libname
is a fully qualified name
(name.group.account)
liblen
16-bit signed integer by value (required)
Passes the byte length of the library name.