[libc-commits] [libc] [libc] Declare free_sized and free_aligned_sized in stdlib.h / malloc.h (PR #188364)
Fabio D'Urso via libc-commits
libc-commits at lists.llvm.org
Tue Mar 24 14:59:14 PDT 2026
https://github.com/fabio-d created https://github.com/llvm/llvm-project/pull/188364
None
>From 28c7dc2ae6a429547aeb786cba4883ad8a4a53c9 Mon Sep 17 00:00:00 2001
From: Fabio D'Urso <fdurso at google.com>
Date: Tue, 24 Mar 2026 21:56:42 +0000
Subject: [PATCH] [libc] Declare free_sized and free_aligned_sized in stdlib.h
/ malloc.h
---
libc/include/stdlib-malloc.yaml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/libc/include/stdlib-malloc.yaml b/libc/include/stdlib-malloc.yaml
index e1dab21bfc213..0542f5501a6bb 100644
--- a/libc/include/stdlib-malloc.yaml
+++ b/libc/include/stdlib-malloc.yaml
@@ -22,6 +22,21 @@ functions:
return_type: void
arguments:
- type: void *
+ - name: free_aligned_sized
+ standards:
+ - stdc
+ return_type: void
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: size_t
+ - name: free_sized
+ standards:
+ - stdc
+ return_type: void
+ arguments:
+ - type: void *
+ - type: size_t
- name: malloc
standards:
- stdc
More information about the libc-commits
mailing list