Skip to content

Use stdioERRNO_THREAD_LOCAL_OFFSET macro for ERRNO setter/getter#82

Merged
AniruddhaKanhere merged 1 commit intoFreeRTOS:mainfrom
StefanBalt:main
Apr 21, 2026
Merged

Use stdioERRNO_THREAD_LOCAL_OFFSET macro for ERRNO setter/getter#82
AniruddhaKanhere merged 1 commit intoFreeRTOS:mainfrom
StefanBalt:main

Conversation

@StefanBalt
Copy link
Copy Markdown
Contributor

Use stdioERRNO_THREAD_LOCAL_OFFSET macro for ERRNO setter/getter

Description

The previously used ffconfigCWD_THREAD_LOCAL_INDEX has the same value but the stdioERRNO_THREAD_LOCAL_OFFSET macro is more concise.

The compilation will be unchanged as the preprocessor will generate the same output as before.

Test Steps

No need to test. This is just for more clarity in the codebase and navigation.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The previously used ffconfigCWD_THREAD_LOCAL_INDEX has the same value
but the stdioERRNO_THREAD_LOCAL_OFFSET macro is more concise.
@AniruddhaKanhere
Copy link
Copy Markdown
Member

Hello @StefanBalt,

The changes look good to me, thank you for contributing!

@AniruddhaKanhere AniruddhaKanhere merged commit 8d38036 into FreeRTOS:main Apr 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants