NEWS.stable: update and finalise
[gnulib.git] / doc / posix-functions / ftello.texi
1 @node ftello
2 @section @code{ftello}
3 @findex ftello
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/ftello.html}
6
7 Gnulib module: ftello
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 IRIX 5.3, OSF/1 4.0, Solaris 2.5.1, mingw.
14 @item
15 The declaration of @code{ftello} in @code{<stdio.h>} is not enabled by default
16 on some platforms:
17 glibc 2.3.6, OSF/1 5.1.
18 @item
19 This function produces incorrect results after @code{putc} that followed a
20 @code{getc} call that reached EOF on some platforms:
21 Solaris 11 2010-11.
22 @item
23 This function fails on seekable stdin, stdout, and stderr: cygwin <= 1.5.24.
24 @end itemize
25
26 Portability problems not fixed by Gnulib:
27 @itemize
28 @item
29 On platforms where @code{off_t} is a 32-bit type, @code{ftello} does not work
30 correctly with files larger than 2 GB.  The fix is to use the
31 @code{AC_SYS_LARGEFILE} macro.
32 @item
33 This function produces incorrect results immediately after @code{fseek} on some
34 platforms:
35 HP-UX 11.
36 @item
37 @code{fflush}, @code{ftell}, @code{ftello}, @code{fgetpos} behave incorrectly
38 on input streams that are opened in @code{O_TEXT} mode and whose contents
39 contains Unix line terminators (LF), on some platforms: mingw.
40 @item
41 On platforms where @code{off_t} is a 64-bit type, but @code{fseeko} is
42 not present, stream operations on files larger than 2 GB silently do
43 the wrong thing.  This affects BSD/OS, which is mostly obsolete.
44 @end itemize