home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / devices / src / abortio.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-16  |  1.2 KB  |  62 lines

  1. /*
  2.     (C) 1995, 96 AROS - The Amiga Replacement OS
  3.     $Id$
  4.     $Log$
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include "exec_intern.h"
  9. #include <exec/io.h>
  10. #include <aros/libcall.h>
  11.  
  12. /*****************************************************************************
  13.  
  14.     NAME */
  15.     #include <clib/exec_protos.h>
  16.  
  17.     __AROS_LH1I(LONG, AbortIO,
  18.  
  19. /*  SYNOPSIS */
  20.     __AROS_LA(struct IORequest *, iORequest, A1),
  21.  
  22. /*  LOCATION */
  23.     struct ExecBase *, SysBase, 80, Exec)
  24.  
  25. /*  FUNCTION
  26.     Calls the AbortIO vector of the appropriate device to stop an
  27.     asyncronously started io request before completion. This may
  28.     or may not be done. You still have to do a WaitIO() on the
  29.     iorequest structure.
  30.  
  31.     INPUTS
  32.     iORequest - Pointer to iorequest structure.
  33.  
  34.     RESULT
  35.     Errorcode if the abort request failed, 0 if the abort request went
  36.     well. io_Error will then be set to IOERR_ABORTED.
  37.  
  38.     NOTES
  39.  
  40.     EXAMPLE
  41.  
  42.     BUGS
  43.  
  44.     SEE ALSO
  45.     OpenDevice(), CloseDevice(), DoIO(), SendIO(), WaitIO()
  46.  
  47.     INTERNALS
  48.  
  49.     HISTORY
  50.  
  51. ******************************************************************************/
  52. {
  53.     __AROS_FUNC_INIT
  54.  
  55.     return __AROS_LC1 (LONG, abortIO,
  56.     __AROS_LCA(struct IORequest *, iORequest, A1),
  57.     struct Device *, iORequest->io_Device, 6, Device);
  58.  
  59.     __AROS_FUNC_EXIT
  60. } /* AbortIO */
  61.  
  62.