1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- In __time_delay() the CheckIO() test was wrong and should have

tested for a request still in progress. Fixed.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15014 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-08-02 10:18:50 +00:00
parent b1f08e4123
commit 79be2279ec
3 changed files with 8 additions and 3 deletions

View File

@ -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) c.lib 1.194 (15.7.2005)
- Added getopt_long to libunix.a <tfrieden> - Added getopt_long to libunix.a <tfrieden>

View File

@ -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 * :ts=4
* *
@ -42,6 +42,7 @@
/****************************************************************************/ /****************************************************************************/
#define BUSY ((struct IORequest *)NULL)
#define CANNOT ! #define CANNOT !
#define DO_NOTHING ((void)0) #define DO_NOTHING ((void)0)
#define NO ! #define NO !

View File

@ -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 * :ts=4
* *
@ -106,7 +106,7 @@ __time_delay(unsigned long seconds,unsigned long microseconds)
{ {
ULONG seconds_now; ULONG seconds_now;
if(CheckIO((struct IORequest *)__timer_request)) if(CheckIO((struct IORequest *)__timer_request) == BUSY)
AbortIO((struct IORequest *)__timer_request); AbortIO((struct IORequest *)__timer_request);
WaitIO((struct IORequest *)__timer_request); WaitIO((struct IORequest *)__timer_request);