2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: amiga.lib function CreatePort()
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <exec/ports.h>
15 #include <proto/alib.h>
17 struct MsgPort
* CreatePort (
24 Allocate and initialize a new Exec message port. You must
25 use DeletePort() to get rid of it.
28 name - The name of the new port. The string is not copied
29 pri - The priority of the port.
32 A pointer to the new message port or NULL if no memory or
33 no signal was available.
42 DeletePort(), CreateMsgPort(), DeleteMsgPort()
48 ******************************************************************************/
53 mp
= CreateMsgPort ();
57 mp
->mp_Node
.ln_Name
= name
;
58 mp
->mp_Node
.ln_Pri
= pri
;