X-Git-Url: https://git.jankratochvil.net/?p=lldb.git;a=blobdiff_plain;f=libc%2Fconfig%2Flinux%2Fapi.td;h=ea2e908a359c1a3a4ce2be9e8dc3636fcf75cf75;hp=673521f4eff92513fc6bf8e1262e3be65ea077a9;hb=fd8c13361348f32acef8f8a972984bb5f0786a0c;hpb=f80c6d8dec1866424d66a0b1ab67c082e2d08375 diff --git a/libc/config/linux/api.td b/libc/config/linux/api.td index 673521f..ea2e908 100644 --- a/libc/config/linux/api.td +++ b/libc/config/linux/api.td @@ -153,7 +153,15 @@ def SignalAPI : PublicAPI<"signal.h"> { ]; } +def ThreadStartT : TypeDecl<"thrd_start_t"> { + let Decl = "typedef int (*thrd_start_t)(void *);"; +} + def ThreadsAPI : PublicAPI<"threads.h"> { + let TypeDeclarations = [ + ThreadStartT, + ]; + let Enumerations = [ "mtx_plain", "mtx_recursive", @@ -164,4 +172,9 @@ def ThreadsAPI : PublicAPI<"threads.h"> { "thrd_error", "thrd_nomem", ]; + + let Functions = [ + "thrd_create", + "thrd_join", + ]; }