source: rtems/cpukit/sapi/src/posixapi.c @ 35210b12

4.115
Last change on this file since 35210b12 was 35210b12, checked in by Sebastian Huber <sebastian.huber@…>, on 07/19/13 at 10:08:02

posix: Create condition variable impl header

Move implementation specific parts of cond.h and cond.inl into new
header file condimpl.h. The cond.h contains now only the application
visible API.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/**
2 * @file
3 *
4 * @brief Initialize POSIX API
5 *
6 * @ingroup ClassicRTEMS
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2010.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#define POSIX_API_INIT
23
24#include <rtems/system.h>    /* include this before checking RTEMS_POSIX_API */
25#ifdef RTEMS_POSIX_API
26
27#include <sys/types.h>
28#include <mqueue.h>
29#include <rtems/config.h>
30#include <rtems/score/object.h>
31#include <rtems/posix/barrierimpl.h>
32#include <rtems/posix/condimpl.h>
33#include <rtems/posix/config.h>
34#include <rtems/posix/key.h>
35#include <rtems/posix/mqueueimpl.h>
36#include <rtems/posix/muteximpl.h>
37#include <rtems/posix/posixapi.h>
38#include <rtems/posix/priority.h>
39#include <rtems/posix/psignalimpl.h>
40#include <rtems/posix/pthread.h>
41#include <rtems/posix/rwlock.h>
42#include <rtems/posix/timer.h>
43#include <rtems/posix/semaphoreimpl.h>
44#include <rtems/posix/spinlock.h>
45#include <rtems/posix/time.h>
46
47Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ];
48
49void _POSIX_API_Initialize(void)
50{
51  /*
52   * If there are any type size assumptions in the POSIX API, this is
53   * the appropriate place to place them.
54   *
55   * Currently, there are no none type size assumptions.
56   */
57
58  /*
59   * Install our API Object Management Table and initialize the
60   * various managers.
61   */
62  _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects;
63
64  _POSIX_signals_Manager_Initialization();
65  _POSIX_Threads_Manager_initialization();
66  _POSIX_Condition_variables_Manager_initialization();
67  _POSIX_Key_Manager_initialization();
68  _POSIX_Mutex_Manager_initialization();
69  _POSIX_Message_queue_Manager_initialization();
70  _POSIX_Semaphore_Manager_initialization();
71  _POSIX_Timer_Manager_initialization();
72  _POSIX_Barrier_Manager_initialization();
73  _POSIX_RWLock_Manager_initialization();
74  _POSIX_Spinlock_Manager_initialization();
75}
76
77#endif
Note: See TracBrowser for help on using the repository browser.