source: rtems/cpukit/posix/include/rtems/posix/time.h @ 6c2675d

4.104.114.84.95
Last change on this file since 6c2675d was 6c2675d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 06:27:15

Add doxygen preamble.

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