From ded66f8f41d68bf1dc9a05c83304c30e09149f63 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 17 Sep 1996 21:26:25 +0000 Subject: [PATCH] added prototype for _POSIX_Timespec_subtract --- c/src/exec/posix/headers/time.h | 11 +++++++++++ c/src/exec/posix/include/rtems/posix/time.h | 11 +++++++++++ cpukit/posix/include/rtems/posix/time.h | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/c/src/exec/posix/headers/time.h b/c/src/exec/posix/headers/time.h index 7b1f731428..0e87db388e 100644 --- a/c/src/exec/posix/headers/time.h +++ b/c/src/exec/posix/headers/time.h @@ -18,6 +18,17 @@ (((1987 - 1970 + 1) * TOD_SECONDS_PER_NON_LEAP_YEAR) + \ (4 * TOD_SECONDS_PER_DAY)) +/*PAGE + * + * _POSIX_Timespec_subtract + */ + +void _POSIX_Timespec_subtract( + const struct timespec *the_start, + const struct timespec *end, + struct timespec *result +); + /* * _POSIX_Timespec_to_interval */ diff --git a/c/src/exec/posix/include/rtems/posix/time.h b/c/src/exec/posix/include/rtems/posix/time.h index 7b1f731428..0e87db388e 100644 --- a/c/src/exec/posix/include/rtems/posix/time.h +++ b/c/src/exec/posix/include/rtems/posix/time.h @@ -18,6 +18,17 @@ (((1987 - 1970 + 1) * TOD_SECONDS_PER_NON_LEAP_YEAR) + \ (4 * TOD_SECONDS_PER_DAY)) +/*PAGE + * + * _POSIX_Timespec_subtract + */ + +void _POSIX_Timespec_subtract( + const struct timespec *the_start, + const struct timespec *end, + struct timespec *result +); + /* * _POSIX_Timespec_to_interval */ diff --git a/cpukit/posix/include/rtems/posix/time.h b/cpukit/posix/include/rtems/posix/time.h index 7b1f731428..0e87db388e 100644 --- a/cpukit/posix/include/rtems/posix/time.h +++ b/cpukit/posix/include/rtems/posix/time.h @@ -18,6 +18,17 @@ (((1987 - 1970 + 1) * TOD_SECONDS_PER_NON_LEAP_YEAR) + \ (4 * TOD_SECONDS_PER_DAY)) +/*PAGE + * + * _POSIX_Timespec_subtract + */ + +void _POSIX_Timespec_subtract( + const struct timespec *the_start, + const struct timespec *end, + struct timespec *result +); + /* * _POSIX_Timespec_to_interval */