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

Guardian Native C Library Calls (f) freopen64(3)
NAME
freopen64 - Opens a stream
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
DESCRIPTION
The C run-time library supports two variants of the freopen64() function: freopen64_oss() and
freopen64_guardian()
. These variants support the unique le-naming conventions and struc-
tures of the OSS and Guardian le systems, respectively. In addition to supporting smaller
les,
these variants support maximum larger than 2 gigabytes and Guardian les that have a le 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 freopen() 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.
Explicit calls to the freopen64_oss() and freopen64_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 freopen64() OSS function and the freopen64_oss() function, see the
freopen64_oss(3) reference page. For a description of the freopen64() Guardian function and
the freopen64_guardian() function, see the freopen64_guardian(3) reference page.
527192-007 Hewlett-Packard Company 273