Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
fdopen(3) Guardian Native C Library Calls Reference Manual
ignored. All output is written at the end of the file and the file pointer is repositioned to the end
of the output.
If two separate processes open the same file for append, each process can write freely to the file
without destroying the output being written by the other. The output from the two processes is
intermixed in the order in which it is written to the file. Note that if the data is buffered, it is not
actually written until it is flushed.
When opened, a stream is fully buffered if and only if it can be determined that it does not refer
to an interactive device. The error and End-of-File indicators for the stream are cleared.
RETURN VALUES
If the fdopen( ) function fails, a null pointer is returned, and errno is be set to indicate the error.
ERRORS
If any of the following conditions occurs, the fdopen( ) function sets errno to the value that
corresponds to the condition.
[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.
[EMFILE] The OPEN_MAX file descriptors are currently open in the calling process.
[ENFILE] Too many files are currently open in the processor.
[ENOMEM] Insufficient space to allocate a buffer.
[ENXIO] The named file is a character-special or block-special file and the device associ-
ated with this special file does not exist.
[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.
RELATED INFORMATION
Functions: open(2), fclose(3), fseek(3).
2−8 Hewlett-Packard Company 527192-007