home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / biblioteki / c_library / asyncio / source / recordasyncfailure.c < prev    next >
C/C++ Source or Header  |  1977-12-31  |  382b  |  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.