Next: malloc
, Previous: lseek
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
lstat
POSIX specification:
https://pubs.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 2 GiB and larger.
See Large File Support.
lstat("file/",buf)
succeeds instead of
failing with ENOTDIR
.
macOS 14, Solaris 9.
tv_sec
value, tv_nsec
might be in the range
-999999999..-1, representing a negative nanoseconds
offset from tv_sec
. Solaris 11.4 is similar, except that
tv_sec
might also be -1000000000.
lstat
does not exist.
Portability problems not fixed by Gnulib:
struct stat
.