source: rtems/cpukit/posix/src/ptimer.c @ 9c9c6a9

5
Last change on this file since 9c9c6a9 was 9c9c6a9, checked in by Sebastian Huber <sebastian.huber@…>, on 11/21/18 at 16:30:52

score: Remove Objects_Information::is_string

Use Objects_Information::name_length to store this information.

Update #3621.

  • Property mode set to 100644
File size: 1.8 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    OBJECTS_NO_STRING_NAME,     /* maximum length of an object name */
69    NULL                        /* Proxy extraction support callout */
70  );
71}
72
73RTEMS_SYSINIT_ITEM(
74  _POSIX_Timer_Manager_initialization,
75  RTEMS_SYSINIT_POSIX_TIMER,
76  RTEMS_SYSINIT_ORDER_MIDDLE
77);
Note: See TracBrowser for help on using the repository browser.