source: rtems/c/src/exec/posix/include/rtems/posix/time.h @ 7fc3029

4.104.114.84.95
Last change on this file since 7fc3029 was 5b748a1, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/96 at 17:32:19

renamed _POSIX_Time_Spec_to_interval to _POSIX_Timespec_to_interval

  • Property mode set to 100644
File size: 650 bytes
Line 
1/*
2 *
3 *
4 *  $Id$
5 */
6
7#ifndef __RTEMS_POSIX_TIME_h
8#define __RTEMS_POSIX_TIME_h
9
10#include <rtems/score/tod.h>
11
12/*
13 *  Seconds from January 1, 1970 to January 1, 1988.  Used to account for
14 *  differences between POSIX API and RTEMS core.
15 */
16 
17#define POSIX_TIME_SECONDS_1970_THROUGH_1988 \
18  (((1987 - 1970 + 1)  * TOD_SECONDS_PER_NON_LEAP_YEAR) + \
19  (4 * TOD_SECONDS_PER_DAY))
20
21/*
22 *  _POSIX_Timespec_to_interval
23 */
24
25Watchdog_Interval _POSIX_Timespec_to_interval(
26  const struct timespec *time
27);
28
29/*PAGE
30 *
31 *  _POSIX_Interval_to_timespec
32 */
33 
34void _POSIX_Interval_to_timespec(
35  Watchdog_Interval  ticks,
36  struct timespec   *time
37);
38
39#endif
Note: See TracBrowser for help on using the repository browser.