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

4.115
Last change on this file since a0e6c73 was f9340ed7, checked in by Sebastian Huber <sebastian.huber@…>, on 12/03/12 at 10:35:43

posix: Add and use <rtems/posix/psignalimpl.h>

This file contains the parts of <rtems/posix/psignal.h> that are only
necessary for the POSIX API implementation.

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