2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Search a semaphore by name
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
16 AROS_LH1(struct SignalSemaphore
*, FindSemaphore
,
19 AROS_LHA(CONST_STRPTR
, name
, A1
),
22 struct ExecBase
*, SysBase
, 99, Exec
)
25 Find a semaphore with a given name in the system global semaphore list.
26 Note that this call doesn't arbitrate for the list - use Forbid() to
30 name - Pointer to name.
33 Address of semaphore structure found or NULL.
45 ******************************************************************************/
49 /* Nothing spectacular - just look into the list */
50 return (struct SignalSemaphore
*)FindName(&SysBase
->SemaphoreList
,name
);