OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [exec/] [posix/] [src/] [semaphore.c] - Blame information for rev 158

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
/*
2
 *  $Id: semaphore.c,v 1.1.1.1 2001-07-10 09:43:02 chris Exp $
3
 */
4
 
5
#include <stdarg.h>
6
 
7
#include <errno.h>
8
#include <fcntl.h>
9
#include <pthread.h>
10
#include <semaphore.h>
11
#include <limits.h>
12
 
13
#include <rtems/system.h>
14
#include <rtems/score/object.h>
15
#include <rtems/posix/semaphore.h>
16
#include <rtems/posix/time.h>
17
#include <rtems/posix/seterr.h>
18
 
19
/*PAGE
20
 *
21
 *  _POSIX_Semaphore_Manager_initialization
22
 *
23
 *  This routine initializes all semaphore manager related data structures.
24
 *
25
 *  Input parameters:
26
 *    maximum_semaphores - maximum configured semaphores
27
 *
28
 *  Output parameters:  NONE
29
 */
30
 
31
void _POSIX_Semaphore_Manager_initialization(
32
  unsigned32 maximum_semaphores
33
)
34
{
35
  _Objects_Initialize_information(
36
    &_POSIX_Semaphore_Information,
37
    OBJECTS_POSIX_SEMAPHORES,
38
    TRUE,
39
    maximum_semaphores,
40
    sizeof( POSIX_Semaphore_Control ),
41
    TRUE,
42
    _POSIX_PATH_MAX,
43
    FALSE
44
  );
45
}

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.