summaryrefslogtreecommitdiff
path: root/gnulib/doc/posix-functions/utimes.texi
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/doc/posix-functions/utimes.texi')
m---------gnulib0
-rw-r--r--gnulib/doc/posix-functions/utimes.texi42
2 files changed, 42 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/doc/posix-functions/utimes.texi b/gnulib/doc/posix-functions/utimes.texi
new file mode 100644
index 0000000..0db82c9
--- /dev/null
+++ b/gnulib/doc/posix-functions/utimes.texi
@@ -0,0 +1,42 @@
+@node utimes
+@section @code{utimes}
+@findex utimes
+
+POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/utimes.html}
+
+Gnulib module: ---
+
+Portability problems fixed by Gnulib:
+@itemize
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+This function is missing on some platforms:
+Minix 3.1.8, mingw, MSVC 9, Interix 3.5, BeOS.
+@item
+The declaration of this function lacks @code{const} in the second argument
+on some platforms:
+OSF/1 5.1.
+@item
+On some platforms, this function mis-handles trailing slash:
+FreeBSD 7.2, Solaris 9.
+@item
+This function cannot set full timestamp resolution. In particular,
+some platforms incorrectly round rather than truncate. Use
+@code{utimensat(AT_FDCWD,file,times,0)}, or the gnulib module utimens,
+instead.
+@item
+On some platforms, @code{utimes (file, NULL)} fails to set the
+file's timestamp to the current time:
+glibc 2.3.3.
+@item
+On some platforms, @code{utimes} failed on read-only files when
+@code{utime} worked fine.
+glibc 2.2.5.
+@end itemize
+
+Extension: Gnulib provides a module @samp{utimens} that works around these
+problems and allows to set the time with nanosecond resolution (as far as
+supported by the file system).