diff options
-rw-r--r-- | c/src/exec/posix/headers/time.h | 11 | ||||
-rw-r--r-- | c/src/exec/posix/include/rtems/posix/time.h | 11 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/time.h | 11 |
3 files changed, 33 insertions, 0 deletions
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 */ |