TMF Application Programmer's Guide (H06.06+, J06.03+)

File System Procedures
HP NonStop TMF Application Programmers Guide540139-009
4-18
GETTMPNAME
INT .EXT64:ref:12
is the name of a 12-word array into which GETTMPNAME returns the device
name of the TMP. This name can then be passed to the OPEN procedure to open
the TFILE. To call the FILE_OPEN_ procedure, pass a byte-addressable array
that has the same location as devname along with a length value of 4. If the TMP
is not configured, the returned device name is all blanks.
A process can open the TFILE only once. Attempts to open more than one instance of
the TFILE return an error number 12 (file in use). For multithreaded requesters, the
OPEN TFILE call must be performed before the first call to BEGINTRANSACTION. For
single-threaded requesters, the first call to BEGINTRANSACTION implicitly opens the
TFILE for you.
Note. EPTAL callers can pass 64-bit pointers by specifying the compiler directives
__EXT64 and SETTOG _64BIT_CALLS before sourcing from the EXTDECS file.