2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Search a port by name.
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
16 AROS_LH1(struct MsgPort
*, FindPort
,
19 AROS_LHA(STRPTR
, name
, A1
),
22 struct ExecBase
*, SysBase
, 65, Exec
)
25 Look for a public messageport by name. This function doesn't
26 arbitrate for the port list and must be protected with a Forbid()
30 port - Pointer to NUL terminated C string.
33 Pointer to struct MsgPort or NULL if there is no port of that name.
45 ******************************************************************************/
49 /* Nothing spectacular - just look for that name. */
50 return (struct MsgPort
*)FindName(&SysBase
->PortList
,name
);