diff options
author | Krzysztof Mięsowicz <krzysztof.miesowicz@gmail.com> | 2012-08-29 07:38:54 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-08-29 07:38:54 -0500 |
commit | a6eaa5489c8da1e38300722715326cbf3ab1b65f (patch) | |
tree | 0513a9a7103a37b0faded653487404e436b59b23 /cpukit/sapi/include/rtems/timespec.h | |
parent | sp77: new test to cover allocated message size overflowing (diff) | |
download | rtems-a6eaa5489c8da1e38300722715326cbf3ab1b65f.tar.bz2 |
timespec helpers: Add wrappers with new test
Diffstat (limited to '')
-rw-r--r-- | cpukit/sapi/include/rtems/timespec.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/cpukit/sapi/include/rtems/timespec.h b/cpukit/sapi/include/rtems/timespec.h new file mode 100644 index 0000000000..b661d43fc0 --- /dev/null +++ b/cpukit/sapi/include/rtems/timespec.h @@ -0,0 +1,53 @@ +/** + * @file rtems/sapi/timespec.h + * + * @ingroup + * + * @brief Timespec API + * + * This include file contains API for manipulating timespecs. + */ + +/* + * Copyright (c) 2012-. + * Krzysztof Miesowicz krzysztof.miesowicz@gmail.com + * + * 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. + */ + +#ifndef _RTEMS_TIMESPEC_H +#define _RTEMS_TIMESPEC_H + +#include <rtems/score/timespec.h> + +/** + * @defgroup TimespecAPI Timespec + * + * @ingroup ClassicRTEMS + * + * @brief Timespec API + * + */ +/**@{*/ + +#include <stdbool.h> /* bool */ +#include <stdint.h> /* uint32_t */ +#include <time.h> /* struct timespec */ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <rtems/timespec.inl> + +#ifdef __cplusplus +} +#endif + +/**@}*/ + +#endif +/* end of include file */ + |