summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/timespec.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/sapi/include/rtems/timespec.h')
-rw-r--r--cpukit/sapi/include/rtems/timespec.h53
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 */
+