2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
5 Desc: Free a structure created by CreateExtIO()
9 #include <proto/exec.h>
11 /*****************************************************************************
15 #include <proto/alib.h>
20 struct IORequest
* ioreq
)
23 Free a structure created by CreateExtIO().
26 ioreq - The return value of CreateExtIO(). May be NULL.
38 CreateStdIO(), CreateExtIO(), DeleteStdIO()
42 ******************************************************************************/
46 /* Erase some fields to enforce crashes */
47 ioreq
->io_Message
.mn_Node
.ln_Type
= -1L;
49 ioreq
->io_Device
= (struct Device
*)-1L;
50 ioreq
->io_Unit
= (struct Unit
*)-1L;
53 FreeMem(ioreq
,ioreq
->io_Message
.mn_Length
);