summaryrefslogtreecommitdiff
path: root/doc/pastposix-functions
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-04-30 11:38:25 +0200
committerBruno Haible <bruno@clisp.org>2017-04-30 19:26:36 +0200
commit6736a8833373cc6302e57c4b4ae6ff05a15a27a6 (patch)
treeaa8478836fee1c365746117b550504a55db72359 /doc/pastposix-functions
parentdc2bc508515352dfff17d350973940465688948d (diff)
downloadgnulib-6736a8833373cc6302e57c4b4ae6ff05a15a27a6.tar.gz
Document the problem with the Cygwin environment variable TZ.
* doc/posix-functions/tzset.texi: Add note about TZ. * doc/posix-functions/ctime.texi: Likewise. * doc/posix-functions/localtime.texi: Likewise. * doc/posix-functions/mktime.texi: Likewise. * doc/posix-functions/strftime.texi: Likewise. * doc/posix-functions/wcsftime.texi: Likewise. * doc/pastposix-functions/ftime.texi: Likewise.
Diffstat (limited to 'doc/pastposix-functions')
-rw-r--r--doc/pastposix-functions/ftime.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/pastposix-functions/ftime.texi b/doc/pastposix-functions/ftime.texi
index 0fcaed1ecc..582a088163 100644
--- a/doc/pastposix-functions/ftime.texi
+++ b/doc/pastposix-functions/ftime.texi
@@ -16,6 +16,9 @@ Portability problems not fixed by Gnulib:
This function is missing on some platforms:
Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, IRIX 5.3, Solaris 2.4.
@item
+On native Windows platforms (mingw, MSVC), this function works incorrectly
+when the environment variable @code{TZ} has been set by Cygwin.
+@item
This function is marked as ``legacy'' in POSIX. Better use @code{gettimeofday}
or @code{clock_gettime} instead, and use @code{ftime} only as a fallback for
portability to Windows platforms.