Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / alib / createextio.c
blobb9e4c3c50f2aa0dc9c1c389edfb727348cce845e
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <exec/memory.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
15 #include <exec/io.h>
16 #include <proto/alib.h>
18 struct IORequest * CreateExtIO (
20 /* SYNOPSIS */
21 struct MsgPort * port,
22 ULONG iosize)
24 /* FUNCTION
25 Create an extended IORequest structure. This structure can
26 be freed with DeleteExtIO().
28 INPUTS
29 port - MsgPort to be signaled on events
30 iosize - Size of the structure
32 RESULT
33 A pointer to the new IORequest structure.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 CreateStdIO(), DeleteExtIO()
44 INTERNALS
46 HISTORY
48 ******************************************************************************/
50 AROS_GET_SYSBASE_OK
51 struct IORequest *ioreq=NULL;
53 if (port && (ioreq = AllocMem (iosize, MEMF_CLEAR|MEMF_PUBLIC)))
55 /* Initialize the structure */
56 ioreq->io_Message.mn_Node.ln_Type = NT_MESSAGE;
57 ioreq->io_Message.mn_ReplyPort = port;
58 ioreq->io_Message.mn_Length = iosize;
61 return ioreq;
62 } /* CreateExtIO */