1set(TARGET_LIBC_ENTRYPOINTS 2 # ctype.h entrypoints 3 libc.src.ctype.isalnum 4 libc.src.ctype.isalpha 5 libc.src.ctype.isascii 6 libc.src.ctype.isblank 7 libc.src.ctype.iscntrl 8 libc.src.ctype.isdigit 9 libc.src.ctype.isgraph 10 libc.src.ctype.islower 11 libc.src.ctype.isprint 12 libc.src.ctype.ispunct 13 libc.src.ctype.isspace 14 libc.src.ctype.isupper 15 libc.src.ctype.isxdigit 16 libc.src.ctype.toascii 17 libc.src.ctype.tolower 18 libc.src.ctype.toupper 19 20 # fcntl.h entrypoints 21 libc.src.fcntl.creat 22 libc.src.fcntl.open 23 libc.src.fcntl.openat 24 25 # string.h entrypoints 26 libc.src.string.bcmp 27 libc.src.string.bzero 28 libc.src.string.memccpy 29 libc.src.string.memchr 30 libc.src.string.memcmp 31 libc.src.string.memcpy 32 libc.src.string.memmove 33 libc.src.string.mempcpy 34 libc.src.string.memrchr 35 libc.src.string.memset 36 libc.src.string.stpcpy 37 libc.src.string.stpncpy 38 libc.src.string.strcat 39 libc.src.string.strchr 40 libc.src.string.strcmp 41 libc.src.string.strcpy 42 libc.src.string.strcspn 43 libc.src.string.strlen 44 libc.src.string.strncat 45 libc.src.string.strncmp 46 libc.src.string.strncpy 47 libc.src.string.strnlen 48 libc.src.string.strpbrk 49 libc.src.string.strrchr 50 libc.src.string.strspn 51 libc.src.string.strstr 52 libc.src.string.strtok 53 libc.src.string.strtok_r 54 55 # string.h entrypoints that depend on malloc 56 libc.src.string.strdup 57 libc.src.string.strndup 58 59 # inttypes.h entrypoints 60 libc.src.inttypes.imaxdiv 61 libc.src.inttypes.strtoimax 62 libc.src.inttypes.strtoumax 63 64 # stdlib.h entrypoints 65 libc.src.stdlib.abs 66 libc.src.stdlib.atoi 67 libc.src.stdlib.atof 68 libc.src.stdlib.atol 69 libc.src.stdlib.atoll 70 libc.src.stdlib.bsearch 71 libc.src.stdlib.div 72 libc.src.stdlib.labs 73 libc.src.stdlib.ldiv 74 libc.src.stdlib.llabs 75 libc.src.stdlib.lldiv 76 libc.src.stdlib.qsort 77 libc.src.stdlib.strtod 78 libc.src.stdlib.strtof 79 libc.src.stdlib.strtol 80 libc.src.stdlib.strtold 81 libc.src.stdlib.strtoll 82 libc.src.stdlib.strtoul 83 libc.src.stdlib.strtoull 84 85 # stdlib.h external entrypoints 86 libc.src.stdlib.malloc 87 libc.src.stdlib.calloc 88 libc.src.stdlib.realloc 89 libc.src.stdlib.free 90 91 # sys/stat.h entrypoints 92 libc.src.sys.stat.mkdir 93 libc.src.sys.stat.mkdirat 94 95 # unistd.h entrypoints 96 libc.src.unistd.close 97 libc.src.unistd.fsync 98 libc.src.unistd.lseek 99 libc.src.unistd.read 100 libc.src.unistd.rmdir 101 libc.src.unistd.unlink 102 libc.src.unistd.unlinkat 103 libc.src.unistd.write 104) 105 106set(TARGET_LIBM_ENTRYPOINTS 107 # fenv.h entrypoints 108 libc.src.fenv.feclearexcept 109 libc.src.fenv.fedisableexcept 110 libc.src.fenv.feenableexcept 111 libc.src.fenv.fegetenv 112 libc.src.fenv.fegetexcept 113 libc.src.fenv.fegetexceptflag 114 libc.src.fenv.fegetround 115 libc.src.fenv.feholdexcept 116 libc.src.fenv.fesetenv 117 libc.src.fenv.fesetexceptflag 118 libc.src.fenv.fesetround 119 libc.src.fenv.feraiseexcept 120 libc.src.fenv.fetestexcept 121 libc.src.fenv.feupdateenv 122 123 # math.h entrypoints 124 libc.src.math.copysign 125 libc.src.math.copysignf 126 libc.src.math.copysignl 127 libc.src.math.ceil 128 libc.src.math.ceilf 129 libc.src.math.ceill 130 libc.src.math.cosf 131 libc.src.math.expf 132 libc.src.math.exp2f 133 libc.src.math.expm1f 134 libc.src.math.fabs 135 libc.src.math.fabsf 136 libc.src.math.fabsl 137 libc.src.math.fdim 138 libc.src.math.fdimf 139 libc.src.math.fdiml 140 libc.src.math.floor 141 libc.src.math.floorf 142 libc.src.math.floorl 143 libc.src.math.fma 144 libc.src.math.fmaf 145 libc.src.math.fmax 146 libc.src.math.fmaxf 147 libc.src.math.fmaxl 148 libc.src.math.fmin 149 libc.src.math.fminf 150 libc.src.math.fminl 151 libc.src.math.frexp 152 libc.src.math.frexpf 153 libc.src.math.frexpl 154 libc.src.math.hypot 155 libc.src.math.hypotf 156 libc.src.math.ilogb 157 libc.src.math.ilogbf 158 libc.src.math.ilogbl 159 libc.src.math.llrint 160 libc.src.math.llrintf 161 libc.src.math.llrintl 162 libc.src.math.llround 163 libc.src.math.llroundf 164 libc.src.math.llroundl 165 libc.src.math.lrint 166 libc.src.math.lrintf 167 libc.src.math.lrintl 168 libc.src.math.lround 169 libc.src.math.lroundf 170 libc.src.math.lroundl 171 libc.src.math.ldexp 172 libc.src.math.ldexpf 173 libc.src.math.ldexpl 174 libc.src.math.log10f 175 libc.src.math.log1pf 176 libc.src.math.log2f 177 libc.src.math.logf 178 libc.src.math.logb 179 libc.src.math.logbf 180 libc.src.math.logbl 181 libc.src.math.modf 182 libc.src.math.modff 183 libc.src.math.modfl 184 libc.src.math.nearbyint 185 libc.src.math.nearbyintf 186 libc.src.math.nearbyintl 187 libc.src.math.nextafter 188 libc.src.math.nextafterf 189 libc.src.math.nextafterl 190 libc.src.math.remainderf 191 libc.src.math.remainder 192 libc.src.math.remainderl 193 libc.src.math.remquof 194 libc.src.math.remquo 195 libc.src.math.remquol 196 libc.src.math.rint 197 libc.src.math.rintf 198 libc.src.math.rintl 199 libc.src.math.round 200 libc.src.math.roundf 201 libc.src.math.roundl 202 libc.src.math.sincosf 203 libc.src.math.sinf 204 libc.src.math.sqrt 205 libc.src.math.sqrtf 206 libc.src.math.sqrtl 207 libc.src.math.trunc 208 libc.src.math.truncf 209 libc.src.math.truncl 210 211 # sys/mman.h entrypoints 212 libc.src.sys.mman.mmap 213 libc.src.sys.mman.munmap 214) 215 216if(LLVM_LIBC_FULL_BUILD) 217 list(APPEND TARGET_LIBC_ENTRYPOINTS 218 # stdio.h entrypoints 219 libc.src.stdio.fclose 220 libc.src.stdio.flockfile 221 libc.src.stdio.fflush 222 libc.src.stdio.fopen 223 libc.src.stdio.fopencookie 224 libc.src.stdio.fread 225 libc.src.stdio.fread_unlocked 226 libc.src.stdio.fseek 227 libc.src.stdio.funlockfile 228 libc.src.stdio.fwrite 229 libc.src.stdio.fwrite_unlocked 230 231 # threads.h entrypoints 232 libc.src.threads.call_once 233 libc.src.threads.cnd_broadcast 234 libc.src.threads.cnd_destroy 235 libc.src.threads.cnd_init 236 libc.src.threads.cnd_signal 237 libc.src.threads.cnd_wait 238 libc.src.threads.mtx_destroy 239 libc.src.threads.mtx_init 240 libc.src.threads.mtx_lock 241 libc.src.threads.mtx_unlock 242 libc.src.threads.thrd_create 243 libc.src.threads.thrd_join 244 245 # pthread.h entrypoints 246 libc.src.pthread.pthread_attr_destroy 247 libc.src.pthread.pthread_attr_init 248 libc.src.pthread.pthread_attr_getdetachstate 249 libc.src.pthread.pthread_attr_getguardsize 250 libc.src.pthread.pthread_attr_getstack 251 libc.src.pthread.pthread_attr_getstacksize 252 libc.src.pthread.pthread_attr_setdetachstate 253 libc.src.pthread.pthread_attr_setguardsize 254 libc.src.pthread.pthread_attr_setstack 255 libc.src.pthread.pthread_attr_setstacksize 256 libc.src.pthread.pthread_mutexattr_destroy 257 libc.src.pthread.pthread_mutexattr_init 258 libc.src.pthread.pthread_mutexattr_getpshared 259 libc.src.pthread.pthread_mutexattr_getrobust 260 libc.src.pthread.pthread_mutexattr_gettype 261 libc.src.pthread.pthread_mutexattr_setpshared 262 libc.src.pthread.pthread_mutexattr_setrobust 263 libc.src.pthread.pthread_mutexattr_settype 264 ) 265endif() 266 267set(TARGET_LLVMLIBC_ENTRYPOINTS 268 ${TARGET_LIBC_ENTRYPOINTS} 269 ${TARGET_LIBM_ENTRYPOINTS} 270) 271