source: rtems/cpukit/sapi/src/posixapi.c @ 2ad250e

4.115
Last change on this file since 2ad250e was 2ad250e, checked in by Sebastian Huber <sebastian.huber@…>, on 08/06/13 at 12:46:24

posix: Create key implementation header

Move implementation specific parts of key.h and key.inl into new header
file keyimpl.h. The key.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/posix/barrierimpl.h>
31#include <rtems/posix/condimpl.h>
32#include <rtems/posix/config.h>
33#include <rtems/posix/keyimpl.h>
34#include <rtems/posix/mqueueimpl.h>
35#include <rtems/posix/muteximpl.h>
36#include <rtems/posix/posixapi.h>
37#include <rtems/posix/priorityimpl.h>
38#include <rtems/posix/psignalimpl.h>
39#include <rtems/posix/pthreadimpl.h>
40#include <rtems/posix/rwlockimpl.h>
41#include <rtems/posix/timerimpl.h>
42#include <rtems/posix/semaphoreimpl.h>
43#include <rtems/posix/spinlockimpl.h>
44#include <rtems/posix/time.h>
45
46Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ];
47
48void _POSIX_API_Initialize(void)
49{
50  /*
51   * If there are any type size assumptions in the POSIX API, this is
52   * the appropriate place to place them.
53   *
54   * Currently, there are no none type size assumptions.
55   */
56
57  /*
58   * Install our API Object Management Table and initialize the
59   * various managers.
60   */
61  _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects;
62
63  _POSIX_signals_Manager_Initialization();
64  _POSIX_Threads_Manager_initialization();
65  _POSIX_Condition_variables_Manager_initialization();
66  _POSIX_Key_Manager_initialization();
67  _POSIX_Mutex_Manager_initialization();
68  _POSIX_Message_queue_Manager_initialization();
69  _POSIX_Semaphore_Manager_initialization();
70  _POSIX_Timer_Manager_initialization();
71  _POSIX_Barrier_Manager_initialization();
72  _POSIX_RWLock_Manager_initialization();
73  _POSIX_Spinlock_Manager_initialization();
74}
75
76#endif
Note: See TracBrowser for help on using the repository browser.