ESPIPE
ESPIPE is an errno value used by POSIX and other Unix-like systems to indicate an illegal seek operation. It is raised when a process attempts to reposition the file offset on a non-seekable data stream, such as a pipe, FIFO, or network socket, using functions like lseek or fseeko. Regular files and other seekable objects support repositioning, so lseek on those descriptors succeeds.
In POSIX, ESPIPE is defined as part of the set of error numbers (errno values) and is
Programmatically, encountering ESPIPE typically means the caller is using a non-seekable descriptor in a context that
See also: ENOTTY, ENXIO, EINVAL, and the general errno mechanism in C and POSIX.