summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers/posix/time.h
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-03-06 19:27:49 +0100
committerGitHub <[email protected]>2026-03-06 19:27:49 +0100
commit3726d7906b4808bfec7855fc088e073199df9120 (patch)
tree8789bfd03d1d49e1967e80d04aa4ff606fda43eb /utility/rtos_compatibility_layers/posix/time.h
parent4b6e8100d932a3a67b34c6eb17f84f3bffb9e2ae (diff)
parentc3259a216026372e3833dd8996a68f77e8595fbd (diff)
Merge pull request #510 from eclipse-threadx/devv6.5.0.202601_rel
Merge changes ahead of the v6.5.0.202601 release
Diffstat (limited to 'utility/rtos_compatibility_layers/posix/time.h')
-rw-r--r--utility/rtos_compatibility_layers/posix/time.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/utility/rtos_compatibility_layers/posix/time.h b/utility/rtos_compatibility_layers/posix/time.h
index 51f30be9..9fabdec5 100644
--- a/utility/rtos_compatibility_layers/posix/time.h
+++ b/utility/rtos_compatibility_layers/posix/time.h
@@ -1,10 +1,11 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ * Copyright (c) 2026-present Eclipse ThreadX contributors
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
@@ -34,13 +35,6 @@
/* implement time related functionality for the Evacuation Kit */
/* for POSIX Users (POSIX) */
/* */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
-/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
-/* */
/**************************************************************************/
#ifndef _TX_PX_TIME_H
@@ -53,7 +47,7 @@ typedef ULONG time_t;
typedef INT clockid_t;
-struct timespec
+struct timespec
{
time_t tv_sec; /* time in terms of seconds */
ULONG tv_nsec; /* remaining time in terms of nano seconds*/
@@ -62,7 +56,7 @@ struct timespec
struct itimerspec
{
struct timespec it_interval ; /* Timer period. */
- struct timespec it_value; /* Timer expiration. */
+ struct timespec it_value; /* Timer expiration. */
};
#define CLOCK_REALTIME 1