Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)

tmple64_guardian(3) Guardian Native C Library Calls Ref
erence Manual
NAME
tmple64_guardian - Creates a temporary le (Guardian tmple64( ) function)
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdio.h>
FILE *tmple64(void);
FILE *tmple64_guardian(void);
DESCRIPTION
This function is similar to the ftmple_guardian() function except that, in addition to support-
ing smaller les, the tmple64_guardian() function supports Guardian les that have an offset
maximum larger than 4 gigabytes (Guardian Format 2 les).
An application can explicitly call this function when you compile the application using the
#dene _LARGEFILE64_SOURCE 1 feature test macro or an equivalent compiler command
option.
An application call to tmple_guardian() is automatically mapped to this function when you
compile the application using the #dene _FILE_OFFSET_BITS 64 feature test macro or an
equivalent compiler command option.
The tmple64() Guardian function and tmple64_guardian() function create a temporary le
and return its FILE pointer. The le is opened for update. The temporary le is automatically
deleted when the process using it terminates.
The temporary le is a Format 2 type 180 C binary le, opened for ANSI I/O, and with binary
update access ("wb+").
These functions are identical in the Guardian environment. Unless otherwise noted, this refer-
ence page uses tmple64() to refer to both the tmple64() Guardian function and
tmple64_guardian() function.
Interoperability Variants
The C run-time library supports two variants of the tmple64() function: tmple64_oss() and
tmple64_guardian(). The variants support the unique le-naming conventions and structures
of the OSS and Guardian le systems, respectively.
Explicit calls to the tmple64_oss() and tmple64_guardian() variants in source code are only
made when the behavior of one environment is desired from the other environment.
tmple64_oss() is functionally identical to the tmple64() function of the OSS environment. It
is the same as setting systype oss at compile time. systype oss is the default setting for
c89 in the OSS environment.
tmple64_guardian() is functionally identical to the tmple64() function of the Guardian
environment. It is the same as setting systype guardian at compile time. systype guar-
dian is the default setting for the C and C++ compilers in the Guardian environment.
To use the tmple64_oss() or tmple64_guardian() functions, specify the
_TANDEM_SOURCE feature test macro.
714 Hewlett-Packard Company 527192-007