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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [src/] [semaphore.c] - Blame information for rev 214

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

Line No. Rev Author Line
1 30 unneback
/*
2
 *  $Id: semaphore.c,v 1.2 2001-09-27 11:59:17 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
#ifndef _POSIX_PATH_MAX
20
#define _POSIX_PATH_MAX 255
21
#endif
22
 
23
/*PAGE
24
 *
25
 *  _POSIX_Semaphore_Manager_initialization
26
 *
27
 *  This routine initializes all semaphore manager related data structures.
28
 *
29
 *  Input parameters:
30
 *    maximum_semaphores - maximum configured semaphores
31
 *
32
 *  Output parameters:  NONE
33
 */
34
 
35
void _POSIX_Semaphore_Manager_initialization(
36
  unsigned32 maximum_semaphores
37
)
38
{
39
  _Objects_Initialize_information(
40
    &_POSIX_Semaphore_Information,
41
    OBJECTS_POSIX_SEMAPHORES,
42
    TRUE,
43
    maximum_semaphores,
44
    sizeof( POSIX_Semaphore_Control ),
45
    TRUE,
46
    _POSIX_PATH_MAX,
47
    FALSE
48
  );
49
}

powered by: WebSVN 2.1.0

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