diff --git a/library/changes b/library/changes index 0ce11fe..df02176 100644 --- a/library/changes +++ b/library/changes @@ -1,3 +1,7 @@ +- In __time_delay() the CheckIO() test was wrong and should have + tested for a request still in progress. Fixed. + + c.lib 1.194 (15.7.2005) - Added getopt_long to libunix.a diff --git a/library/macros.h b/library/macros.h index 5d7207c..6602bd5 100644 --- a/library/macros.h +++ b/library/macros.h @@ -1,5 +1,5 @@ /* - * $Id: macros.h,v 1.20 2005-05-27 13:19:30 obarthel Exp $ + * $Id: macros.h,v 1.21 2005-08-02 10:18:50 obarthel Exp $ * * :ts=4 * @@ -42,6 +42,7 @@ /****************************************************************************/ +#define BUSY ((struct IORequest *)NULL) #define CANNOT ! #define DO_NOTHING ((void)0) #define NO ! diff --git a/library/unistd_time_delay.c b/library/unistd_time_delay.c index e031041..0dfd7aa 100644 --- a/library/unistd_time_delay.c +++ b/library/unistd_time_delay.c @@ -1,5 +1,5 @@ /* - * $Id: unistd_time_delay.c,v 1.5 2005-03-18 12:38:25 obarthel Exp $ + * $Id: unistd_time_delay.c,v 1.6 2005-08-02 10:18:50 obarthel Exp $ * * :ts=4 * @@ -106,7 +106,7 @@ __time_delay(unsigned long seconds,unsigned long microseconds) { ULONG seconds_now; - if(CheckIO((struct IORequest *)__timer_request)) + if(CheckIO((struct IORequest *)__timer_request) == BUSY) AbortIO((struct IORequest *)__timer_request); WaitIO((struct IORequest *)__timer_request);