Guardian Application Conversion Guide

Creating and Managing a High-PIN Process
Converting TAL Applications
3–22 096047 Tandem Computers Incorporated
Use the process descriptor directly in the FILE_OPEN_ procedure call to open the
process:
error := PROCESS_CREATE_(program^file:pf^length,
! library^file:lf^length ! ,
! swap^file:sf^length ! ,
! ext^swapfile:esf^length ! ,
! priority ! ,
! cpu^number ! ,
process^handle,
error^detail,
! name^option:length ! ,
process^desc:max^length,
process^desc^length);
...
error := FILE_OPEN_(process^desc:process^desc^length,
file^number);
If you do not want the system name or sequence number for other uses of the process
descriptor, call the FILENAME_DECOMPOSE_ procedure to remove either or both of
these parts. For example, you might want to remove the sequence number before you
display the process descriptor.
Specifying Other
PROCESS_CREATE_
Options
Most PROCESS_CREATE_ parameters are analogous to the NEWPROCESS or
NEWPROCESSNOWAIT parameters. The following features are specific to
PROCESS_CREATE_:
Swap file for the extended data segment
You can specify a swap file for the extended data segment of the new process.
This swap file must be on the same system as the new process. The swap-file-
name parameter must be a variable-length string with its length specified by a
separate integer parameter.
Saved DEFINEs
You can specify a set of saved DEFINEs for the new process. You must have
previously saved these DEFINEs in a buffer using one or more calls to the
DEFINESAVE procedure. The DEFINE buffer must be a variable-length string
with its length specified by a separate integer parameter.
Thus, the creator process can give the new process its own DEFINEs or a set of
saved DEFINEs (or both).
Process-deletion message recipient
You can specify that the process-deletion message (system message -101) from the
process you create be delivered according to D-series rules or according to C-series
rules. According to D-series rules, the process-deletion message is delivered only
to the specific instance of the process that created the terminating process.