[all-commits] [llvm/llvm-project] 10d3c6: [libc] Define SSIZE_MAX in limits-macros.h (#201087)

Jeff Bailey via All-commits all-commits at lists.llvm.org
Tue Jun 2 05:27:54 PDT 2026


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

  Changed paths:
    M libc/include/limits.yaml
    M libc/include/llvm-libc-macros/limits-macros.h
    M libc/test/src/__support/CPP/limits_test.cpp

  Log Message:
  -----------
  [libc] Define SSIZE_MAX in limits-macros.h (#201087)

Defined SSIZE_MAX in limits-macros.h to support POSIX compliance.
Applications compiling against LLVM libc require SSIZE_MAX to be defined
in limits.h.

SSIZE_MAX is defined strictly in terms of __PTRDIFF_MAX__, matching
ssize_t defined as __PTRDIFF_TYPE__, ensuring they are always
structurally aligned and compile-time safe.

Added Doxygen comments for SSIZE_MAX.
Added SSIZE_MAX to limits.yaml and added a unit test in limits_test.cpp
to verify the definition.

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