Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual522629-013
12-174
PROCESS_SPAWN_ Procedure
Z^Umask
is the OSS file mode creation mask of the new process. A value of -1 indicates
that the OSS file mode creation mask of the calling process should be used. For
more information refer to the
umask() function reference page either online or in
the
Open System Services System Calls Reference Manual.
Z^Cwd
is the address of a string containing the null-terminated OSS pathname of the OSS
current working directory of the new process. A value of 0D indicates that the OSS
current working directory of the calling process should be used. If the caller does
not have a current working directory, then the caller’s default volume is used. An
absolute pathname should be specified, because relative file names are resolved
using the undefined environment of the new process.
Z^FdCount
is the number of Z^FDENTRY substructures occurring in the structure. Each
substructure specifies a file descriptor to be opened or duplicated by the new
process.
Z^FdEntry
describes a file descriptor in the following fields.
Z^Fd
is the file descriptor to be opened. Z^FD can have these values:
0D standard input
1D standard output
2D standard error
other user-defined
Z^DUPFd
indicates whether the file descriptor specified in Z^FD is to be opened as a
duplicate with the OSS
dup() function. Z^DUPFD can have these values:
> 0D This file descriptor is a duplicate of a file descriptor previously specified
in Z^FD.
= -1D This file descriptor is not a duplicate. Open the file descriptor with the
OSS
open() function according to the values in the following fields.