Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual522629-013
12-175
PROCESS_SPAWN_ Procedure
Z^Name
is the address of a string containing the null-terminated OSS pathname of the
file to be opened by the new process. It must be possible to open this file with
the OSS
open() function. A relative pathname is resolved with the value for
the OSS current working directory in Z^CWD.
To have the new process open a pipe, specify a named pipe (also known as a
FIFO) in the Z^NAME field. To create a FIFO, use the OSS
mkfifo()
function.
Z^Oflag
is the file access flag and file status flag to be used by the OSS open()
function called by the new process. This field is ignored when the file is
opened as a duplicate. For more information on these flags, refer to the
open() reference page either online or in the Open System Services System
Calls Reference Manual.
The following tables summarize the values for Z^OFLAG. TAL literals are
defined in the ZSYSTAL file. Literals in the zsysc file, for C programs, are the
same as those for TAL except that they contain the underscore (_) character
instead of the circumflex (^) character.
One of the following file access flags must be supplied:
One of the following file status flags can be supplied:
Name (ZSYS^VAL^ ) Value Description
Corresponding
open() Flag
OSSOPEN^RDONL
Y
0 Open only for reading O_RDONLY
OSSOPEN^RDWR 2 Open for reading and
writing
O_RDWR
OSSOPEN^WRONL
Y
1 Open only for writing O_WRONLY
Name (ZSYS^VAL^ ) Value Description
Corresponding
open() Flag
OSSOPEN^APPEND 4 Open only for append
access
O_APPEND
OSSOPEN^CREAT 8 Create and open the
file
O_CREAT
OSSOPEN^EXCL 32 Open in exclusive
access mode
O_EXCL
OSSOPEN^NOCTTY 3276
8
Do not open as
controlling terminal
O_NOCTTY