Guardian Procedure Calls Reference Manual
One of these file access flags must be supplied:
Corresponding open() FlagDescriptionValueName (ZSYS^VAL^ )
O_RDONLYOpen only for reading0OSSOPEN^RDONLY
O_RDWROpen for reading and
writing
2OSSOPEN^RDWR
O_WRONLYOpen only for writing1OSSOPEN^WRONLY
One of these file status flags can be supplied:
Corresponding open() FlagDescriptionValueName (ZSYS^VAL^ )
O_APPENDOpen only for append
access
4OSSOPEN^APPEND
O_CREATCreate and open the file8OSSOPEN^CREAT
O_EXCLOpen in exclusive access
mode
32OSSOPEN^EXCL
O_NOCTTYDo not open as controlling
terminal
32768OSSOPEN^NOCTTY
O_NONBLOCKOpen for nonblocked access16384OSSOPEN^NONBLOCK
O_SYNCOpen for synchronized
update
65536OSSOPEN^SYNC
O_TRUNCOpen and empty the file16OSSOPEN^TRUNC
Z^MODE
is the read, write, and execute permissions of the file to be created when Z^OFLAG is set
to ZSYS^VAL^OSSOPEN^CREAT. Otherwise, Z^MODE is ignored. For more information
on file permissions, see the OSS open() reference page either online or in the Open
System Services System Calls Reference Manual.
Structure Definitions for inheritance
The inheritance parameter specifies which signals are blocked or use default action for the
new process. For more information on OSS signals, see the signal(4) reference page either
online or in the Open System Services System Calls Reference Manual.
In the TAL ZSYSTAL file, the structure for the inheritance parameter is defined as:
STRUCT ZSYS^DDL^INHERITANCE^DEF (*);
BEGIN
INT Z^FLAGS;
INT Z^FILLER;
INT(32) Z^PGROUP;
INT(32) Z^SIGMASK;
INT(32) Z^SIGDEFAULT;
END;
For TAL programs, this default value must be specified when this parameter is not wanted:
Default ValueField Name
0Z^FLAGS
PROCESS_SPAWN_ Procedure 1103