diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt --- a/libc/config/linux/x86_64/entrypoints.txt +++ b/libc/config/linux/x86_64/entrypoints.txt @@ -336,7 +336,7 @@ libc.src.pthread.pthread_setspecific # sched.h entrypoints - libc.src.sched.sched_getcpucount + libc.src.sched.__sched_getcpucount # stdio.h entrypoints libc.src.stdio.clearerr diff --git a/libc/spec/llvm_libc_ext.td b/libc/spec/llvm_libc_ext.td --- a/libc/spec/llvm_libc_ext.td +++ b/libc/spec/llvm_libc_ext.td @@ -40,7 +40,7 @@ [], // Enumerations [ FunctionSpec< - "sched_getcpucount", + "__sched_getcpucount", RetValSpec, [ArgSpec, ArgSpec] >, diff --git a/libc/src/sched/CMakeLists.txt b/libc/src/sched/CMakeLists.txt --- a/libc/src/sched/CMakeLists.txt +++ b/libc/src/sched/CMakeLists.txt @@ -17,8 +17,8 @@ ) add_entrypoint_object( - sched_getcpucount + __sched_getcpucount ALIAS DEPENDS - .${LIBC_TARGET_OS}.sched_getcpucount + .${LIBC_TARGET_OS}.__sched_getcpucount ) diff --git a/libc/src/sched/linux/CMakeLists.txt b/libc/src/sched/linux/CMakeLists.txt --- a/libc/src/sched/linux/CMakeLists.txt +++ b/libc/src/sched/linux/CMakeLists.txt @@ -25,7 +25,7 @@ ) add_entrypoint_object( - sched_getcpucount + __sched_getcpucount SRCS sched_getcpucount.cpp HDRS diff --git a/libc/test/src/sched/CMakeLists.txt b/libc/test/src/sched/CMakeLists.txt --- a/libc/test/src/sched/CMakeLists.txt +++ b/libc/test/src/sched/CMakeLists.txt @@ -28,6 +28,6 @@ libc.include.sys_syscall libc.src.__support.OSUtil.osutil libc.src.sched.sched_getaffinity - libc.src.sched.sched_getcpucount + libc.src.sched.__sched_getcpucount libc.test.errno_setter_matcher )