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 larger than 2 GB.
(Cf. AC_SYS_LARGEFILE
.)
AC_SYS_LARGEFILE
.)
lstat("file/",buf)
succeeds instead of
failing with ENOTDIR
.
macOS 11.1, Solaris 9.
tv_sec
value, tv_nsec
might be in the range
-1000000000..-1, representing a negative nanoseconds
offset from tv_sec
.
lstat
does not exist.
Portability problems not fixed by Gnulib:
struct stat
.