home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / c / AsyncIO.lha / AsyncIO / src / RecordAsyncFailure.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-16  |  382 b   |  16 lines

  1. #include "async.h"
  2.  
  3. /* this function records a failure from a synchronous DOS call into the
  4.  * packet so that it gets picked up by the other IO routines in this module
  5.  */
  6. VOID
  7. AS_RecordSyncFailure( AsyncFile *file )
  8. {
  9. #ifdef ASIO_NOEXTERNALS
  10.     struct DosLibrary    *DOSBase = file->af_DOSBase;
  11. #endif
  12.  
  13.     file->af_Packet.sp_Pkt.dp_Res1    = -1;
  14.     file->af_Packet.sp_Pkt.dp_Res2    = IoErr();
  15. }
  16.