Guardian Procedure Calls Reference Manual

Considerations
Process names and CREATEPROCESSNAME
You use names created by CREATEPROCESSNAME when the process must be named, but
the name of that process does not need to be predefined, that is, known by any other process
or process pair.
NOTE: Calling CREATEPROCESSNAME does not create a process or enter the process
name into the DCT.
HP reserved process names
The operating system reserved process name space includes these names: $Xname, $Yname,
and $Zname, where name is 1 through 4 alphanumeric characters. Do not use names of this
form in any applications.
Creating pseudo-temporary disk file names
The CREATEPROCESSNAME procedure is also useful for creating "pseudo-temporary" disk
file names. You might use this type of naming when two processes want to use the same file,
but each opens the file exclusively.
If a standard temporary file name is used, the file is purged when the first process closes it
because there are no other opens for the file. The second process is then unable to access the
file. For example:
INT .TEMP^FNAME[0:11] := ["$VOL1 ", 9 * [" "]];
.
.
CALL CREATEPROCESSNAME ( TEMP^FNAME[4] ); ! returns $zddd
TEMP^FNAME[4].<0:7> := "Z"; ! makezzdaa subvol
TEMP^FNAME[8] ':=' TEMP^FNAME[4] FOR 4; ! make file name
CALL CREATE ( TEMP^FNAME );
IF < THEN ... ; ! error.
.
.
The name of the file in the TEMP^FNAME array is:
$VOL1 Zzdaa Zzdaa
240 Guardian Procedure Calls (C)