5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/lseek.html}
9 Portability problems fixed by Gnulib:
12 On platforms where @code{off_t} is a 32-bit type, @code{lseek} does not work
13 correctly with files larger than 2 GB. (Cf. @code{AC_SYS_LARGEFILE}.)
15 This function mistakenly succeeds on pipes on some platforms: mingw, BeOS.
18 Portability problems not fixed by Gnulib:
21 POSIX does not specify which file descriptors support seeking and which don't.
22 In practice, regular files and block devices support seeking, and ttys, pipes,
23 and most character devices don't support it.
25 When the third argument is invalid, POSIX says that @code{lseek} should set
26 @code{errno} to @code{EINVAL} and return -1, but in this situation a
27 @code{SIGSYS} signal is raised on some platforms:
30 When the @code{lseek} function fails, POSIX says that the file offset remains
31 unchanged. But on some platforms, attempting to set a negative file offset
32 fails and sets the file offset to 0: