home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / dos / exallend.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  2.2 KB  |  93 lines

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