entrypoints.txt 1.92 KB
set(TARGET_LIBC_ENTRYPOINTS
    # assert.h entrypoints
    libc.src.assert.__assert_fail

    # errno.h entrypoints
    libc.src.errno.__errno_location

    # signal.h entrypoints
    libc.src.signal.raise
    libc.src.signal.sigaction
    libc.src.signal.sigdelset
    libc.src.signal.sigaddset
    libc.src.signal.sigemptyset
    libc.src.signal.sigprocmask
    libc.src.signal.sigfillset
    libc.src.signal.signal

    # stdlib.h entrypoints
    libc.src.stdlib._Exit
    libc.src.stdlib.abort

    # string.h entrypoints
    libc.src.string.bzero
    libc.src.string.memcpy
    libc.src.string.memset
    libc.src.string.strcpy
    libc.src.string.strcat
    libc.src.string.strlen
    libc.src.string.strcmp
    libc.src.string.memchr
    libc.src.string.strchr

    # sys/mman.h entrypoints
    libc.src.sys.mman.mmap
    libc.src.sys.mman.munmap

    # threads.h entrypoints
    libc.src.threads.call_once
    libc.src.threads.mtx_init
    libc.src.threads.mtx_lock
    libc.src.threads.mtx_unlock
    libc.src.threads.thrd_create
    libc.src.threads.thrd_join

    # unistd.h entrypoints
    libc.src.unistd.write
)

set(TARGET_LIBM_ENTRYPOINTS
    # math.h entrypoints
    libc.src.math.copysign
    libc.src.math.copysignf
    libc.src.math.copysignl
    libc.src.math.ceil
    libc.src.math.ceilf
    libc.src.math.ceill
    libc.src.math.cosf
    libc.src.math.expf
    libc.src.math.exp2f
    libc.src.math.fabs
    libc.src.math.fabsf
    libc.src.math.fabsl
    libc.src.math.floor
    libc.src.math.floorf
    libc.src.math.floorl
    libc.src.math.frexp
    libc.src.math.frexpf
    libc.src.math.frexpl
    libc.src.math.logb
    libc.src.math.logbf
    libc.src.math.logbl
    libc.src.math.modf
    libc.src.math.modff
    libc.src.math.modfl
    libc.src.math.round
    libc.src.math.roundf
    libc.src.math.roundl
    libc.src.math.sincosf
    libc.src.math.sinf
    libc.src.math.trunc
    libc.src.math.truncf
    libc.src.math.truncl
)