5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html}
9 Portability problems fixed by Gnulib:
12 This function is declared in a different header file (namely, @code{<io.h>})
16 On platforms where @code{off_t} is a 32-bit type, @code{lseek} does not work
17 correctly with files larger than 2 GB@. (Cf. @code{AC_SYS_LARGEFILE}.)
19 This function mistakenly succeeds on pipes on some platforms: mingw, MSVC 14.
22 Portability problems not fixed by Gnulib:
25 POSIX does not specify which file descriptors support seeking and which don't.
26 In practice, regular files and block devices support seeking, and ttys, pipes,
27 and most character devices don't support it.
29 When the third argument is invalid, POSIX says that @code{lseek} should set
30 @code{errno} to @code{EINVAL} and return @minus{}1, but in this situation a
31 @code{SIGSYS} signal is raised on some platforms:
34 Some systems do not support @code{SEEK_DATA} and @code{SEEK_HOLE}:
35 AIX, HP-UX, Microsoft Windows, NetBSD, OpenBSD.