home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / exec / findsemaphore.c < prev    next >
Encoding:
C/C++ Source or Header  |  1978-03-06  |  1.4 KB  |  67 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: findsemaphore.c,v 1.5 1996/10/24 15:50:49 aros Exp $
  4.     $Log: findsemaphore.c,v $
  5.     Revision 1.5  1996/10/24 15:50:49  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.4  1996/08/13 13:56:02  digulla
  9.     Replaced AROS_LA by AROS_LHA
  10.     Replaced some AROS_LH*I by AROS_LH*
  11.     Sorted and added includes
  12.  
  13.     Revision 1.3  1996/08/01 17:41:11  digulla
  14.     Added standard header for all files
  15.  
  16.     Desc:
  17.     Lang: english
  18. */
  19. #include <exec/execbase.h>
  20. #include <aros/libcall.h>
  21.  
  22. /*****************************************************************************
  23.  
  24.     NAME */
  25.     #include <clib/exec_protos.h>
  26.  
  27.     AROS_LH1(struct SignalSemaphore *, FindSemaphore,
  28.  
  29. /*  SYNOPSIS */
  30.     AROS_LHA(STRPTR, name, A1),
  31.  
  32. /*  LOCATION */
  33.     struct ExecBase *, SysBase, 99, Exec)
  34.  
  35. /*  FUNCTION
  36.     Find a semaphore with a given name in the system global semaphore list.
  37.     Note that this call doesn't arbitrate for the list - use Forbid() to
  38.     do this yourself.
  39.  
  40.     INPUTS
  41.     name - Pointer to name.
  42.  
  43.     RESULT
  44.     Address of semaphore structure found or NULL.
  45.  
  46.     NOTES
  47.  
  48.     EXAMPLE
  49.  
  50.     BUGS
  51.  
  52.     SEE ALSO
  53.  
  54.     INTERNALS
  55.  
  56.     HISTORY
  57.  
  58. ******************************************************************************/
  59. {
  60.     AROS_LIBFUNC_INIT
  61.  
  62.     /* Nothing spectacular - just look into the list */
  63.     return (struct SignalSemaphore *)FindName(&SysBase->SemaphoreList,name);
  64.     AROS_LIBFUNC_EXIT
  65. } /* FindSemaphore */
  66.  
  67.