[libc-commits] [libc] [libc] Fix function prototypes for <threads.h> C11 header. (PR #187808)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Fri Mar 20 15:09:24 PDT 2026
https://github.com/vonosmas created https://github.com/llvm/llvm-project/pull/187808
Fix return types and/or function arguments of several functions:
* mtx_destroy
* tss_delete
* thrd_exit
>From ad0c2fd197104840219b6655675a6b6983700c61 Mon Sep 17 00:00:00 2001
From: Alexey Samsonov <vonosmas at gmail.com>
Date: Fri, 20 Mar 2026 22:06:46 +0000
Subject: [PATCH] [libc] Fix function prototypes for <threads.h> C11 header.
Fix return types and/or function arguments of several functions:
* mtx_destroy
* tss_delete
* thrd_exit
---
libc/include/threads.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libc/include/threads.yaml b/libc/include/threads.yaml
index 99b29f1815549..6f7796e090ab6 100644
--- a/libc/include/threads.yaml
+++ b/libc/include/threads.yaml
@@ -73,9 +73,9 @@ functions:
- name: mtx_destroy
standards:
- stdc
- return_type: int
+ return_type: void
arguments:
- - type: void
+ - type: mtx_t *
- name: mtx_init
standards:
- stdc
@@ -125,7 +125,7 @@ functions:
- name: thrd_exit
standards:
- stdc
- return_type: void
+ return_type: _Noreturn void
arguments:
- type: int
- name: thrd_join
@@ -145,7 +145,7 @@ functions:
- name: tss_delete
standards:
- stdc
- return_type: int
+ return_type: void
arguments:
- type: tss_t
- name: tss_get
More information about the libc-commits
mailing list