doc: Update for Solaris 11.4.
[gnulib.git] / doc / posix-functions / lstat.texi
blobd487676e8d202a1da1a40c8e3d560eca71b82ca0
1 @node lstat
2 @section @code{lstat}
3 @findex lstat
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/lstat.html}
7 Gnulib module: lstat
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On platforms where @code{off_t} is a 32-bit type, @code{lstat} may not
13 correctly report the size of files or block devices larger than 2 GB.
14 (Cf. @code{AC_SYS_LARGEFILE}.)
15 @item
16 For symlinks, when the argument ends in a slash, some platforms don't
17 dereference the argument:
18 Solaris 9.
19 @item
20 On some platforms, @code{lstat("file/",buf)} succeeds instead of
21 failing with @code{ENOTDIR}.
22 Solaris 9.
23 @item
24 On Solaris 11.4, when this function yields a timestamp with a
25 nonpositive @code{tv_sec} value, @code{tv_nsec} might be in the range
26 @minus{}1000000000..@minus{}1, representing a negative nanoseconds
27 offset from @code{tv_sec}.
28 @item
29 On Windows platforms (excluding Cygwin), symlinks are not supported, so
30 @code{lstat} does not exist.
31 @end itemize
33 Portability problems not fixed by Gnulib:
34 @itemize
35 @item
36 @xref{sys/stat.h}, for general portability problems with @code{struct stat}.
37 @end itemize