summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-11-18 20:07:44 -0700
committerEric Blake <ebb9@byu.net>2009-11-20 07:10:22 -0700
commit6baa46639c17d7fba1d6aa1a3dd8ed536b7b2dc9 (patch)
treeeac303353244b06ab50ddff551f46ec8d2230c26 /doc
parent00b2f10b68593189be4eb1affd88de33a8e92fb3 (diff)
downloadgnulib-6baa46639c17d7fba1d6aa1a3dd8ed536b7b2dc9.tar.gz
sleep: work around cygwin bug
On cygwin 1.5.x, sleep amounts larger than 49.7 days (2**32 milliseconds) failed instantly, but with a garbage return value from uninitialized memory. * lib/sleep.c (rpl_sleep): Work around the bug. * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug. (gl_PREREQ_SLEEP): Delete unused macro. * modules/sleep (Depends-on): Add verify. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default. * modules/unistd (Makefile.am): Substitute witness. * lib/unistd.in.h (sleep): Update prototype. * doc/posix-functions/sleep.texi (sleep): Document the bug. * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it. * modules/sleep-tests (Depends-on): Check for alarm. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/sleep.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/posix-functions/sleep.texi b/doc/posix-functions/sleep.texi
index 9a7a74f0bd..6df8693842 100644
--- a/doc/posix-functions/sleep.texi
+++ b/doc/posix-functions/sleep.texi
@@ -15,6 +15,9 @@ mingw (2005 or newer).
This function takes milliseconds as argument and returns @code{void} on some
platforms:
mingw (2005 and older).
+@item
+This function cannot sleep longer than 49.7 days on some platforms:
+Cygwin 1.5.x.
@end itemize
Portability problems not fixed by Gnulib: