Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
fseek(3) Guardian Native C Library Calls Reference Manual
[EINTR] The write operation was terminated by a signal, and either none, some, or all the
data was transferred. If there is buffered I/O, it is recommended that you call the
fflush() function before the fseek() function to guarantee that the buffer charac-
ters were written.
[EINVAL] The whence parameter is an invalid value, or the resulting file offset would be
invalid.
[EIO] The process is a member of a background process group attempting to write to its
controlling terminal, the TOSTOP signal is set, the process is neither ignoring
nor blocking SIGTTOU, and the process group of the process is orphaned.
[ENOSPC] There was no free space remaining on the device containing the file.
[ENXIO] A request was made to a nonexistent device, or the request was outside the capa-
bilities of the device.
[EPIPE] An attempt was made to write to a pipe or FIFO that is not open for reading by
any process. A SIGPIPE signal is also sent to the process.
[EOVERFLOW]
The value of offset could not be represented in an object of type long.
RELATED INFORMATION
Functions: fgetpos(3), fopen(3), fopen64(3), fseeko(3), fsetpos(3), ftell(3), lseek(2), rewind(3).
STANDARDS CONFORMANCE
The [ENXIO] errno value is not specified in the POSIX standards. It is an extension defined in
the XPG4 version 2 specification.
The support of Guardian EDIT files by the fseek() function is an HP extension to the XPG4 Ver-
sion 2 specification.
2−138 Hewlett-Packard Company 527192-018