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:
parent
cb3cc6ec27
commit
3bf89f1859
1 changed files with 3 additions and 0 deletions
|
@ -431,6 +431,7 @@ static void free_impl(void* ptr)
|
|||
}
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html
|
||||
void* malloc(size_t size)
|
||||
{
|
||||
MemoryAuditingSuppressor suppressor;
|
||||
|
@ -471,6 +472,7 @@ void* _aligned_malloc(size_t size, size_t alignment)
|
|||
return aligned_ptr;
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html
|
||||
void free(void* ptr)
|
||||
{
|
||||
MemoryAuditingSuppressor suppressor;
|
||||
|
@ -486,6 +488,7 @@ void _aligned_free(void* ptr)
|
|||
free(((void**)ptr)[-1]);
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/calloc.html
|
||||
void* calloc(size_t count, size_t size)
|
||||
{
|
||||
MemoryAuditingSuppressor suppressor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue