Skip to content

Conversation

JordanYates
Copy link
Contributor

Add a dedicated symbol for including the POSIX system headers path directly into the include path, enabling (for example) #include <time.h> instead of #include <zephyr/posix/time.h>.

Cherry pick of the most useful commit from #88541 that enables individual subsystems to transition away from CONFIG_POSIX_API without otherwise impacting existing users.

@github-actions github-actions bot added the area: POSIX POSIX API Library label Jun 8, 2025
@github-actions github-actions bot requested review from cfriedt and ycsin June 8, 2025 02:03
Copy link
Member

@cfriedt cfriedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cfriedt
Copy link
Member

cfriedt commented Jun 9, 2025

@JordanYates - can you please prepend a commit in this PR with the change below? The only explicit memory requirements for this test are about 256 bytes of heap space - not sure why that minimum exists there.

diff --git a/tests/posix/xsi_single_process/testcase.yaml b/tests/posix/xsi_single_process/testcase.yaml
index ab7366ed3dc..7c9b06b13b9 100644
--- a/tests/posix/xsi_single_process/testcase.yaml
+++ b/tests/posix/xsi_single_process/testcase.yaml
@@ -28,7 +28,6 @@ tests:
       - CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256
   portability.xsi.single_process.newlib:
     filter: TOOLCHAIN_HAS_NEWLIB == 1
-    min_ram: 24
     extra_configs:
       - CONFIG_NEWLIB_LIBC=y
       - CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=256

@JordanYates
Copy link
Contributor Author

The requirement was only added 2 weeks ago as a fix for something else in #90217. @fkokosinski

Add a dedicated symbol for including the POSIX system headers path
directly into the include path, enabling (for example)
`#include <time.h>` instead of `#include <zephyr/posix/time.h>`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
@JordanYates JordanYates force-pushed the 250608_posix_headers branch from c9be059 to ea9b42d Compare June 9, 2025 10:19
Copy link

sonarqubecloud bot commented Jun 9, 2025

@kartben kartben merged commit b64fb93 into zephyrproject-rtos:main Jun 11, 2025
27 checks passed
@JordanYates JordanYates deleted the 250608_posix_headers branch June 11, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants