[libc-commits] [libc] [libc] change return type of pthread_setspecific to int in generated header (PR #124072)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 22 21:55:22 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Alex Prabhat Bara (alexprabhat99)

<details>
<summary>Changes</summary>

Fixes: #<!-- -->124032 

---
Full diff: https://github.com/llvm/llvm-project/pull/124072.diff


1 Files Affected:

- (modified) libc/include/pthread.yaml (+1-1) 


``````````diff
diff --git a/libc/include/pthread.yaml b/libc/include/pthread.yaml
index 4f386bdd11cfd7..5b27e68d2f2d8d 100644
--- a/libc/include/pthread.yaml
+++ b/libc/include/pthread.yaml
@@ -402,7 +402,7 @@ functions:
   - name: pthread_setspecific
     standards:
       - POSIX
-    return_type: void *
+    return_type: int
     arguments:
       - type: pthread_key_t
       - type: const void *

``````````

</details>


https://github.com/llvm/llvm-project/pull/124072


More information about the libc-commits mailing list