From c3925dbe923bf0944235bc2c4556955f35b0dc91 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Fri, 18 Jan 2008 16:31:57 +0000 Subject: 2008-01-18 Jennifer Averett * posix/include/rtems/posix/timer.h, posix/src/cleanuppop.c, posix/src/cleanuppush.c, posix/src/mqueueclose.c, posix/src/timergettime.c, posix/src/timersettime.c, score/include/rtems/score/timespec.h: --- cpukit/score/include/rtems/score/timespec.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'cpukit/score/include') diff --git a/cpukit/score/include/rtems/score/timespec.h b/cpukit/score/include/rtems/score/timespec.h index cc65e4084a..9a27f708bd 100644 --- a/cpukit/score/include/rtems/score/timespec.h +++ b/cpukit/score/include/rtems/score/timespec.h @@ -5,7 +5,7 @@ */ /* - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -77,6 +77,21 @@ boolean _Timespec_Greater_than( const struct timespec *rhs ); +/** @brief Timespec equal to Operator + * + * 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 + * + * @return This method returns true if @a lhs is equal to @a rhs and + * false otherwise. + */ +#define _Timespec_Equal_to( lhs, rhs ) \ + ( ((lhs)->tv_sec == (rhs)->tv_sec) && \ + ((lhs)->tv_nsec == (rhs)->tv_nsec) \ + ) + /** @brief Add to a Timespec * * This routine adds two timespecs. The second argument is added -- cgit v1.2.3