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

Guardian Native C Library Calls (f) freopen64_oss(3)
freopen64_guardian() is functionally identical to the freopen64() 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 freopen64_oss() or freopen64_guardian()
functions, specify the
_TANDEM_SOURCE feature test macro.
RETURN VALUES
If the freopen64() function fails, a null pointer is returned, and errno is set to indicate the error.
ERRORS
If any of these conditions occurs, the freopen64() function sets errno to the corresponding
value.
[EACCES] Search permission is denied on a component of the pathname prex; or the le
exists and the permissions specied by the mode parameter are denied; or the le
does not exist and write permission is denied for the parent directory of the le to
be created.
[EINTR] The function was interrupted by a signal that was caught.
[EINVAL] The mode parameter is not a valid mode.
[EISDIR] The named le is a directory, and mode requires write access.
[EMFILE] The OPEN_MAX le descriptors are currently open in the calling process.
[ENAMETOOLONG]
The length of the path string exceeds PATH_MAX, or a pathname component is
longer than NAME_MAX.
[ENFILE] Too many les are currently open in the processor.
[ENOENT] The named le does not exist, or the path parameter points to an empty string.
[ENOMEM] Insufcient space to allocate a buffer.
[ENOSPC] The directory or le system that would contain the new le cannot be expanded.
[ENOTDIR] A component of the pathname prex is not a directory.
[ENOTSUP] The path parameter refers to a le on a logical disk volume administered |
through the Storage Management Foundation (SMF).
[ENXIO] The named le is a character-special or block-special le, and the device associ-
ated with this special le does not exist.
[EOVERFLOW]
The size of the le cannot be represented in an object of type off64_t.
[EROFS] The named le resides on a read-only le system, and mode requires write
access.
[ETXTBSY] The le is being executed, and mode requires write access.
RELATED INFORMATION
Commands: setacl(1).|
Functions: open(2), open64(2), fclose(3), fopen64(3), freopen64(3), freopen64_guardian(3),|
fseek(3), setbuf(3).
Miscellaneous topics: acl(5).|
527192-007 Hewlett-Packard Company 279