[all-commits] [llvm/llvm-project] 096481: [libc] Add getpwent, setpwent, and endpwent entryp...

Jeff Bailey via All-commits all-commits at lists.llvm.org
Fri Aug 7 02:09:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 096481ddc5aa696f26ae4fd704adb28ce31babc6
      https://github.com/llvm/llvm-project/commit/096481ddc5aa696f26ae4fd704adb28ce31babc6
  Author: Jeff Bailey <jbailey at raspberryginger.com>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/arm/entrypoints.txt
    M libc/config/linux/i386/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/src/CMakeLists.txt
    M libc/src/pwd/CMakeLists.txt
    A libc/src/pwd/endpwent.cpp
    A libc/src/pwd/endpwent.h
    A libc/src/pwd/getpwent.cpp
    A libc/src/pwd/getpwent.h
    M libc/src/pwd/pwd_utils.cpp
    M libc/src/pwd/pwd_utils.h
    A libc/src/pwd/setpwent.cpp
    A libc/src/pwd/setpwent.h
    M libc/test/src/pwd/CMakeLists.txt
    A libc/test/src/pwd/getpwent_test.cpp

  Log Message:
  -----------
  [libc] Add getpwent, setpwent, and endpwent entrypoints (#213076)

Added getpwent, setpwent, and endpwent functions using the internal
pwd_utils line parser.

* Implemented getpwent.cpp, setpwent.cpp, and endpwent.cpp entrypoints
* Added database iteration state and helpers (open, close, read_next)
under namespace passwd in pwd_utils
* Registered entrypoints in config/linux/*/entrypoints.txt
* Added CMake target guards for File and platform_file to support
overlay builds and cross-platform targets
* Added unit tests in libc/test/src/pwd/getpwent_test.cpp

Assisted-by: Automated tooling, human reviewed.



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