Guardian Application Conversion Guide

Creating a High-PIN Process
Converting C Applications
5–14 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 5-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 5-3. Converting a C Program to Create a High-PIN Process
$SRV
$REQ
C Requester
Process
Server
Process
TACL
Your existing program might create a new process using the
NEWPROCESS[NOWAIT] procedure:
#include <cextdecs(OPEN, \
NEWPROCESS, \
WRITEREADX, \
CLOSE)> nolist
#include "$system.zsysdefs.zsysc"
...
lowmem short program_file[12];
lowmem short home_terminal[12];
lowmem short process_id[4];
lowmem short process_name[3];
short err_return, priority, memory_pages, cpu;
short error_info[2];
...