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.td10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/spec/posix.td b/libc/spec/posix.td
index d93ba16de9fa..131adf96da93 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -14,6 +14,9 @@ def PThreadStartT : NamedType<"__pthread_start_t">;
def PThreadTSSDtorT : NamedType<"__pthread_tss_dtor_t">;
def PThreadKeyT : NamedType<"pthread_key_t">;
def PThreadKeyTPtr : PtrType<PThreadKeyT>;
+def PThreadOnceT : NamedType<"pthread_once_t">;
+def PThreadOnceTPtr : PtrType<PThreadOnceT>;
+def PThreadOnceCallback : NamedType<"__pthread_once_func_t">;
def InoT : NamedType<"ino_t">;
def UidT : NamedType<"uid_t">;
@@ -675,6 +678,8 @@ def POSIX : StandardSpec<"POSIX"> {
PThreadKeyT,
PThreadMutexAttrTType,
PThreadMutexTType,
+ PThreadOnceCallback,
+ PThreadOnceT,
PThreadStartT,
PThreadTSSDtorT,
PThreadTType,
@@ -861,6 +866,11 @@ def POSIX : StandardSpec<"POSIX"> {
RetValSpec<VoidPtr>,
[ArgSpec<PThreadKeyT>, ArgSpec<ConstVoidPtr>]
>,
+ FunctionSpec<
+ "pthread_once",
+ RetValSpec<IntType>,
+ [ArgSpec<PThreadOnceTPtr>, ArgSpec<PThreadOnceCallback>]
+ >,
]
>;