home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / biblioteki / asyncio / src / recordasyncfailure.c < prev    next >
C/C++ Source or Header  |  1997-02-18  |  383b  |  17 lines

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