source: rtems/cpukit/posix/src/ptimer.c @ e97806a

5
Last change on this file since e97806a was e97806a, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 14, 2018 at 5:20:05 PM

posix: Split posix_api_configuration_table

Use separate configuration variables to avoid false dependencies.

Update #2514.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @brief Process Timer
5 * @ingroup POSIXAPI
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <time.h>
22#include <errno.h>
23#include <limits.h> /* _POSIX_PATH_MAX */
24
25#include <rtems/system.h>
26#include <rtems/config.h>
27#include <rtems/score/isr.h>
28#include <rtems/score/thread.h>
29
30
31/************************************/
32/* These includes are now necessary */
33/************************************/
34
35#include <unistd.h>
36#include <rtems/sysinit.h>
37#include <rtems/rtems/status.h>
38#include <rtems/rtems/types.h>
39#include <rtems/rtems/timer.h>
40#include <rtems/rtems/clock.h>
41#include <rtems/score/wkspace.h>
42#include <pthread.h>
43#include <stdio.h>
44#include <signal.h>
45
46#include <rtems/posix/timerimpl.h>
47
48Objects_Information _POSIX_Timer_Information;
49
50/*
51 * _POSIX_Timer_Manager_initialization
52 *
53 *  Description:
54 *
55 *  Initialize the internal structure in which the data of all
56 *  the timers are stored
57 */
58
59static void _POSIX_Timer_Manager_initialization(void)
60{
61  _Objects_Initialize_information(
62    &_POSIX_Timer_Information,  /* object information table */
63    OBJECTS_POSIX_API,          /* object API */
64    OBJECTS_POSIX_TIMERS,       /* object class */
65    _Configuration_POSIX_Maximum_timers,
66    sizeof( POSIX_Timer_Control ),
67                                /* size of this object's control block */
68    false,                      /* true if names for this object are strings */
69    0,                          /* maximum length of each object's name */
70    NULL                        /* Proxy extraction support callout */
71  );
72}
73
74RTEMS_SYSINIT_ITEM(
75  _POSIX_Timer_Manager_initialization,
76  RTEMS_SYSINIT_POSIX_TIMER,
77  RTEMS_SYSINIT_ORDER_MIDDLE
78);
Note: See TracBrowser for help on using the repository browser.