Open System Services Library Calls Reference Manual (G06.27+, H06.04+)
OSS Library Calls (e - f) freopen_guardian(3)
freopen_oss() is functionally identical to the freopen() 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 and on UNIX workstations.
freopen_guardian() is functionally identical to the freopen() function of the Guardian environ-
ment. It is the same as setting systype guardian at compile-time. systype guardian is
the default setting for the C and C++ compilers in the Guardian environment.
To use the freopen_oss() or freopen_guardian() functions, specify the _TANDEM_SOURCE
feature test macro.
RETURN VALUES
If the freopen( ) function fails, a null pointer is returned, and errno is set to indicate the error.
ERRORS
If any of the following conditions occurs, the freopen() function sets errno to the value that
corresponds to the condition.
[EINVAL] The mode parameter is not a valid mode.
[EMFILE] The OPEN_MAX file descriptors are currently open in the calling process.
[ENFILE] Too many files are currently open in the processor.
[ENOENT] The named file does not exist or the filename parameter points to an empty
string.
[ENOMEM] Insufficient space to allocate a buffer.
For all other error conditions, errno is set to the appropriate Guardian file-system error number.
Refer to the Guardian Procedure Errors and Messages Manual for more information about a
specific Guardian file-system error.
RELATED INFORMATION
Functions: open(2), fclose(3), fopen(3), freopen(3), freopen_oss(3), fseek(3), setbuf(3).
STANDARDS CONFORMANCE
The freopen_guardian() function is an HP extension to the XPG4 Version 2 specification.
527187-004 Hewlett-Packard Company 2−89