X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fstat.texi;h=ef09740eeddb2f3257e07a3bccd0123e0b77519d;hb=ec1472041c35a30a4bdc7abeac5bd283a0ff5ff5;hp=7ef70882969f99cd84a592d4ec8f4fe72fa1fdb5;hpb=2b6c08c775ae4e80b52aa41058ea5939f778b44b;p=gnulib.git diff --git a/doc/posix-functions/stat.texi b/doc/posix-functions/stat.texi index 7ef708829..ef09740ee 100644 --- a/doc/posix-functions/stat.texi +++ b/doc/posix-functions/stat.texi @@ -2,12 +2,20 @@ @section @code{stat} @findex stat -POSIX specification: @url{http://www.opengroup.org/susv3xsh/stat.html} +POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/stat.html} -Gnulib module: --- +Gnulib module: stat Portability problems fixed by Gnulib: @itemize +@item +On some platforms, @code{stat("link-to-file/",buf)} succeeds instead +of failing with @code{ENOTDIR}. +FreeBSD 7.2, Solaris 9. +@item +On some platforms, @code{stat(".",buf)} and @code{stat("./",buf)} give +different results: +mingw. @end itemize Portability problems not fixed by Gnulib: @@ -19,4 +27,12 @@ use the @code{AC_SYS_LARGEFILE} macro. @item Cygwin's @code{stat} function sometimes sets @code{errno} to @code{EACCES} when @code{ENOENT} would be more appropriate. +@item +On Windows platforms (excluding Cygwin), @code{st_ino} is always 0. +@item +Because of the definition of @code{struct stat}, it is not possible to +portably replace @code{stat} via an object-like macro. Therefore, +expressions such as @code{(islnk ? lstat : stat) (name, buf)} are not +portable, and should instead be written @code{islnk ? lstat (name, +buf) : stat (name, buf)}. @end itemize