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:
Diffstat (limited to 'libc/spec/posix.td')
-rw-r--r--libc/spec/posix.td11
1 files changed, 8 insertions, 3 deletions
diff --git a/libc/spec/posix.td b/libc/spec/posix.td
index 131adf96da93..f691001b3ce9 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -22,10 +22,10 @@ def InoT : NamedType<"ino_t">;
def UidT : NamedType<"uid_t">;
def GidT : NamedType<"gid_t">;
def DevT : NamedType<"dev_t">;
+def ClockIdT : NamedType<"clockid_t">;
def BlkSizeT : NamedType<"blksize_t">;
def BlkCntT : NamedType<"blkcnt_t">;
def NLinkT : NamedType<"nlink_t">;
-def TimeSpec : NamedType<"struct timespec">;
def PidT : NamedType<"pid_t">;
def StatType : NamedType<"struct stat">;
@@ -608,7 +608,7 @@ def POSIX : StandardSpec<"POSIX"> {
HeaderSpec SysStat = HeaderSpec<
"sys/stat.h",
[], // Macros
- [ModeTType, DevT, InoT, UidT, GidT, TimeSpec, BlkSizeT, BlkCntT, OffTType, NLinkT, StatType], // Types
+ [ModeTType, DevT, InoT, UidT, GidT, StructTimeSpec, BlkSizeT, BlkCntT, OffTType, NLinkT, StatType], // Types
[], // Enumerations
[
FunctionSpec<
@@ -935,7 +935,7 @@ def POSIX : StandardSpec<"POSIX"> {
HeaderSpec Time = HeaderSpec<
"time.h",
[], // Macros
- [StructTimeSpec], // Types
+ [ClockIdT, StructTimeSpec], // Types
[], // Enumerations
[
FunctionSpec<
@@ -946,6 +946,11 @@ def POSIX : StandardSpec<"POSIX"> {
ArgSpec<StructTimeSpecPtr>,
]
>,
+ FunctionSpec<
+ "clock_gettime",
+ RetValSpec<IntType>,
+ [ArgSpec<ClockIdT>,ArgSpec<StructTimeSpecPtr>]
+ >,
]
>;