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

tmple64_oss(3) Guardian Native C Library Calls Ref
erence Manual
NAME
tmple64_oss - Creates a temporary le (OSS 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_oss(void);
DESCRIPTION
This function is similar to the ftmple_oss() function except that, in addition to supporting
smaller les, the tmple64_oss( ) function supports OSS les that have an offset maximum larger
than 2 gigabytes.
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_oss() 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() OSS function and tmple64_oss( ) function create a temporary le and return its
FILE pointer. The le has an offset maximum larger than 2 gigabytes. The le is opened for
update. The temporary le is automatically deleted when the process using it terminates.
These functions are identical in the OSS environment. Unless otherwise noted, this reference
page uses tmple64() to refer to both the tmple64() OSS function and tmple64_oss() func-
tion.
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.
RETURN VALUES
Upon successful completion, the tmple64() function returns a pointer to the stream of the le
that is created. Otherwise, it returns a null pointer, and sets errno to indicate the error.
716 Hewlett-Packard Company 527192-007