[all-commits] [llvm/llvm-project] 52fd3e: [libc] Define _POSIX_THREADS and support _SC_THREA...

Jeff Bailey via All-commits all-commits at lists.llvm.org
Tue Jun 2 06:16:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52fd3ec25a3d9a20efae59c453a2450bf633a970
      https://github.com/llvm/llvm-project/commit/52fd3ec25a3d9a20efae59c453a2450bf633a970
  Author: Jeff Bailey <jbailey at raspberryginger.com>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M libc/include/llvm-libc-macros/linux/unistd-macros.h
    M libc/include/unistd.yaml
    M libc/src/unistd/linux/sysconf.cpp
    M libc/test/include/CMakeLists.txt
    A libc/test/include/unistd_macros_test.cpp
    M libc/test/src/unistd/sysconf_test.cpp

  Log Message:
  -----------
  [libc] Define _POSIX_THREADS and support _SC_THREADS in sysconf (#201091)

Defined the _POSIX_THREADS macro to 202405L in unistd-macros.h for Linux
to signal POSIX thread support.

Also implemented runtime support for _SC_THREADS in sysconf, returning
_POSIX_THREADS, and added _SC_THREADS and _POSIX_THREADS to the public
unistd.yaml specification.

Added compile-time and runtime tests to verify _POSIX_THREADS definition
and sysconf(_SC_THREADS) behavior. Standardized header comments in
unistd-macros.h to conform to LLVM style.

Assisted-by: Automated tooling, human reviewed.

---------

Co-authored-by: Pavel Labath <pavel at labath.sk>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list