summaryrefslogtreecommitdiff
path: root/MODULES.html.sh
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-11-17 09:24:56 -0700
committerEric Blake <ebb9@byu.net>2009-11-17 22:31:58 -0700
commite8eecfd3f7d37692a7b87779b69d6fdc22d88d4d (patch)
treeba23fa37356a4fb4122ee07e709373fa85c11fda /MODULES.html.sh
parent84405cbc35207f178b1b50617254cb85ea803128 (diff)
downloadgnulib-e8eecfd3f7d37692a7b87779b69d6fdc22d88d4d.tar.gz
usleep: new module
mingw usleep(1000000) failed with EINVAL, as allowed by POSIX, but contrary to GNU usage. Rather than implement an accurate usleep based on select or nanosleep, both of which drag in dependencies on external libraries, this version intentionally takes the ceiling in seconds if usleep() is missing. * modules/usleep: New file. * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise. * lib/usleep.c (usleep): Likewise. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults. * modules/unistd (Makefile.am): Substitute witnesses. * lib/unistd.in.h (usleep): Add declaration. * doc/pastposix-functions/usleep.texi (usleep): Document this. * MODULES.html.sh (Date and time): Likewise. * modules/usleep-tests (Depends-on): New test. * tests/test-usleep.c: New file. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'MODULES.html.sh')
-rwxr-xr-xMODULES.html.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/MODULES.html.sh b/MODULES.html.sh
index 7d42b736db..cb791b8e4d 100755
--- a/MODULES.html.sh
+++ b/MODULES.html.sh
@@ -2593,8 +2593,9 @@ func_all_modules ()
func_begin_table
func_module gethrxtime
func_module gettime
- func_module settime
func_module posixtm
+ func_module settime
+ func_module usleep
func_module xnanosleep
func_end_table