[all-commits] [llvm/llvm-project] 9f9ed8: [libc] Add <glob.h> POSIX header. (#221362)

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Wed Sep 9 09:27:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f9ed8295a38db3189fcec96fb6f9964e32753c7
      https://github.com/llvm/llvm-project/commit/9f9ed8295a38db3189fcec96fb6f9964e32753c7
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/aarch64/headers.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/riscv/headers.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/config/linux/x86_64/headers.txt
    M libc/hdr/CMakeLists.txt
    A libc/hdr/glob_macros.h
    M libc/hdr/types/CMakeLists.txt
    A libc/hdr/types/glob_t.h
    M libc/include/CMakeLists.txt
    A libc/include/glob.yaml
    M libc/include/llvm-libc-macros/CMakeLists.txt
    A libc/include/llvm-libc-macros/glob-macros.h
    M libc/include/llvm-libc-types/CMakeLists.txt
    A libc/include/llvm-libc-types/glob_t.h
    M libc/src/CMakeLists.txt
    A libc/src/glob/CMakeLists.txt
    A libc/src/glob/glob.cpp
    A libc/src/glob/glob.h
    A libc/src/glob/globfree.cpp
    A libc/src/glob/globfree.h
    M libc/test/src/CMakeLists.txt
    A libc/test/src/glob/CMakeLists.txt
    A libc/test/src/glob/glob_test.cpp

  Log Message:
  -----------
  [libc] Add <glob.h> POSIX header. (#221362)

* Provide the `<glob.h>` header as defined in POSIX:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/glob.h.html.
* Provide declaration of `glob_t` struct type, and `GLOB_*` family of
macros for controlling `glob()` function behavior and
  for describing `glob()` error return codes.
* Provide stubs / placeholder implementations for `glob()` and
`globfree()` functions - similar to `fnmatch()`
added in f571c5e34a06bc769924ff9100b6f31612279ab0 those would likely
depend in part on pattern matching
  logic shared between them and with regex.
* Since there are no real implementations yet, only enable the header
and entrypoints on Linux platforms with
  `LLVM_LIBC_ENABLE_EXPERIMENTAL_ENTRYPOINTS` specified.



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