[5ff991e8] | 1 | /* |
---|
[0747e2d] | 2 | * ptimer.c,v 1.1 1996/06/03 16:29:58 joel Exp |
---|
[5ff991e8] | 3 | */ |
---|
[f42b726] | 4 | |
---|
| 5 | #if HAVE_CONFIG_H |
---|
| 6 | #include "config.h" |
---|
| 7 | #endif |
---|
[874297f3] | 8 | |
---|
[5ff991e8] | 9 | #include <assert.h> |
---|
| 10 | #include <time.h> |
---|
| 11 | #include <errno.h> |
---|
[8a02d0af] | 12 | #include <limits.h> /* _POSIX_PATH_MAX */ |
---|
[5ff991e8] | 13 | |
---|
| 14 | #include <rtems/system.h> |
---|
| 15 | #include <rtems/score/isr.h> |
---|
| 16 | #include <rtems/score/thread.h> |
---|
| 17 | #include <rtems/score/tod.h> |
---|
| 18 | |
---|
| 19 | #include <rtems/posix/time.h> |
---|
| 20 | |
---|
[0747e2d] | 21 | /************************************/ |
---|
| 22 | /* These includes are now necessary */ |
---|
| 23 | /************************************/ |
---|
| 24 | |
---|
[0ff3df03] | 25 | #include <unistd.h> |
---|
[0747e2d] | 26 | #include <rtems/rtems/status.h> |
---|
| 27 | #include <rtems/rtems/types.h> |
---|
| 28 | #include <rtems/rtems/timer.h> |
---|
| 29 | #include <rtems/rtems/clock.h> |
---|
| 30 | #include <rtems/posix/psignal.h> |
---|
| 31 | #include <rtems/score/wkspace.h> |
---|
| 32 | #include <pthread.h> |
---|
| 33 | #include <stdio.h> |
---|
| 34 | #include <signal.h> |
---|
| 35 | |
---|
[68003979] | 36 | #include <rtems/posix/timer.h> |
---|
[0747e2d] | 37 | |
---|
[0243b0d] | 38 | /* |
---|
[0747e2d] | 39 | * _POSIX_Timer_Manager_initialization |
---|
| 40 | * |
---|
[874297f3] | 41 | * Description: Initialize the internal structure in which the data of all |
---|
[0747e2d] | 42 | * the timers are stored |
---|
[0243b0d] | 43 | */ |
---|
[68003979] | 44 | |
---|
[0243b0d] | 45 | void _POSIX_Timer_Manager_initialization ( int maximum_timers ) |
---|
[0747e2d] | 46 | { |
---|
[0243b0d] | 47 | _Objects_Initialize_information( |
---|
| 48 | &_POSIX_Timer_Information, /* object information table */ |
---|
| 49 | OBJECTS_POSIX_API, /* object API */ |
---|
| 50 | OBJECTS_POSIX_TIMERS, /* object class */ |
---|
| 51 | maximum_timers, /* maximum objects of this class */ |
---|
| 52 | sizeof( POSIX_Timer_Control ), |
---|
| 53 | /* size of this object's control block */ |
---|
| 54 | FALSE, /* TRUE if names for this object are strings */ |
---|
| 55 | _POSIX_PATH_MAX /* maximum length of each object's name */ |
---|
| 56 | #if defined(RTEMS_MULTIPROCESSING) |
---|
| 57 | , |
---|
| 58 | FALSE, /* TRUE if this is a global object class */ |
---|
| 59 | NULL /* Proxy extraction support callout */ |
---|
| 60 | #endif |
---|
| 61 | ); |
---|
[0747e2d] | 62 | } |
---|