stat: fix doc wording typo
[gnulib.git] / doc / posix-functions / fstat.texi
blob4307f3573e179fea63ba41b82e61de7043e7c3cb
1 @node fstat
2 @section @code{fstat}
3 @findex fstat
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fstat.html}
7 Gnulib module: fstat
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function crashes when invoked with invalid arguments on some platforms:
13 MSVC 14.
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 @item
19 On Solaris 11.3, when this function yields a timestamp with a
20 nonpositive @code{tv_sec} value, @code{tv_nsec} might be in the range
21 @minus{}1000000000..@minus{}1, representing a negative nanoseconds
22 offset from @code{tv_sec}.
23 @item
24 The @code{st_atime}, @code{st_ctime}, @code{st_mtime} fields are affected by
25 the current time zone and by the DST flag of the current time zone on some
26 platforms:
27 mingw, MSVC 14 (when the environment variable @code{TZ} is set).
28 @end itemize
30 Portability problems not fixed by Gnulib:
31 @itemize
32 @item
33 @xref{sys/stat.h}, for general portability problems with @code{struct stat}.
34 @item
35 On Cygwin, @code{fstat} applied to the file descriptors 0 and 1, returns
36 different @code{st_ino} values, even if standard input and standard output
37 are not redirected and refer to the same terminal.
38 @end itemize