gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / doc / posix-functions / fstat.texi
1 @node fstat
2 @section @code{fstat}
3 @findex fstat
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fstat.html}
6
7 Gnulib module: fstat
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function crashes when invoked with invalid arguments on some platforms:
13 MSVC 9.
14 @item
15 On platforms where @code{off_t} is a 32-bit type, @code{fstat} may not correctly
16 report the size of files or block devices larger than 2 GB.
17 (Cf. @code{AC_SYS_LARGEFILE}.)
18 @end itemize
19
20 Portability problems not fixed by Gnulib:
21 @itemize
22 @item
23 @xref{sys/stat.h}, for general portability problems with @code{struct stat}.
24 @item
25 On Cygwin, @code{fstat} applied to the file descriptors 0 and 1, returns
26 different @code{st_ino} values, even if standard input and standard output
27 are not redirected and refer to the same terminal.
28 @end itemize