Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

freopen(3) OSS Library Calls Reference Manual
NAME
freopen - 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 freopen( ) function: freopen_oss() and
freopen_guardian(). These variants support the unique le-naming conventions and structures
of the OSS and Guardian le systems, respectively. These variants support OSS
les that have a |
le offset maximum smaller than 2 gigabytes and Guardian les that have a le offset maximum |
smaller than 4 gigabytes (Guardian Format 1 les).
For the TNS C runtime library only, the header le maps calls to freopen() to the variant that
matches the target compilation environment. The target environment is set with the systype
pragma.
Explicit calls to the freopen_oss() and freopen_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 freopen() OSS function and the freopen_oss() function, see the
freopen_oss(3) reference page. For a description of the freopen( ) Guardian function and the
freopen_guardian() function, see the freopen_guardian(3) reference page. For a description of |
equivalent functions that support OSS les that have a le offset maximum larger than 2 giga- |
bytes and Guardian les that have a le offset maximum larger than 4 gigabytes (Guardian For- |
mat 2 les), see the freopen64(3) reference page.
2100 Hewlett-Packard Company 527187-007