Open System Services System Calls Reference Manual (G06.25+, H06.03+)

lseek(2) OSS System Calls Reference Manual
[EINVAL] One of these conditions exists:
The whence parameter is an invalid value, or the resulting le offset
would be an invalid value (that is, a value greater than 2 gigabytes or
less than 0 [zero]).
The ledes parameter refers to a le (other than a pipe, FIFO, or direc-
tory) on which seeking cannot be performed.
[EISDIR] The ledes parameter refers to an OSS directory.
[EISGUARDIAN]
The value used for the ledes parameter is appropriate only in the Guardian
environment.
[ESPIPE] The ledes parameter refers to a pipe, FIFO, or socket.
[EWRONGID] One of these conditions occurred:
The process attempted an operation through an operating system
input/output process (such as a terminal server process) that has failed or
is in the down state.
The processor for the disk process of the specied le failed during an
input or output operation, and takeover by the backup process occurred.
The open le descriptor has migrated to a new processor, but the new
processor lacks a resource or system process needed for using the le
descriptor.
The le descriptor specied by the ledes parameter can only be closed.
For all other error conditions, errno is set to the appropriate Guardian le-system error number.
See the Guardian Procedure Errors and Messages Manual for more information about a specic
Guardian le-system error.
RELATED INFORMATION
Functions: fcntl(2), fseek(3), open(2), read(2), write(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. These features
are affected in the HP implementation:
If the lseek() function is called for a pipe or FIFO, the errno value [ESPIPE] is returned.
If the lseek() function is called for a character special le, no errno value is returned.
If the lseek() function is called for any other device on which seeking cannot be per-
formed, the operation fails, and errno is set to [EINVAL].
HP extensions to the XPG4 Version 2 specication are:
The errno values [EINVAL], [EISDIR], [EISGUARDIAN], and [EWRONGID] can be
returned.
412 Hewlett-Packard Company 527186-003