2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: amiga.lib function DeleteStdIo()
8 #include <exec/memory.h>
10 /*****************************************************************************
14 #include <proto/alib.h>
15 #include <proto/exec.h>
23 Delete a structure which was created by CreateStdIO().
26 io - The value returned by CreateStdIO(). Must be
45 ******************************************************************************/
47 # define ioreq ((struct IORequest *)io)
48 /* Write illegal values to some fields to enforce crashes */
49 ioreq
->io_Message
.mn_Node
.ln_Type
= -1L;
51 ioreq
->io_Device
= (struct Device
*)-1L;
52 ioreq
->io_Unit
= (struct Unit
*)-1L;
54 FreeMem (ioreq
, ioreq
->io_Message
.mn_Length
);