Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
tmpfile(3) Guardian Native C Library Calls Reference Manual
NAME
tmpfile - Creates a temporary file
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
DESCRIPTION
The C run-time library supports two variants of the tmpfile() function: tmpfile_oss( ) and
tmpfile_guardian(). These variants support the unique file-naming conventions and structures of
the OSS and Guardian file systems, respectively. These variants support OSS files that have a file
offset maximum smaller than 2 gigabytes and Guardian files that have a file offset maximum
smaller than 4 gigabytes (Guardian Format 1 files).
For the TNS C runtime library only, the header file maps calls to tmpfile() to the variant that
matches the target compilation environment. The target environment is set with the systype
pragma.
Explicit calls to the tmpfile_oss() and tmpfile_guardian() variants in source code are only
made when the behavior of one environment is desired from the other environment.
For a description of the tmpfile() OSS function and the tmpfile_oss() function, see the
tmpfile_oss(3) reference page. For a description of the tmpfile() Guardian function and the
tmpfile_guardian() function, see the tmpfile_guardian(3) reference page. For a description of
equivalent functions that support OSS files that have a file offset maximum larger than 2 giga-
bytes and Guardian files that have a file offset maximum larger than 4 gigabytes (Guardian For-
mat 2 files), see the tmpfile64(3) reference page.
7−20 Hewlett-Packard Company 527192-018