lstat
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/lstat.html
Gnulib module: lstat
Portability problems fixed by Gnulib:
off_t
is a 32-bit type, lstat
may not
correctly report the size of files or block devices larger than 2 GB.
(Cf. AC_SYS_LARGEFILE
.)
lstat("file/",buf)
succeeds instead of
failing with ENOTDIR
.
Solaris 9.
lstat
does not exist.
Portability problems not fixed by Gnulib:
st_ino
is always 0.
struct stat
, it is not possible to
portably replace stat
via an object-like macro. Therefore,
expressions such as (islnk ? lstat : stat) (name, buf)
are not
portable, and should instead be written islnk ? lstat (name,
buf) : stat (name, buf)
.
st_size
contains bogus information for
symlinks; use the gnulib module areadlink-with-size for a better way
to get symlink contents.