This patch adds the malloc.h header, declaring Scudo's mallopt entrypoint when built LLVM_LIBC_INCLUDE_SCUDO, as well as two constants that can be passed to it (M_PURGE and M_PURGE_ALL). Due to limitations of the current build system, only the declaration of mallopt is gated by LLVM_LIBC_INCLUDE_SCUDO, and the two new constants are defined irrespectively of it. We may need to refine this in the future. Note that some allocators other than Scudo may offer a mallopt implementation too (e.g. man 3 mallopt), albeit with different supported input values. This patch only supports the specific case of LLVM_LIBC_INCLUDE_SCUDO.
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
set(TARGET_PUBLIC_HEADERS
|
|
libc.include.assert
|
|
libc.include.ctype
|
|
libc.include.dirent
|
|
libc.include.dlfcn
|
|
libc.include.errno
|
|
libc.include.fcntl
|
|
libc.include.features
|
|
libc.include.fenv
|
|
libc.include.float
|
|
libc.include.stdint
|
|
libc.include.inttypes
|
|
libc.include.limits
|
|
libc.include.malloc
|
|
libc.include.math
|
|
libc.include.pthread
|
|
libc.include.sched
|
|
libc.include.signal
|
|
libc.include.spawn
|
|
libc.include.setjmp
|
|
libc.include.stdckdint
|
|
libc.include.stdbit
|
|
libc.include.stdfix
|
|
libc.include.stdio
|
|
libc.include.stdlib
|
|
libc.include.string
|
|
libc.include.strings
|
|
libc.include.search
|
|
libc.include.termios
|
|
libc.include.threads
|
|
libc.include.time
|
|
libc.include.unistd
|
|
libc.include.wchar
|
|
libc.include.uchar
|
|
|
|
libc.include.arpa_inet
|
|
|
|
libc.include.sys_auxv
|
|
libc.include.sys_epoll
|
|
libc.include.sys_ioctl
|
|
libc.include.sys_mman
|
|
libc.include.sys_prctl
|
|
libc.include.sys_queue
|
|
libc.include.sys_random
|
|
libc.include.sys_resource
|
|
libc.include.sys_select
|
|
libc.include.sys_socket
|
|
libc.include.sys_stat
|
|
libc.include.sys_statvfs
|
|
libc.include.sys_syscall
|
|
libc.include.sys_time
|
|
libc.include.sys_types
|
|
libc.include.sys_utsname
|
|
libc.include.sys_wait
|
|
)
|