Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
freopen64(3) Guardian Native C Library Calls Reference Manual
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 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 freopen64() function: freopen64_oss() and
freopen64_guardian(). These variants support the unique file-naming conventions and struc-
tures of the OSS and Guardian file systems, respectively. In addition to supporting smaller files,
these variants support maximum larger than 2 gigabytes and Guardian files that have a file offset
maximum larger than 4 gigabytes (Guardian Format 2 files).
An application can explicitly call this function when you compile the application using the
#define _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 #define _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.
2−110 Hewlett-Packard Company 527192-018