home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / dos / exallend.c < prev    next >
Encoding:
C/C++ Source or Header  |  1978-03-06  |  2.1 KB  |  85 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: exallend.c,v 1.2 1996/10/24 15:50:27 aros Exp $
  4.     $Log: exallend.c,v $
  5.     Revision 1.2  1996/10/24 15:50:27  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.1  1996/09/11 12:54:45  digulla
  9.     A couple of new DOS functions from M. Fleischer
  10.  
  11.     Desc:
  12.     Lang: english
  13. */
  14. #include <exec/memory.h>
  15. #include <clib/exec_protos.h>
  16. #include <dos/filesystem.h>
  17. #include <dos/dosextens.h>
  18. #include <dos/exall.h>
  19. #include "dos_intern.h"
  20.  
  21. /*****************************************************************************
  22.  
  23.     NAME */
  24.     #include <clib/dos_protos.h>
  25.  
  26.     AROS_LH5(void, ExAllEnd,
  27.  
  28. /*  SYNOPSIS */
  29.     AROS_LHA(BPTR,                  lock,    D1),
  30.     AROS_LHA(struct ExAllData *,    buffer,  D2),
  31.     AROS_LHA(LONG,                  size,    D3),
  32.     AROS_LHA(LONG,                  data,    D4),
  33.     AROS_LHA(struct ExAllControl *, control, D5),
  34.  
  35. /*  LOCATION */
  36.     struct DosLibrary *, DOSBase, 165, Dos)
  37.  
  38. /*  FUNCTION
  39.  
  40.     INPUTS
  41.  
  42.     RESULT
  43.  
  44.     NOTES
  45.  
  46.     EXAMPLE
  47.  
  48.     BUGS
  49.  
  50.     SEE ALSO
  51.  
  52.     INTERNALS
  53.  
  54.     HISTORY
  55.     29-10-95    digulla automatically created from
  56.                 dos_lib.fd and clib/dos_protos.h
  57.  
  58. *****************************************************************************/
  59. {
  60.     AROS_LIBFUNC_INIT
  61.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  62.     
  63.     /* Get pointer to filehandle */
  64.     struct FileHandle *fh=(struct FileHandle *)BADDR(lock);
  65.  
  66.     /* Get pointer to process structure */
  67.     struct Process *me=(struct Process *)FindTask(NULL);
  68.  
  69.     /* Get pointer to I/O request. Use stackspace for now. */
  70.     struct IOFileSys io,*iofs=&io;
  71.  
  72.     /* Prepare I/O request. */
  73.     iofs->IOFS.io_Message.mn_Node.ln_Type=NT_REPLYMSG;
  74.     iofs->IOFS.io_Message.mn_ReplyPort   =&me->pr_MsgPort;
  75.     iofs->IOFS.io_Message.mn_Length      =sizeof(struct IOFileSys);
  76.     iofs->IOFS.io_Device =fh->fh_Device;
  77.     iofs->IOFS.io_Unit   =fh->fh_Unit;
  78.     iofs->IOFS.io_Command=FSA_EXAMINE_ALL_END;
  79.     iofs->IOFS.io_Flags  =0;
  80.  
  81.     /* Send the request. May not fail. */
  82.     DoIO(&iofs->IOFS);
  83.     AROS_LIBFUNC_EXIT
  84. } /* ExAllEnd */
  85.