From a38283590c8d4cb578378f61fab34038258eed38 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Jun 1996 16:29:35 +0000 Subject: added constant for seconds between posix epoch (1970) and rtems epoch (1988). Formerly this constant was in the file src/time.c. --- c/src/exec/posix/headers/time.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'c/src/exec/posix/headers') diff --git a/c/src/exec/posix/headers/time.h b/c/src/exec/posix/headers/time.h index 0b11f2fa54..eb48d2af5d 100644 --- a/c/src/exec/posix/headers/time.h +++ b/c/src/exec/posix/headers/time.h @@ -7,6 +7,17 @@ #ifndef __RTEMS_POSIX_TIME_h #define __RTEMS_POSIX_TIME_h +#include + +/* + * Seconds from January 1, 1970 to January 1, 1988. Used to account for + * differences between POSIX API and RTEMS core. + */ + +#define POSIX_TIME_SECONDS_1970_THROUGH_1988 \ + (((1987 - 1970 + 1) * TOD_SECONDS_PER_NON_LEAP_YEAR) + \ + (4 * TOD_SECONDS_PER_DAY)) + Watchdog_Interval _POSIX_Time_Spec_to_interval( const struct timespec *time ); -- cgit v1.2.3