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

Alex Prabhat Bara via libc-commits libc-commits at lists.llvm.org
Wed Jan 22 21:54:27 PST 2025


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

Fixes: #124032 

>From 2333796df3426cd685fabf1728a0b82dacccce29 Mon Sep 17 00:00:00 2001
From: Alex Prabhat Bara <50404684+alexprabhat99 at users.noreply.github.com>
Date: Thu, 23 Jan 2025 11:22:37 +0530
Subject: [PATCH] [libc] change return type of pthread_setspecific to int in
 generated header

---
 libc/include/pthread.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 *



More information about the libc-commits mailing list