summaryrefslogtreecommitdiff
path: root/modules/nanosleep
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-11-18 20:10:42 -0700
committerEric Blake <ebb9@byu.net>2009-11-20 07:11:28 -0700
commita905b35027f406a031a844995b32b7b9291d0336 (patch)
tree73d42af218ee4c2b7b17eb06f957dcc63b58eae0 /modules/nanosleep
parent6baa46639c17d7fba1d6aa1a3dd8ed536b7b2dc9 (diff)
downloadgnulib-a905b35027f406a031a844995b32b7b9291d0336.tar.gz
nanosleep: work around cygwin bug
Cygwin 1.5.x mistakenly failed with EINVAL for a duration longer than 49.7 days (2**32 milliseconds). Meanwhile, the existing code for HAVE_BUG_BIG_NANOSLEEP would infloop, instead of return failure, for invalid arguments. * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Fix logic bug when nanosleep fails. Work around cygwin 1.5.x bug. (getnow): Delete, not needed. * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require LIB_CLOCK_GETTIME. * modules/nanosleep (Depends-on): Add intprops and verify. Drop clock-time, gettime. * doc/posix-functions/nanosleep.texi (nanosleep): Document the bug. * modules/nanosleep-tests: New test. * tests/test-nanosleep.c: New file. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/nanosleep')
-rw-r--r--modules/nanosleep4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nanosleep b/modules/nanosleep
index a652e53c2c..d457b6f049 100644
--- a/modules/nanosleep
+++ b/modules/nanosleep
@@ -6,9 +6,8 @@ lib/nanosleep.c
m4/nanosleep.m4
Depends-on:
-clock-time
extensions
-gettime
+intprops
multiarch
select
sigaction
@@ -16,6 +15,7 @@ stdbool
sys_select
sys_time
time
+verify
configure.ac:
gl_FUNC_NANOSLEEP