Skip to content

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Aug 30, 2025

  • posix: limits: de-duplicate limit logic
  • libc: newlib: limits.h: include posix limits from zephyr

Fixes #95194
Required by #88547

@cfriedt cfriedt marked this pull request as ready for review August 30, 2025 12:05
@cfriedt cfriedt added the area: newlib Newlib C Standard Library label Aug 30, 2025
@zephyrbot zephyrbot added area: POSIX POSIX API Library area: C Library C Standard Library labels Aug 30, 2025
@cfriedt cfriedt force-pushed the keep-posix-limits-in-posix-limits-h branch from 7dd7fae to b178727 Compare August 31, 2025 11:20
Rather than duplicating limit logic in several places, de-duplicate it
and centralize preprocessor checks in posix_limits.h .

Signed-off-by: Chris Friedt <[email protected]>
Newlib does not seem to define a number of mandatory POSIX limits
(e.g. minimum values).

Include Zephyr's POSIX definitions in an override of Newlib's limits.h
(when the appropriate application conformance macro is provided).

Signed-off-by: Chris Friedt <[email protected]>
@cfriedt cfriedt force-pushed the keep-posix-limits-in-posix-limits-h branch from b178727 to a5807b5 Compare August 31, 2025 11:22
Copy link

@cfriedt cfriedt added this to the v4.3.0 milestone Aug 31, 2025
@kartben kartben merged commit 6529c84 into zephyrproject-rtos:main Sep 10, 2025
27 checks passed
@cfriedt cfriedt deleted the keep-posix-limits-in-posix-limits-h branch October 6, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: C Library C Standard Library area: newlib Newlib C Standard Library area: POSIX POSIX API Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libc: newlib: limits.h: missing several definitions for required constant minimum values
5 participants