MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_files

Method get_files

tools/system_libs.py:1168–1415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1166 return math_files + exit_files + other_files + iprintf_files + errno_files
1167
1168 def get_files(self):
1169 libc_files = []
1170 musl_srcdir = utils.path_from_root('system/lib/libc/musl/src')
1171
1172 # musl modules
1173 ignore = [
1174 'ipc', 'passwd', 'signal', 'sched', 'time', 'linux',
1175 'aio', 'legacy', 'mq', 'setjmp',
1176 'ldso', 'malloc',
1177 ]
1178
1179 # individual files
1180 ignore += [
1181 'memcpy.c', 'memset.c', 'memmove.c', 'getaddrinfo.c', 'getnameinfo.c',
1182 'res_query.c', 'res_querydomain.c',
1183 'proto.c',
1184 'syscall.c', 'popen.c', 'pclose.c',
1185 'getgrouplist.c', 'initgroups.c', 'wordexp.c', 'timer_create.c',
1186 'getauxval.c',
1187 'lookup_name.c',
1188 # 'process' exclusions
1189 'fork.c', 'vfork.c', 'posix_spawn.c', 'posix_spawnp.c', 'execve.c', 'waitid.c', 'system.c',
1190 '_Fork.c',
1191 # 'env' exclusions
1192 '__reset_tls.c', '__init_tls.c', '__libc_start_main.c',
1193 # 'exit' exclusions
1194 'assert.c', 'exit.c',
1195 ]
1196
1197 ignore += LIBC_SOCKETS
1198 if self.is_mt:
1199 ignore += [
1200 'clone.c',
1201 'pthread_create.c',
1202 'pthread_kill.c', 'pthread_sigmask.c',
1203 '__set_thread_area.c', 'synccall.c',
1204 '__syscall_cp.c', '__tls_get_addr.c',
1205 '__unmapself.c',
1206 # Empty files, simply ignore them.
1207 'syscall_cp.c', 'tls.c',
1208 # TODO: Support these. See #12216.
1209 'pthread_setname_np.c',
1210 'pthread_getname_np.c',
1211 ]
1212 libc_files += files_in_path(
1213 path='system/lib/pthread',
1214 filenames=[
1215 'library_pthread.c',
1216 'em_task_queue.c',
1217 'proxying.c',
1218 'proxying_legacy.c',
1219 'thread_mailbox.c',
1220 'pthread_create.c',
1221 'pthread_kill.c',
1222 'emscripten_thread_init.c',
1223 'emscripten_yield.c',
1224 'thread_profiler.c',
1225 ])

Callers

nothing calls this directly

Calls 7

files_in_pathFunction · 0.85
glob_in_pathFunction · 0.85
appendMethod · 0.80
existsMethod · 0.80
setFunction · 0.50
removeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected