*** empty log message ***
authorJim Blandy <jimb@red-bean.com>
Tue, 13 Oct 1998 23:19:04 +0000 (23:19 +0000)
committerJim Blandy <jimb@red-bean.com>
Tue, 13 Oct 1998 23:19:04 +0000 (23:19 +0000)
ChangeLog
libguile/ChangeLog

index 7baad39..8050976 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+1998-10-14  Jim Blandy  <jimb@zwingli.cygnus.com>
+
+       Don't redefine sleep/usleep.
+       * configure.in: Remove tests for usleep's argument type; we only
+       need that if we're going to replace it.
+       * acconfig.h (USLEEP_ARG_TYPE): Delete.  All the other SLEEP
+       garbage is needed just to use usleep and sleep without compiler
+       warnings.
+       * configure: Regenerated.
+
 1998-10-12  Jim Blandy  <jimb@zwingli.cygnus.com>
 
        * configure: Regenerated.
index 4df8f1b..e7b4205 100644 (file)
@@ -1,3 +1,26 @@
+1998-10-14  Jim Blandy  <jimb@zwingli.cygnus.com>
+
+       Don't redefine sleep and usleep.
+       * coop.c (sleep, usleep): Remove declarations; we don't use or
+       redefine these any more.
+       (scm_thread_usleep, scm_thread_sleep): New functions which do the
+       job of usleep and sleep in a thread-friendly way.  We can use
+       these in the rest of Guile.  Define versions for systems both with
+       and without iselect.
+       * threads.h (scm_thread_usleep, scm_thread_sleep): New declarations.
+       * scmsigs.c (usleep): Clean up oddities declaring usleep; since
+       we're just using it, not redefining it, we can use a K&R style
+       declaration here.
+       (sleep): Declare this, too, if the system hasn't.
+       (scm_sleep, scm_usleep): Use scm_thread_sleep and
+       scm_uthread_sleep if they're available; otherwise, just call the
+       system functions.
+       * scmconfig.h.in: Regenerated.
+
+       * coop.c (scm_thread_sleep): Make `slept' an unsigned long.
+
+       * coop.c (coop_sleephelp): Remove ANSI #ifdef hair.
+
 1998-10-12  Jim Blandy  <jimb@zwingli.cygnus.com>
 
        * threads.c: Doc fix.