From 6a6141606b1e0300aacc6edb01d4204e710ca49e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Dec 2008 22:27:47 +0000 Subject: 2008-12-05 Joel Sherrill * score/include/rtems/score/timespec.h: Remove unnecessary includes. Fix typo. * posix/include/rtems/posix/time.h, score/src/coretodget.c, score/src/coretodgetuptime.c: Add required include files which were formerly included from timespec.h --- cpukit/ChangeLog | 8 ++++++++ cpukit/posix/include/rtems/posix/time.h | 1 + cpukit/score/include/rtems/score/timespec.h | 14 ++++++-------- cpukit/score/src/coretodget.c | 3 ++- cpukit/score/src/coretodgetuptime.c | 3 ++- 5 files changed, 19 insertions(+), 10 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index f1ddfed5f0..f57a68be55 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,11 @@ +2008-12-05 Joel Sherrill + + * score/include/rtems/score/timespec.h: Remove unnecessary includes. + Fix typo. + * posix/include/rtems/posix/time.h, score/src/coretodget.c, + score/src/coretodgetuptime.c: Add required include files which + were formerly included from timespec.h + 2008-12-05 Joel Sherrill * libfs/src/pipe/fifo.c: Do not include .inl files directly. Use .h diff --git a/cpukit/posix/include/rtems/posix/time.h b/cpukit/posix/include/rtems/posix/time.h index 0782996399..947f7795d6 100644 --- a/cpukit/posix/include/rtems/posix/time.h +++ b/cpukit/posix/include/rtems/posix/time.h @@ -17,6 +17,7 @@ #define _RTEMS_POSIX_TIME_H #include +#include /** @brief Absolute Timeout Conversion Results * diff --git a/cpukit/score/include/rtems/score/timespec.h b/cpukit/score/include/rtems/score/timespec.h index e7b17e871d..42eb67a377 100644 --- a/cpukit/score/include/rtems/score/timespec.h +++ b/cpukit/score/include/rtems/score/timespec.h @@ -31,12 +31,10 @@ extern "C" { #endif #include -#include -#include /** @brief Is Timespec Valid * - * This method determines the validatity of a timespec. + * This method determines the validity of a timespec. * * @param[in] time is the timespec instance to validate. * @@ -52,7 +50,7 @@ bool _Timespec_Is_valid( * This method is the less than operator for timespecs. * * @param[in] lhs is the left hand side timespec - * @param[in] rhs is the left hand side timespec + * @param[in] rhs is the right hand side timespec * * @return This method returns true if @a lhs is less than the @a rhs and * false otherwise. @@ -67,7 +65,7 @@ bool _Timespec_Less_than( * This method is the greater than operator for timespecs. * * @param[in] lhs is the left hand side timespec - * @param[in] rhs is the left hand side timespec + * @param[in] rhs is the right hand side timespec * * @return This method returns true if @a lhs is greater than the @a rhs and * false otherwise. @@ -82,7 +80,7 @@ bool _Timespec_Greater_than( * This method is the is equal to than operator for timespecs. * * @param[in] lhs is the left hand side timespec - * @param[in] rhs is the left hand side timespec + * @param[in] rhs is the right hand side timespec * * @return This method returns true if @a lhs is equal to @a rhs and * false otherwise. @@ -150,7 +148,7 @@ void _Timespec_Subtract( struct timespec *result ); -/** @brief Divide Timespec By Integet +/** @brief Divide Timespec By Integer * * This routine divides a timespec by an integer value. The expected * use is to assist in benchmark calculations where you typically @@ -174,7 +172,7 @@ void _Timespec_Divide_by_integer( * intended use is for calculating percentages to three decimal points. * * @param[in] lhs is the left hand number - * @param[in] rhs is the righ hand number + * @param[in] rhs is the right hand number * @param[in] ival_percentage is the integer portion of the average * @param[in] fval_percentage is the thousandths of percentage * diff --git a/cpukit/score/src/coretodget.c b/cpukit/score/src/coretodget.c index 3a5e2db16c..1d48082f26 100644 --- a/cpukit/score/src/coretodget.c +++ b/cpukit/score/src/coretodget.c @@ -1,7 +1,7 @@ /* * Time of Day (TOD) Handler - get TOD * - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -19,6 +19,7 @@ #include #include #include +#include /* * _TOD_Get diff --git a/cpukit/score/src/coretodgetuptime.c b/cpukit/score/src/coretodgetuptime.c index e0047070b5..7155419f34 100644 --- a/cpukit/score/src/coretodgetuptime.c +++ b/cpukit/score/src/coretodgetuptime.c @@ -2,7 +2,7 @@ * Time of Day (TOD) Handler - get uptime */ -/* COPYRIGHT (c) 1989-2007. +/* COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -20,6 +20,7 @@ #include #include #include +#include /* * _TOD_Get_uptime -- cgit v1.2.3