[libc-commits] [libc] [libc] Match stdlib.h entrypoints with types (PR #85030)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Mar 12 23:56:54 PDT 2024


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/85030

To match the entrypoints and types we need to include __qsortrcompare_t and omit __atexithandler_t.

>From 0f651fdb6e1825a92fe9ba19b56fa0fc1b275143 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Tue, 12 Mar 2024 23:54:40 -0700
Subject: [PATCH] [libc] Match stdlib.h entrypoints with types

To match the entrypoints and types we need to include __qsortrcompare_t
and omit __atexithandler_t.
---
 libc/config/baremetal/api.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/config/baremetal/api.td b/libc/config/baremetal/api.td
index 80d0e0ba22ca51..c29b3b94bca878 100644
--- a/libc/config/baremetal/api.td
+++ b/libc/config/baremetal/api.td
@@ -60,7 +60,7 @@ def StdlibAPI : PublicAPI<"stdlib.h"> {
     "size_t",
     "__bsearchcompare_t",
     "__qsortcompare_t",
-    "__atexithandler_t",
+    "__qsortrcompare_t",
   ];
 }
 



More information about the libc-commits mailing list