source: rtems/cpukit/posix/src/ptimer.c @ 92f4671

4.104.115
Last change on this file since 92f4671 was 309e2f6, checked in by Joel Sherrill <joel.sherrill@…>, on 12/17/08 at 21:23:37

2008-12-17 Joel Sherrill <joel.sherrill@…>

  • posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/timer.h, posix/src/cond.c, posix/src/key.c, posix/src/mqueue.c, posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c, posix/src/psignal.c, posix/src/pspin.c, posix/src/pthread.c, posix/src/pthreadinitthreads.c, posix/src/ptimer.c, posix/src/semaphore.c, sapi/src/posixapi.c: Convert POSIX manager initialization routines to directly pull parameters from configuration table.
  • Property mode set to 100644
File size: 2.0 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 *  ptimer.c,v 1.1 1996/06/03 16:29:58 joel Exp
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <time.h>
17#include <errno.h>
18#include <limits.h> /* _POSIX_PATH_MAX */
19
20#include <rtems/system.h>
21#include <rtems/config.h>
22#include <rtems/score/isr.h>
23#include <rtems/score/thread.h>
24#include <rtems/score/tod.h>
25
26#include <rtems/posix/time.h>
27
28/************************************/
29/* These includes are now necessary */
30/************************************/
31
32#include <unistd.h>
33#include <rtems/rtems/status.h>
34#include <rtems/rtems/types.h>
35#include <rtems/rtems/timer.h>
36#include <rtems/rtems/clock.h>
37#include <rtems/posix/psignal.h>
38#include <rtems/score/wkspace.h>
39#include <pthread.h>
40#include <stdio.h>
41#include <signal.h>
42
43#include <rtems/posix/timer.h>
44
45/*
46 * _POSIX_Timer_Manager_initialization
47 *
48 *  Description:
49 *
50 *  Initialize the internal structure in which the data of all
51 *  the timers are stored
52 */
53
54void _POSIX_Timer_Manager_initialization(void)
55{
56  _Objects_Initialize_information(
57    &_POSIX_Timer_Information,  /* object information table */
58    OBJECTS_POSIX_API,          /* object API */
59    OBJECTS_POSIX_TIMERS,       /* object class */
60    Configuration_POSIX_API.maximum_timers,
61                                /* maximum objects of this class */
62    sizeof( POSIX_Timer_Control ),
63                                /* size of this object's control block */
64    TRUE,                       /* TRUE if names for this object are strings */
65    _POSIX_PATH_MAX             /* maximum length of each object's name */
66#if defined(RTEMS_MULTIPROCESSING)
67    ,
68    FALSE,                      /* TRUE if this is a global object class */
69    NULL                        /* Proxy extraction support callout */
70#endif
71  );
72}
Note: See TracBrowser for help on using the repository browser.