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

fdopen(3) Guardian Native C Library Calls Reference Manual
ignored. All output is written at the end of the le and the le pointer is repositioned to the end
of the output.
If two separate processes open the same le for append, each process can write freely to the le
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 le. Note that if the data is buffered, it is not
actually written until it is ushed.
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 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.
[EMFILE] The OPEN_MAX le descriptors are currently open in the calling process.
[ENFILE] Too many les are currently open in the processor.
[ENOMEM] Insufcient space to allocate a buffer.
[ENXIO] The named le is a character-special or block-special le and the device associ-
ated with this special le does not exist.
[EROFS] The named le resides on a read-only le system and mode requires write access.
[ETXTBSY] The le is being executed and the mode requires write access.
RELATED INFORMATION
Functions: open(2), fclose(3), fseek(3).
28 Hewlett-Packard Company 527192-005