This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2529f371ee change clockid_t type from uint8_t to int
2529f371ee is described below
commit 2529f371ee97f02e55016229a1af1069f4c4922e
Author: yanghuatao <[email protected]>
AuthorDate: Mon Jun 12 15:58:36 2023 +0800
change clockid_t type from uint8_t to int
make the clock_getres pass the ltp/open_posix_testsuite/clock_getres
testcases, posix has no explain about clockid_t type, referrence linux:
https://github.com/torvalds/linux/blob/858fd168a95c5b9669aac8db6c14a9aeab446375/include/linux/types.h#L27
and
https://github.com/torvalds/linux/blob/858fd168a95c5b9669aac8db6c14a9aeab446375/include/uapi/asm-generic/posix_types.h#L96
Signed-off-by: yanghuatao <[email protected]>
---
include/time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/time.h b/include/time.h
index 72e35584c9..d3a0e415db 100644
--- a/include/time.h
+++ b/include/time.h
@@ -113,7 +113,7 @@ typedef uint64_t time_t; /* Holds time in seconds
*/
#else
typedef uint32_t time_t; /* Holds time in seconds */
#endif
-typedef uint8_t clockid_t; /* Identifies one time base source */
+typedef int clockid_t; /* Identifies one time base source */
typedef FAR void *timer_t; /* Represents one POSIX timer */
/* struct timespec is the standard representation of time as seconds and