Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2022-09-24 00:00:52 +0300
committerMichael Jones <michaelrj@google.com>2022-09-29 20:23:21 +0300
commitb49d626cb4b43fcd96cb5c0d6a36c3f16213022c (patch)
tree5534edbd864fd9d43d81396420b10bfd5d7de0b5 /libc/config/linux
parentc4d9b40574c94b0768830be7c439ccbb0f27ad38 (diff)
[libc] add clock_gettime
Add the clock_gettime syscall wrapper and tests. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D134773
Diffstat (limited to 'libc/config/linux')
-rw-r--r--libc/config/linux/api.td2
-rw-r--r--libc/config/linux/x86_64/entrypoints.txt1
2 files changed, 2 insertions, 1 deletions
diff --git a/libc/config/linux/api.td b/libc/config/linux/api.td
index 50baea0157c5..28c86241d0a2 100644
--- a/libc/config/linux/api.td
+++ b/libc/config/linux/api.td
@@ -171,7 +171,7 @@ def StdlibAPI : PublicAPI<"stdlib.h"> {
}
def TimeAPI : PublicAPI<"time.h"> {
- let Types = ["time_t", "struct tm", "struct timespec"];
+ let Types = ["time_t", "struct tm", "struct timespec", "clockid_t",];
}
def ErrnoAPI : PublicAPI<"errno.h"> {
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index b7d122b60d6f..529779ee2649 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -395,6 +395,7 @@ if(LLVM_LIBC_FULL_BUILD)
libc.src.time.gmtime_r
libc.src.time.mktime
libc.src.time.nanosleep
+ libc.src.time.clock_gettime
)
endif()