home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / exec / abortio.c next >
Encoding:
C/C++ Source or Header  |  1997-01-09  |  1.8 KB  |  82 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: abortio.c,v 1.7 1997/01/01 03:46:03 ldp Exp $
  4.     $Log: abortio.c,v $
  5.     Revision 1.7  1997/01/01 03:46:03  ldp
  6.     Committed Amiga native (support) code
  7.  
  8.     Changed clib to proto
  9.  
  10.     Revision 1.6  1996/12/10 13:51:34  aros
  11.     Moved all #include's in the first column so makedepend can see it.
  12.  
  13.     Revision 1.5  1996/10/24 15:50:40  aros
  14.     Use the official AROS macros over the __AROS versions.
  15.  
  16.     Revision 1.4  1996/08/13 13:55:55  digulla
  17.     Replaced AROS_LA by AROS_LHA
  18.     Replaced some AROS_LH*I by AROS_LH*
  19.     Sorted and added includes
  20.  
  21.     Revision 1.3  1996/08/01 17:41:01  digulla
  22.     Added standard header for all files
  23.  
  24.     Desc:
  25.     Lang: english
  26. */
  27. #include <exec/execbase.h>
  28. #include <exec/io.h>
  29. #include <aros/libcall.h>
  30. #include <proto/exec.h>
  31.  
  32. /*****************************************************************************
  33.  
  34.     NAME */
  35.  
  36.     AROS_LH1I(LONG, AbortIO,
  37.  
  38. /*  SYNOPSIS */
  39.     AROS_LHA(struct IORequest *, iORequest, A1),
  40.  
  41. /*  LOCATION */
  42.     struct ExecBase *, SysBase, 80, Exec)
  43.  
  44. /*  FUNCTION
  45.     Calls the AbortIO vector of the appropriate device to stop an
  46.     asynchronously started io request before completion. This may
  47.     or may not be done. You still have to do a WaitIO() on the
  48.     iorequest structure.
  49.  
  50.     INPUTS
  51.     iORequest - Pointer to iorequest structure.
  52.  
  53.     RESULT
  54.     Errorcode if the abort request failed, 0 if the abort request went
  55.     well. io_Error will then be set to IOERR_ABORTED.
  56.  
  57.     NOTES
  58.  
  59.     EXAMPLE
  60.  
  61.     BUGS
  62.  
  63.     SEE ALSO
  64.     OpenDevice(), CloseDevice(), DoIO(), SendIO(), WaitIO()
  65.  
  66.     INTERNALS
  67.  
  68.     HISTORY
  69.  
  70. ******************************************************************************/
  71. {
  72.     AROS_LIBFUNC_INIT
  73.  
  74.     return AROS_LVO_CALL1(ULONG,
  75.     AROS_LCA(struct IORequest *,iORequest,A1),
  76.     struct Device *,iORequest->io_Device,6,
  77.     );
  78.  
  79.     AROS_LIBFUNC_EXIT
  80. } /* AbortIO */
  81.  
  82.