1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 12:05:00 +00:00

LibC: Document some posix *alloc urls

This commit is contained in:
Michel Hermier 2022-01-12 14:45:11 +01:00 committed by Andreas Kling
parent cb3cc6ec27
commit 3bf89f1859

View file

@ -431,6 +431,7 @@ static void free_impl(void* ptr)
} }
} }
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html
void* malloc(size_t size) void* malloc(size_t size)
{ {
MemoryAuditingSuppressor suppressor; MemoryAuditingSuppressor suppressor;
@ -471,6 +472,7 @@ void* _aligned_malloc(size_t size, size_t alignment)
return aligned_ptr; return aligned_ptr;
} }
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html
void free(void* ptr) void free(void* ptr)
{ {
MemoryAuditingSuppressor suppressor; MemoryAuditingSuppressor suppressor;
@ -486,6 +488,7 @@ void _aligned_free(void* ptr)
free(((void**)ptr)[-1]); free(((void**)ptr)[-1]);
} }
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/calloc.html
void* calloc(size_t count, size_t size) void* calloc(size_t count, size_t size)
{ {
MemoryAuditingSuppressor suppressor; MemoryAuditingSuppressor suppressor;