diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/include/rtems/posix/time.h | 43 |
1 files changed, 6 insertions, 37 deletions
diff --git a/cpukit/posix/include/rtems/posix/time.h b/cpukit/posix/include/rtems/posix/time.h index 09a60aa428..8f4d4b6257 100644 --- a/cpukit/posix/include/rtems/posix/time.h +++ b/cpukit/posix/include/rtems/posix/time.h @@ -3,7 +3,12 @@ */ /* + * COPYRIGHT (c) 1989-2007. + * On-Line Applications Research Corporation (OAR). * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. * * $Id$ */ @@ -11,43 +16,7 @@ #ifndef _RTEMS_POSIX_TIME_H #define _RTEMS_POSIX_TIME_H -#include <rtems/score/tod.h> - -/* - * Seconds from January 1, 1970 to January 1, 1988. Used to account for - * differences between POSIX API and RTEMS core. - * - * XXX probably able to be removed once core switches completely to timespec - * XXX for current TOD. - */ -#define POSIX_TIME_SECONDS_1970_THROUGH_1988 TOD_SECONDS_1970_THROUGH_1988 - -/* - * _POSIX_Timespec_subtract - */ - -void _POSIX_Timespec_subtract( - const struct timespec *the_start, - const struct timespec *end, - struct timespec *result -); - -/* - * _POSIX_Timespec_to_interval - */ - -Watchdog_Interval _POSIX_Timespec_to_interval( - const struct timespec *time -); - -/* - * _POSIX_Interval_to_timespec - */ - -void _POSIX_Interval_to_timespec( - Watchdog_Interval ticks, - struct timespec *time -); +#include <rtems/score/timespec.h> /* * _POSIX_Absolute_timeout_to_ticks |