Added useful custom dimensions to some top-level drawers that lacked them.
[AROS.git] / rom / exec / findsemaphore.c
blob2f836df56f524ccf7edd3848d3e79538fc6bf530
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Search a semaphore by name
6 Lang: english
7 */
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
16 AROS_LH1(struct SignalSemaphore *, FindSemaphore,
18 /* SYNOPSIS */
19 AROS_LHA(CONST_STRPTR, name, A1),
21 /* LOCATION */
22 struct ExecBase *, SysBase, 99, Exec)
24 /* FUNCTION
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
27 do this yourself.
29 INPUTS
30 name - Pointer to name.
32 RESULT
33 Address of semaphore structure found or NULL.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 ******************************************************************************/
47 AROS_LIBFUNC_INIT
49 /* Nothing spectacular - just look into the list */
50 return (struct SignalSemaphore *)FindName(&SysBase->SemaphoreList,name);
51 AROS_LIBFUNC_EXIT
52 } /* FindSemaphore */