2025-02-14 16:46:56 -08:00
|
|
|
# This file has declarations that appear both in <stdlib.h> and in <malloc.h>.
|
2025-02-15 16:32:30 -08:00
|
|
|
# These include the subset of GNU extensions that Scudo supports.
|
|
|
|
#
|
|
|
|
# Note: glibc's <stdlib.h> and <malloc.h> both also have `reallocarray`,
|
|
|
|
# which Scudo does not support and is omitted here. (Each of those glibc
|
|
|
|
# headers also has related functions the other lacks, but those should be
|
|
|
|
# covered separately in stdlib.yaml and malloc.yaml instead.)
|
2025-02-14 16:46:56 -08:00
|
|
|
|
|
|
|
functions:
|
|
|
|
- name: aligned_alloc
|
|
|
|
standards:
|
|
|
|
- stdc
|
|
|
|
return_type: void *
|
|
|
|
arguments:
|
|
|
|
- type: size_t
|
|
|
|
- type: size_t
|
|
|
|
- name: calloc
|
|
|
|
standards:
|
|
|
|
- stdc
|
|
|
|
return_type: void *
|
|
|
|
arguments:
|
|
|
|
- type: size_t
|
|
|
|
- type: size_t
|
|
|
|
- name: free
|
|
|
|
standards:
|
|
|
|
- stdc
|
|
|
|
return_type: void
|
|
|
|
arguments:
|
|
|
|
- type: void *
|
|
|
|
- name: malloc
|
|
|
|
standards:
|
|
|
|
- stdc
|
|
|
|
return_type: void *
|
|
|
|
arguments:
|
|
|
|
- type: size_t
|
2025-02-15 16:32:30 -08:00
|
|
|
- name: memalign
|
|
|
|
standards:
|
|
|
|
- gnu
|
|
|
|
return_type: void *
|
|
|
|
arguments:
|
|
|
|
- type: size_t
|
|
|
|
- type: size_t
|
2025-02-14 16:46:56 -08:00
|
|
|
- name: realloc
|
|
|
|
standards:
|
|
|
|
- stdc
|
|
|
|
return_type: void *
|
|
|
|
arguments:
|
|
|
|
- type: void *
|
|
|
|
- type: size_t
|
2025-02-15 16:32:30 -08:00
|
|
|
- name: valloc
|
|
|
|
standards:
|
|
|
|
- bsd
|
|
|
|
- gnu
|
|
|
|
return_type: void *
|
|
|
|
arguments:
|
|
|
|
- type: size_t
|