Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

fopen_oss(3) Guardian Native C Library Calls Reference Manual
To use the fopen_oss( ) or fopen_guardian() functions, specify the _TANDEM_SOURCE
feature test macro.
RETURN VALUES
If the fopen() function succeeds, a pointer to the stream is returned.
If the fopen() function fails, a null pointer is returned, and errno is set to indicate the error.
ERRORS
If any of these conditions occurs, the fopen() function sets errno to the corresponding value.
[EACCES] Search permission is denied on a component of the pathname prefix, or the file
exists and the permissions specified by the mode parameter are denied, or the file
does not exist and write permission is denied for the parent directory of the file 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 file 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 files are currently open in the processor.
[ENOENT] The named file does not exist or the path parameter points to an empty string.
[ENOMEM] Insufficient space to allocate a buffer.
[ENOSPC] The directory or file system that would contain the new file cannot be expanded.
[ENOTDIR] A component of the pathname prefix is not a directory.
[ENOTSUP] The path parameter refers to a file on a logical disk volume administered
through the Storage Management Foundation (SMF).
[ENXIO] The named file is a character-special or block-special, file and the device associ-
ated with this special file does not exist.
[EOVERFLOW]
The size of the file cannot be represented in an object of type off_t.
[EROFS] The named file resides on a read-only file system, and mode requires write
access.
[ETXTBSY] The file is being executed, and the mode requires write access.
For all other error conditions, errno is set to the appropriate Guardian file-system error number.
For more information about a specific Guardian file-system error, see the Guardian Procedure
Errors and Messages Manual.
RELATED INFORMATION
Commands: setacl(1).
Functions: open(2), open64(2), fclose(3), fopen(3), fopen_guardian(3), fopen64_oss(3), freo-
pen(3), fseek(3), setbuf(3).
280 Hewlett-Packard Company 527192-018