Guardian Application Conversion Guide

Creating a High-PIN Process
Converting Pascal Applications
6–12 096047 Tandem Computers Incorporated
Creating a
High-PIN Process
You can create a high-PIN process programmatically or interactively. This subsection
describes how to programmatically create a high-PIN process. For information on
how to interactively create a high-PIN process using TACL, see Section 7, “Converting
TACL Programs.”
Figure 6-3 shows the processes involved in converting a typical application. The steps
described in this subsection apply to the requester process $REQ, which creates the
high-PIN server process $SRV.
Figure 6-3. Converting a Pascal Program to Create a High-PIN Process
$SRV
$REQ
Pascal Requester
Process
Server
Process
TACL
Your existing program might create a new process using the
NEWPROCESS[NOWAIT] procedure:
IMPORT BEGIN
?SOURCE $SYSTEM.SYSTEM.PEXTDECS (TYPES,
? NEWPROCESS,
? Guardian_OPEN,
? Guardian_READ,
? Guardian_WRITE,
? Guardian_CLOSE)
END; { IMPORT }
...
int program_file[12];
int home_terminal[12];
int process_id[4];
int process_name[4];
int err_return, priority, memory_pages, cpu;
int error_info[2];
int status;
...