Changeset 5ff991e8 in rtems


Ignore:
Timestamp:
06/03/96 16:29:59 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
19962562
Parents:
a3828359
Message:

created ptimer.c and moved the timer_* routines out of time.c into ptimer.c

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/time.c

    ra3828359 r5ff991e8  
    1212#include <rtems/score/tod.h>
    1313
    14 /*
    15  *  Seconds from January 1, 1970 to January 1, 1988.  Used to account for
    16  *  differences between POSIX API and RTEMS core.
    17  */
    18 
    19 #define POSIX_TIME_SECONDS_1970_THROUGH_1988 \
    20   (((1987 - 1970 + 1)  * TOD_SECONDS_PER_NON_LEAP_YEAR) + \
    21   (4 * TOD_SECONDS_PER_DAY))
     14#include <rtems/posix/time.h>
    2215
    2316/*
     
    225218  }
    226219  return 0;
    227 }
    228 
    229 /*
    230  *  14.2.2 Create a Per-Process Timer, P1003.1b-1993, p. 264
    231  */
    232 
    233 int timer_create(
    234   clockid_t        clock_id,
    235   struct sigevent *evp,
    236   timer_t         *timerid
    237 )
    238 {
    239   return POSIX_NOT_IMPLEMENTED();
    240 }
    241 
    242 /*
    243  *  14.2.3 Delete a Per_process Timer, P1003.1b-1993, p. 266
    244  */
    245 
    246 int timer_delete(
    247   timer_t timerid
    248 )
    249 {
    250   return POSIX_NOT_IMPLEMENTED();
    251 }
    252 
    253 /*
    254  *  14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
    255  */
    256 
    257 int timer_settime(
    258   timer_t                  timerid,
    259   int                      flags,
    260   const struct itimerspec *value,
    261   struct itimerspec       *ovalue
    262 )
    263 {
    264   return POSIX_NOT_IMPLEMENTED();
    265 }
    266 
    267 /*
    268  *  14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
    269  */
    270 
    271 int timer_gettime(
    272   timer_t            timerid,
    273   struct itimerspec *value
    274 )
    275 {
    276   return POSIX_NOT_IMPLEMENTED();
    277220}
    278221
  • cpukit/posix/src/time.c

    ra3828359 r5ff991e8  
    1212#include <rtems/score/tod.h>
    1313
    14 /*
    15  *  Seconds from January 1, 1970 to January 1, 1988.  Used to account for
    16  *  differences between POSIX API and RTEMS core.
    17  */
    18 
    19 #define POSIX_TIME_SECONDS_1970_THROUGH_1988 \
    20   (((1987 - 1970 + 1)  * TOD_SECONDS_PER_NON_LEAP_YEAR) + \
    21   (4 * TOD_SECONDS_PER_DAY))
     14#include <rtems/posix/time.h>
    2215
    2316/*
     
    225218  }
    226219  return 0;
    227 }
    228 
    229 /*
    230  *  14.2.2 Create a Per-Process Timer, P1003.1b-1993, p. 264
    231  */
    232 
    233 int timer_create(
    234   clockid_t        clock_id,
    235   struct sigevent *evp,
    236   timer_t         *timerid
    237 )
    238 {
    239   return POSIX_NOT_IMPLEMENTED();
    240 }
    241 
    242 /*
    243  *  14.2.3 Delete a Per_process Timer, P1003.1b-1993, p. 266
    244  */
    245 
    246 int timer_delete(
    247   timer_t timerid
    248 )
    249 {
    250   return POSIX_NOT_IMPLEMENTED();
    251 }
    252 
    253 /*
    254  *  14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
    255  */
    256 
    257 int timer_settime(
    258   timer_t                  timerid,
    259   int                      flags,
    260   const struct itimerspec *value,
    261   struct itimerspec       *ovalue
    262 )
    263 {
    264   return POSIX_NOT_IMPLEMENTED();
    265 }
    266 
    267 /*
    268  *  14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
    269  */
    270 
    271 int timer_gettime(
    272   timer_t            timerid,
    273   struct itimerspec *value
    274 )
    275 {
    276   return POSIX_NOT_IMPLEMENTED();
    277220}
    278221
Note: See TracChangeset for help on using the changeset viewer.